MIT License
This template is very opinionated and makes sense only in a very specific case.
Disadvantages of this template:
strategy
flag in the flyctl deploy
command, but it might require an additional app slot.tomwojcik/django-fly-postgres-template
for the alternative )Advantages of this template:
django.middleware.cache.{Update,FetchFrom}CacheMiddleware
, remove if needed) and client side (Whitenoise
, staticfiles indefinitely, Django views for 60 seconds)Whitenoise
with brotli
)Last I checked, Jinja2 didn't work well with Python3.11. Use any lower Python version.
$ pip install -U cookiecutter jinja2
$ cookiecutter gh:tomwojcik/django-fly-sqlite-template
Give it a proper name
project_name [Fly App]: My Blog
project_slug [my_blog]: # just hit enter if it looks fine, the slug is generated automatically
Post generation hook already creates a git repository and adds everything that's been created. Just add remote and push
$ git remote add origin [email protected]:<username>/<reponame>.git
$ git push -u -f origin main
For the next steps follow the README.md
from the generated app.