A Django project skeleton that is modern and cutting edge.
{% comment "This comment section will be deleted in the generated project" %}
[Edge][docs]
A Fantastic Django project starter.
Features
- Ready Bootstrap-themed pages
- User Registration/Sign up
- Better Security with 12-Factor recommendations
- Logging/Debugging Helpers
- Works on Python 3 and Django 2
- Formatted with Black
[docs]: http://django-edge.readthedocs.org/
Quick start:
Before creating a new project from this template, you need to create a fresh virtual environment and install Django:
$ python -m venv ./myenv$ source ./myenv/bin/activate.fish(use the appropriate activate script based on your shell)$ python -m pip install -U pip django
$ django-admin.py startproject --template=https://github.com/arocks/edge/archive/master.zip --extension=py,md,html,env my_proj$ cd my_proj$ pip install -r requirements.txt$ cd src$ cp myproj/settings/local.sample.env myproj/settings/local.env$ python manage.py migrate$ python manage.py createsuperuser$ python manage.py runserver
Recommended Installation (with pipenv)
$ pip install --user --upgrade pipenv(Install pipenv system-wide or locally but outside a virtualenv)$ mkdir myproj(choose a better name thanmyprojfor your project)$ django-admin.py startproject --template=https://github.com/arocks/edge/archive/master.zip --extension=py,md,html,env my_proj .
--template=, like this: django-admin.py startproject --template=~/Downloads/master.zip --extension=py,md,html,env my_proj .
$ pipenv install --dev$ pipenv shell$ cp src/myproj/settings/local.sample.env src/myproj/settings/local.env(or rename this file)$ cd src$ python manage.py migrate$ python manage.py createsuperuser$ python manage.py runserver
requirements.txt updated then run
pipenv lock --requirements > requirements/base.txt echo "-r base.txt" > requirements/development.txt pipenv lock --requirements --dev >> requirements/development.txt
Rest of this README will be copied to the generated project.
{% endcomment %}
{{ project_name }}
{{ projectname }} is a short description_. It is built with [Python][0] using the [Django Web Framework][1].
This project has the following basic apps:
- App1 (short desc)
- App2 (short desc)
- App3 (short desc)
Installation
Quick start
To set up a development environment quickly, first install Python 3. It comes with virtualenv built-in. So create a virtual env by:
1. $ python3 -m venv {{ project_name }} 2. $ . {{ project_name }}/bin/activate
Install all dependencies:
pip install -r requirements.txt
Run migrations:
python manage.py migrate
Detailed instructions
Take a look at the docs for more information.
[0]: https://www.python.org/ [1]: https://www.djangoproject.com/