You're right DR, apologies. I did think it may be a syntax issue but
it appears not to be.
Would it matter at what position the admin reference appears in
INSTALLED_APPS?

Below is the settings.py file being used. Hope this is of more help.

Many thanks,
-M

# Django settings for djangotest project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', '[email protected]'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'mysql'           # 'postgresql_psycopg2',
'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'djangotest'             # Or path to database file if
using sqlite3.
DATABASE_USER = 'djangotest'             # Not used with sqlite3.
DATABASE_PASSWORD = '**********'         # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost.
Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not
used with sqlite3.

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as
your
# system time zone.
TIME_ZONE = 'America/Chicago'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as
not
# to load the internationalization machinery.
USE_I18N = True

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = ''

# URL that handles the media served from MEDIA_ROOT. Make sure to use
a
# trailing slash if there is a path component (optional in other
cases).
# Examples: "http://media.lawrence.com";, "http://example.com/media/";
MEDIA_URL = ''

# URL prefix for admin media -- CSS, JavaScript and images. Make sure
to use a
# trailing slash.
# Examples: "http://foo.com/media/";, "/media/".
ADMIN_MEDIA_PREFIX = '/media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'p31u!n(kbd6!dqoabpe9jajj8y29-tq^n6khs1-j60goc8#z41'

# List of callables that know how to import templates from various
sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
)

ROOT_URLCONF = 'djangotest.urls'

TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates" or "C:/www/
django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
)

On Dec 11, 4:47 pm, Daniel Roseman <[email protected]>
wrote:
> 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.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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