Viewing posts for the category Django

Django ChoiceField Empty Option for Select/Dropdown

Posted by: scoopseven in Django Python 13 years, 1 month ago
If you're looking to add a empty_label to your ChoiceField, like you can for ModelChoiceField (empty_label="All"), you're going to have to override __init__ on your form. This solution I found on StackOverflow works well.

read more / 0 comments

Comparing Python Date and Datetime / Django

Posted by: scoopseven in Django Python 13 years, 1 month ago
I'm always doing this, so some of you must be too. I'll compare a date field in with a datetime object in Python/DJango like this:

read more / 0 comments

Django 1.2.4 / get_current_site

Posted by: scoopseven in Django 13 years, 3 months ago
Problems upgrading to Django 1.2.4 by downloading the package manually and running the install?

read more / 0 comments

Installing MySQLdb for Python / Django

Posted by: scoopseven in Django MySQL Python 14 years, 4 months ago
Problems installing MySQLdb? Me too! I'm installing using MySQL 5 / Django 1.1 / Python 2.4 on CentOS 5.4 linux.

read more / 0 comments

Django / PythonPath

Posted by: scoopseven in Apache Django 14 years, 9 months ago
The post below was taken directly from www.ventanazul.com. I republished only because this solved a problem that was a real PITA for me and wasn't spelled out too clearly in the Django documentation. If you're having a problem with Django / Apache / mod_python / PythonPath / sys.path / Could not import module things, give it a try.

read more / 0 comments

Recent Tweets

Recent Posts

Archive

2013
2012
2011
2010
2009
2008
2007
2006

Categories

Authors

Feeds

RSS / Atom