mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-05-14 10:33:13 +00:00
| .. | ||
| example | ||
| manage.py | ||
| README.md | ||
| requirements.txt | ||
Example project
This example Django app helps us develop the library, so we can quickly set it up for testing.
Usage
Using uv you can run the following commands to have a working application
# create the virtualenv
uv venv --python 3.13
# activate it
source .venv/bin/activate
# install Django
uv pip install -r requirements.txt
# install the library as editable
uv pip install -e ../.
# run migrations to create the base database
python manage.py migrate
# create a superuser test account
python manage.py createsuperuser
# start the dev server
python manage.py runserver
After this is done you can navigate to http://localhost:8000/admin/ and login with your account, create a DB Template called db-index.html and then go to http://localhost:8000 to see it.