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('/', '.')topackage = dirpath[len_root_dir:].lstrip('\\').replace('\\', '.')http://code.djangoproject.com/ticket/3245
Problem:
TemplateDoesNotExist at /admin/
Solution
<Django sources from subversion or tar
archive>\django\contrib\admin\media to
C:\Python25\Lib\site-packages\django\contrib\admin\media
and
<Django sources from subversion or tar
archive>\django\contrib\admin\templates to
C:\Python25\Lib\site-packages\django\contrib\admin\templates
Stop 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 defined
monthsOfYear: gettext('January Febru... October November December').split(' '),
Solution:
Replace all instances of "gettext" with "" in:
C:\Python25\Lib\site-packages\django\contrib\admin\media\js\calendar.js
C:\Python25\Lib\site-packages\django\contrib\admin\media\js\admin\DateTimeShortcuts.js
Source: http://groups.google.com/group/django-users/browse_thread/thread/f0abe54d2d1e0313