Django Setup/Startup

Posted by Kyle R. Conway - January 26, 2019

  1. Create a virtual environment (see previous post)
  2. Enter virtual environment (see previous post)
  3. Install Django
    • pip install django==1.11.3
  4. Create src directory
    • mkdir src && cd src
  5. Start project
    • django-admin.py startproject [projectname] .
  6. Start Server
    • python manage.py runserver
    • Navigate to provided URL
  7. Migrate
    • python manage.py migrate
  8. Create Admin
    • python manage.py createsuperuser
    • Enter info (name, email, password).
  9. Repeat Step # 6 (startserver)
    • add "/admin" to the url and login