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://forgepackages.com/quickstart.py | python3 - my-project

Forge Django quickstart

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.14.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

forge-0.14.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: forge-0.14.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.13.0-1031-azure

File hashes

Hashes for forge-0.14.0.tar.gz
Algorithm Hash digest
SHA256 b8d801efd375321f423e3ddd5a4389172a4ac65d3e6c91ee22cb6b2ba379c2cc
MD5 cb9f77b5a129a599f4ceeeb89fc2ef70
BLAKE2b-256 4059ec0e75798f822b7b4601d072b1acc67ccda2fc7da940a8dd85d7bacb0bdc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for forge-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f627e9f9c6e0d27cc1050931fa2b7ab86154160f3d654a7b43d38a08e1215e3
MD5 979155558145482e84ee18f68d08e72f
BLAKE2b-256 96c8ec48111e8503923f994c27719c7a728ee7290133c4366c525ada530b1040

See more details on using hashes here.

Supported by

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