Django Template Backend
Project description
Django Template Backend
A template for Django apps with support for Django REST Framework, filters, Celery tasks, Beat schedules tasks, pytest, and other things.
Setup
- Install the project dependencies
$ pipenv install --dev
-
Refactor "template" names throughout project to desired name
-
Create models
-
Make migrations and migrate the database
$ pipenv run python manage.py makemigrations
$ pipenv run python manage.py migrate
- Start the Django server
$ pipenv run python manage.py runserver
- Optionally start the Celery related processes
$ redis-server
$ pipenv run celery -A template_project worker -l info
$ pipenv run celery -A template_project beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
Tests
Tests are setup to run through Pytest. They can be invoked with:
$ pipenv run python manage.py test
or
$ pipenv run python -m pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-template-backend-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c414a58092ad0275af6313abe279b63f2dba9fc084d4bcbb04f0a4c7b5cf96a |
|
MD5 | 99ca4364edbaa2cbbd032bb4f3716c4c |
|
BLAKE2b-256 | fcf29cdeed019bac7385074fa8a684e800d9645d70d520bd2d7f86706bb32dc2 |
Close
Hashes for django_template_backend-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ddec9fe6daaec14cd78bf9f86d306f87f1b4589531fa22d9997ae825d5fc03 |
|
MD5 | a0a382db064999deac1cdd26a4de995d |
|
BLAKE2b-256 | 58811a98d3eaf9e38635c33b23e6b72844ed2c419ff1b80890e9b3ea8a2ba8c0 |