Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 626 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 626 Bytes

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