Skip to content

Latest commit

 

History

History
41 lines (19 loc) · 604 Bytes

README.md

File metadata and controls

41 lines (19 loc) · 604 Bytes

First Django project

https://docs.djangoproject.com/en/4.1/intro/tutorial02/

$ source tutorial-env/bin/activate

Run de shell

$ python manage.py shell

Structuur

mysite directory one level lower - and contains the manage.py file

poll directory is on same level

$ cd mysite

$ python manage.py migrate

$ python manage.py runserver

server will run on http://127.0.0.1:8000/

http://127.0.0.1:8000/polls/

http://127.0.0.1:8000/polls/34

http://127.0.0.1:8000/polls/1/results/

http://127.0.0.1:8000/polls/1/vote/

http://127.0.0.1:8000/admin/

Username: admin

ww: Admin1234-