A django template, with authentication implemented.
- Start a new project $ mkdir new-project
- cd into new-project
- activate virtual environment
- django-admin startproject new-app and cd into new-app
- fork and clone this repo into new-app
- git clone https://github.com/jaybenaim/django-template.git .
- cp -R django-template/ new-app; rm -rf django-template/
cd django-template rm -rf .git (or in Windows rmdir .git /S /Q) - Remove Git database git init - Initialize a new Git repository git add . - Add all files to staging git commit -am "Initial commit" - Commit the files
-
In views.py from .models import *
-
python manage.py makemigrations
-
python manage.py migrate
-
python manage.py runserver