Showing posts with label django. Show all posts
Showing posts with label django. Show all posts

Sunday, November 7, 2010

Could not parse the remainder in django Template

It's caused when we forget we cannot make HTML execute python commands with the exception of filters and tags. So a "for loop" ( a tag) can iterate over list items or dictionary items but create or append a list.

List of some of the filters and tags supported.
http://www.djangobook.com/en/1.0/appendixF/

Thursday, October 28, 2010

Using python shell for django project

If you want to test django code in python shell but are getting error messages regarding environment variables not set; set them by using that project's manage script.
python manage.py shell