mendes.rich...@gmail.com (mendes...@gmail.com) wrote:
> Hello Django Users,
> 
> I just tried to upgrade my django version towards the last official
> release Django 1.1.1 and ran into some trouble after the install.
> When i do a runserver first it complained about an AttributeError:
> 'Settings' that didn't have certain attributes.
> 
> To solve this is added the following settings:
> LOCALE_PATHS = tuple()
> DEFAULT_INDEX_TABLESPACE = ''
> DEFAULT_TABLESPACE = ''
> 
> This solved this issue but i immediately ran into another one when i
> actually wanted to access the admin page.
> The message i get is:
> 
> File "/Library/Python/2.5/site-packages/django/core/handlers/base.py",
> line 42, in load_middleware
>     raise exceptions.ImproperlyConfigured, 'Error importing middleware
> %s: "%s"' % (mw_module, e)
> ImproperlyConfigured: Error importing middleware
> django.contrib.sessions.middleware: "No module named simple"
> 
> Did anyone experience something similar and know how to solve this ?
> 
> best regards,
> 
> Richard
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

Hi,

The traceback probably says it all:
> File "/Library/Python/2.5/site-packages/django/core/handlers/base.py",
> line 42, in load_middleware
>     raise exceptions.ImproperlyConfigured, 'Error importing middleware
> %s: "%s"' % (mw_module, e)
> ImproperlyConfigured: Error importing middleware
> django.contrib.sessions.middleware: "No module named simple

You're trying to import a Middleware class which doesn't exist.
Compare your MIDDLEWARE_CLASSES with this working example:

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

Hope this helps.

-- 
  Kenny Meyer
  Software Geek | http://kenny.alwaysdata.net

  Shoot for the moon, even if you miss, you'll land amongst the stars..
    - Les Brown

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to