Django

Projekt Starten

Djangoprojekt strukturieren: https://docs.python-guide.org/writing/structure/#regarding-django-applications

mkdir project
cd project
django-admin startproject mysite .

Run the internal server:

python manage.py runserver

Die Webseite sollte hier verfuegbar sein: http://127.0.0.1:8000/

Neue App erstellen

python manage.py startapp appname

Models/DB

https://docs.djangoproject.com/en/2.1/intro/tutorial02/#activating-models

Misc

https://docs.djangoproject.com/en/2.1/intro/tutorial02/#make-the-poll-app-modifiable-in-the-admin

https://stackoverflow.com/questions/47170049/run-django-shell-in-ipython

python manage.py shell -i ipython