- Notifications
You must be signed in to change notification settings - Fork0
vEnhance/django-copier-template
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a Django copier template used by Evan Chen for the following projects:
Turns out the configuration files are all basically identicaland I don't want to keep copying them back and forth.
This is used to set up aDjangoproject usinguv.It uses the following frameworks:
- prek for pre-commit
- ruff for Python formatting and linting
- pyright for type checking
- djlint for linting Django templates
- prettier for linting CSS, JavaScript, Markdown, JSON, TOML, YAML
- django-extensions for some extra goodies
- pytest-django for testing
Should be pretty straightforward.
Something like the following in an empty Git repository:
uv inituv add django django-extensionsuv add --dev copier pytest-django prek pyrightuv run copier copy gh:vEnhance/django-copier-template.uv run django-admin startproject config.make installmake migrate
Then, adddjango_extensions toINSTALLED_APPS.
You should alsouv add --dev pytest-xdist anduv add --dev pytest-covif you opted for those testing options.
In all the projects, the following assumptions hold:
- There is a remote called
originon GitHub - There is a remote called
productionon the actual server to push to - The primary branch is called
main(notmaster)
Thendeploy.sh checks if GitHub and the local are in sync(which in particular means that the pre-push hooks have passed).If so, it then updates production to match both.
To pull the most recent version of the template:
make copier
About
Copier template for Django projects used by Evan
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.