This is complete source code of tutorial that I've learnt from django official website. It consists of 7 parts in First Step section.
- Part 1: Requests and responses
- Part 2: Models and the admin site
- Part 3: Views and templates
- Part 4: Forms and generic views
- Part 5: Testing
- Part 6: Static files
- Part 7: Customizing the admin site
Django (I've used Django 3.0.7) pip install django
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/Linuxpython manage.py migrate
orpython3 manage.py migrate
python manage.py createsuperuser
orpython3 manage.py createsuperuser
python manage.py runserver
orpython3 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
Home Page http://127.0.0.1:8000/
Polls Page http://127.0.0.1:8000/polls/
Admin Login http://127.0.0.1:8000/admin/
python manage.py runserver
Result
Email: chitkokooo.cu at gmail dot com