Skip to content

jiromaykin/djangoproject-tuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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-