Skip to content

oakbani/django-starter-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-starter-app

Reference: https://docs.djangoproject.com/en/2.2/intro/tutorial01/

Setup

  • python virtualenv
  • source /Scripts/activate
  • pip install requirements.txt

Run development server

  • python manage.py runserver
  • python manage.py runserver 0:8000 ( 0 is shortcut for 0.0.0.0)

Important Commands

  • django-admin startproject mysite
  • python manage.py startapp polls
  • python manage.py migrate
  • python manage.py makemigrations polls
  • python manage.py sqlmigrate polls 0001
  • python manage.py createsuperuser

To generate requirements.txt from virtual env

pip freeze > requirements.txt

Releases

No releases published

Packages

No packages published