Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 2.06 KB

README.md

File metadata and controls

54 lines (36 loc) · 2.06 KB

Django 3.0 tutorial

This is complete source code of tutorial that I've learnt from django official website. It consists of 7 parts in First Step section.

  1. Part 1: Requests and responses
  2. Part 2: Models and the admin site
  3. Part 3: Views and templates
  4. Part 4: Forms and generic views
  5. Part 5: Testing
  6. Part 6: Static files
  7. Part 7: Customizing the admin site

Requirements

Python 3

Django (I've used Django 3.0.7) pip install django

Git

Installation

  • git clone https://github.com/chitkokooo/django-3.0-tutorial.git
  • cd django-3.0-tutorial\mysite on Windows (or) cd django-3.0-tutorial/mysite on GNU/Linux
  • python manage.py migrate or python3 manage.py migrate
  • python manage.py createsuperuser or python3 manage.py createsuperuser
  • python manage.py runserver or python3 manage.py runserver
  • open browser and go to link http://127.0.0.1:8000/

port number 8000 can be changed as you want, for example http://127.0.0.1:8888 by python manage.py runserver 8888

Screenshots

Home Page http://127.0.0.1:8000/ 1

Polls Page http://127.0.0.1:8000/polls/ 2

Admin Login http://127.0.0.1:8000/admin/ 3

python manage.py runserver Result 4

python manage.py test Result 5

whoami

Facebook | Linkedin

Email: chitkokooo.cu at gmail dot com