Skip to main content

Quickly build a professional web app using Django.

Project description

Forge

Quickly build a professional web app using Django.

Forge is a set of opinions. It guides how you work, chooses what tools you use, and makes decisions so you don't have to.

At it's core, Forge is Django. But we've taken a number of steps to make it even easier to build and deploy a production-ready app on day one.

If you're an experienced Django user, you'll understand and (hopefully) agree with some of Forge's opinions. If you're new to Django or building web applications, we've simply removed questions that you might not even be aware of.

Forge will get you from zero to one on a revenue-generating SaaS, internal business application, or hobby project.

Quickstart

Start a new project in 5 minutes:

curl -sSL https://djangoforge.dev/quickstart.py | python3 - my-project

What's included

Things that come with Forge, that you won't get from Django itself:

  • Configure settings with environment variables
  • A much simpler settings.py
  • Extraneous files (manage.py, wsgi.py, asgi.py) have been removed unless you need to customize them
  • Start with a custom user model (users.User)
  • Start with a "team" model (teams.Team)
  • Send emails using Django templates (ex. templates/email/welcome.html)
  • A starter forge_base.html
  • Default form rendering with Tailwind classes
  • Login in with email address (in addition to usernames)
  • Abstract models for common uses (UUIDs, created_at, updated_at, etc.)
  • Test using pytest and pytest-django
  • Static files served with WhiteNoise

We're also able to make some decisions about what tools you use with Django -- things that Django (rightfully) doesn't take a stance on:

Lastly, we bring it all together with a forge CLI:

Local development

  • forge work - your local development command (runs runserver, Postgres, and Tailwind at the same time)
  • forge test - run tests using pytest
  • forge format - format app code with black and isort
  • forge pre-commit - checks tests and formatting before commits (installed as a git hook automatically)
  • forge django - passes commands to Django manage.py (i.e. forge django makemigrations)

Deployment

  • forge pre-deploy - runs Django system checks before deployment starts
  • forge serve - a production gunicorn process

Misc.

  • forge init - used by the quickstart to create a new project, but can be used by itself too

Inspired by

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forge-0.7.2.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forge-0.7.2-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file forge-0.7.2.tar.gz.

File metadata

  • Download URL: forge-0.7.2.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1021-azure

File hashes

Hashes for forge-0.7.2.tar.gz
Algorithm Hash digest
SHA256 b26fca89c0f8432be990aa6f821e51210e7172cce78eeb3da8c7d04c1d278007
MD5 7c0cde77098d42adca75f2801388d9a5
BLAKE2b-256 86113609cb1b8200340105ac15fe566d6be55937526e7f65d27c3da3698c8adf

See more details on using hashes here.

File details

Details for the file forge-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: forge-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1021-azure

File hashes

Hashes for forge-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ceea45e8d3f3b49bc9ec9c8f928cb3b963e481e8cdc9abf586043377cb3e4178
MD5 4049557bed6ab3013f0398e8938492e8
BLAKE2b-256 283b8491d9aed36b488f38751bea5c3b4f1b1f331f30e2c7aea04d226f43b0b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page