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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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