Get a new Django site started in a Djiffy
- Python 44.6%
- HTML 26%
- JavaScript 13.9%
- CSS 6.3%
- Shell 5.8%
- Other 3.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Those screenshots were just a bit out of date! https://pnpm.io/cli/exec > The `exec` part is actually optional when the command is not in > conflict with a builtin pnpm command |
||
| .helix | ||
| .zed | ||
| hooks | ||
| {{ cookiecutter.project_slug }} | ||
| cookiecutter.json | ||
| LICENSE | ||
| README.md | ||
🐍 Django Site
I’ve been using Django for a long time. Here’s how I do it.
Get started
Install it:
cookiecutter git+ssh://[email protected]/trey/django-site
…or…
pipx run cookiecutter git+ssh://[email protected]/trey/django-site
Run it locally:
just dev
Deploy it:
- Set up a VPS
- Update
vps/playbook.yml- Add a value for
hostsand changedjango_portas needed depending on how many Django sites are on this VPS (they must be unique).
- Add a value for
Then, something like…
just production-bootstrap
git commit -am "Updates from VPS Toolbox" && git push -u origin main
just production-superuser
And then change your superuser password!
Requirements
One of…
- pipx
- Cookiecutter
- Homebrew (
brew install cookiecutter)