Skip to main content

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

  1. Install the project dependencies
$ pipenv install --dev
  1. Refactor "template" names throughout project to desired name

  2. Create models

  3. Make migrations and migrate the database

$ pipenv run python manage.py makemigrations
$ pipenv run python manage.py migrate
  1. Start the Django server
$ pipenv run python manage.py runserver
  1. 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

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-template-backend-1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

django_template_backend-1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file django-template-backend-1.0.tar.gz.

File metadata

  • Download URL: django-template-backend-1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for django-template-backend-1.0.tar.gz
Algorithm Hash digest
SHA256 4c414a58092ad0275af6313abe279b63f2dba9fc084d4bcbb04f0a4c7b5cf96a
MD5 99ca4364edbaa2cbbd032bb4f3716c4c
BLAKE2b-256 fcf29cdeed019bac7385074fa8a684e800d9645d70d520bd2d7f86706bb32dc2

See more details on using hashes here.

File details

Details for the file django_template_backend-1.0-py3-none-any.whl.

File metadata

  • Download URL: django_template_backend-1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for django_template_backend-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1ddec9fe6daaec14cd78bf9f86d306f87f1b4589531fa22d9997ae825d5fc03
MD5 a0a382db064999deac1cdd26a4de995d
BLAKE2b-256 58811a98d3eaf9e38635c33b23e6b72844ed2c419ff1b80890e9b3ea8a2ba8c0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page