August 7, 2008
-
Getting Django set up to test on a Windows Vista pc.
Problem
When running the setup script, you get the error:error: package directory 'django' does not exist
Solution:
windows install must change setyp.py line 24
package = dirpath[len_root_dir:].lstrip('/').replace('/', '.')
to
package = dirpath[len_root_dir:].lstrip('\').replace('\', '.')
http://code.djangoproject.com/ticket/3245Problem:
TemplateDoesNotExist at /admin/Solution
<Django sources from subversion or tar
archive>djangocontribadminmedia to
C:Python25Libsite-packagesdjangocontribadminmedia
and
<Django sources from subversion or tar
archive>djangocontribadmintemplates to
C:Python25Libsite-packagesdjangocontribadmintemplatesStop and restart your django server:
Source: http://forums.devshed.com/python-programming-11/django-templatedoesnotexist-at-admin-457043.html
Problem
Can't run python from the cmd window:
'python' is not recognized as an internal or external command...Solution:
Python was not added to the path.
Control Panel -> Search for "path" -> Click "Edit the system environment variables" -> Environment Variables button -> Edit the System Variable path -> Add "C:Python25" to the end (separated by semicolons)Problem:
When following the tutorial you don't see the Calendar chooser for the datetime column. Investigating with Firebug revealed this error:
gettext is not definedcalendar.js()()calendar.js (line 26)Replace all instances of "gettext" with "" in:monthsOfYear: gettext('January Febru... October November December').split(' '),
Solution:
C:Python25Libsite-packagesdjangocontribadminmediajscalendar.js
C:Python25Libsite-packagesdjangocontribadminmediajsadminDateTimeShortcuts.js
Source: http://groups.google.com/group/django-users/browse_thread/thread/f0abe54d2d1e0313