You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foonicorn edited this page Aug 16, 2012
·
6 revisions
Information
Short Description
The Django 101 tutorial is based on http://www.django-workshop.de and covers the first three chapters. By creating a cookbook application, you will get to know following aspects of Django:
einfache url regex für urls.py, TemplateView erstellen(Template vorgeben und Template Directory erstellen. settings.py anpassen)
Statische Website bestaunen
manage.py startapp
models.py definieren
Template überarbeiten und tags hinzufügen (dann hat man einen direkten Bezug zu den models. Könnte aber auch später nachdem der Admin schon live ist geschehen)
app und admin in settings.py aktivieren, admin.py erstellen
manage.py syncdb (manage.py validate imho nicht notwendig. ich würde auch alles SQL weglassen)
Daten in den Admin eintragen
Ersten view in views.py erstellen (aber bitte gleich mit dem render shortcut. Eine einfache HttpResponse ist imho durch den TemplateView nicht mehr nötig)
Dynamische Website bestaunen
...
profit!
tentative translation of the django-workshop.de sections