/django-template

Primary LanguagePythonMIT LicenseMIT

A django template, with authentication implemented.

  1. Start a new project $ mkdir new-project
  2. cd into new-project
  3. activate virtual environment
  4. django-admin startproject new-app and cd into new-app
  5. fork and clone this repo into new-app
  6. git clone https://github.com/jaybenaim/django-template.git .
  7. 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

  1. In views.py from .models import *

  2. python manage.py makemigrations

  3. python manage.py migrate

  4. python manage.py runserver