On Dec 11, 3:35 pm, Bluemilkshake <[EMAIL PROTECTED]>
wrote:
> Hi! Apologies for what is in no doubt a complete noob question.
>
> Just installed CentOS 5 with Python 2.4, Apache2 and the latest SVN
> release of Django. Also copied the mysql-python stuff, mod_python etc.
>
> I've setup my first Django project to test, and when I request the
> root URL I get no problems, however after adding the admin app to my
> INSTALLED_APPS setting and running syncdb, I get the following:
>
> TypeError at admin
> unpack non-sequenceRequest Method: GET
> Request URL:http://djangotest.bluemilkshake.co.ukadmin
> Exception Type: TypeError
> Exception Value: unpack non-sequence
> Exception Location: /usr/lib/python2.4/site-packages/django/core/
> handlers/base.py in get_response, line 76
> Python Executable: /usr/bin/python
> Python Version: 2.4.3
> Python Path: ['/home/Bluemilkshake/djangotest.bluemilkshake.co.uk/user/
> django', '/usr/lib/python2.4/site-packages/setuptools-0.6c5-
> py2.4.egg', '/usr/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-
> linux-i686.egg', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/
> lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/
> python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/
> python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/
> gtk-2.0']
> Server time: Thu, 11 Dec 2008 09:28:30 -0600
>
> Have had a look round this group and the Web but have found no
> details. Also checked the mod_python docs on the Django Website and am
> sure I've configured everything to the letter (apart from specifying
> the PYTHON_EGG_CACHE in my httpd.conf (via SetEnv) instead of in a
> separate .py file.)
>
> Would really appreciate any pointers. I'm usually a Windows guy so
> don't assume I know anything about Linux :)
>
> Thanks a lot,
> -Mark

You haven't posted enough information to be able to answer the
question. For instance, you say the error occurred after you added the
admin app to INSTALLED_APPS, but you haven't posted that part of the
settings file. FWIW, I suspect you've missed off a comma before or
after the 'django.contrib.admin' line, which is preventing Python from
parsing the file.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to