Skip to content

jankuzma/django-template

Repository files navigation

Django Template

To create the project use:

django-admin startproject --template https://github.com/jankuzma/django-template/archive/refs/heads/template.zip <project_name> <directory>

How to run ?

chronologically

  • create pipenv environment pipenv install then pipenv shell
  • configure the pipenv interpreter in python interpreter set base interpreter as the path to your pipenv python3 executable
  • generate django secret key using the get_secret_key() method in python console from django.core.management.utils import get_random_secret_key get_random_secret_key()
  • setup .env file based on .env-default file in the env/ directory
  • if db is setup run python manage.py migrate as the migrations are already prepared
  • static files python manage.py collectstatic
  • finally python manage.py runserver to run the server

About

Django template created according to 12factor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published