Tutorial 4: Writing first Django App (Part 4)

Tutorial used: https://docs.djangoproject.com/en/dev/intro/tutorial04/

Cool Links: Django Template Language

Things I Learnt:

Concept 1: Templates = Variables + Tags + Text
Screen Shot 2013-01-05 at 4.49.49 PM

Concept 2: Variables look like this {{ variable }}
Screen Shot 2013-01-05 at 4.52.28 PM

Concept 3: Filters ( | filter ) is used to modify variables
Screen Shot 2013-01-05 at 4.55.13 PM
Documentation for filter reference

Concept 4: returning HttpResponseRedirect after POST is good web dev practice
Screen Shot 2013-01-05 at 4.57.45 PM

# Always return an HttpResponseRedirect after successfully dealing
# with POST data. This prevents data from being posted twice if a
# user hits the Back button.

This entry was posted in Tutorials. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s