It looks like the auth and session middleware are not active.  Those errors
generally happen when those middleware are expected to be available but are
not.  Looking at the stack trace provided, the only middleware which Django
thinks are active are
"('django.middleware.locale.LocaleMiddleware',
'satchmo.shop.SSLMiddleware.SSLRedirect',
'satchmo.recentlist.middleware.RecentProductMiddleware')".
 Once you can figure out why your middleware are not loading properly you
should be able to fix your problem.
Some suggestions include:

   - Make sure that if you are explicitly setting the
   DJANGO_SETTINGS_MODULE environment variable that is is set properly.
   - Check that you have
   'django.contrib.sessions.middleware.SessionMiddleware'
   and  'django.contrib.auth.middleware.AuthenticationMiddleware' in your
   middleware list.
   - Check that 'MIDDLEWARE_CLASSES' has been only defined once.  Also make
   sure that it is not being overriden in the local_settings.py file.
   - Make sure that 'django.contrib.auth' and 'django.contrib.sessions' are
   in your installed apps setting.
   - Similarly make sure that installed apps isn't being overridden.
   - Finally make sure that you have run "./manage.py syncdb" with both of
   those entries in your installed apps.

In regard to the web server bit, you definitely want to develop against the
django web server, apache is a good bit more complex to setup and gets a bit
odd if you don't reload it every time a python file is changed.  That being
said NEVER run the Django server in a production environment.  Apache or
some other standard web server would be best in a production deployment.

Hope this helps and feel free to send any more questions my way.

____________________________
Sean O'Connor
http://seanoc.com


On Mon, Oct 13, 2008 at 8:38 PM, Orion Vianna <[EMAIL PROTECTED]
> wrote:

> Hey thanks for the help!
> I have been getting this error on admin: 'WSGIRequest' object has no
> attribute 'user'. A search on Satchmo list comes up with nothing
> related. I got some help from there and I was suggested to make
> MIDDLEWARE_CLASSES and TEMPLATE_CONTEXT_PROCESSORS look like this.
>
>
> MIDDLEWARE_CLASSES = (
>    'django.middleware.common.CommonMiddleware',
>    'django.contrib.sessions.middleware.SessionMiddleware',
>    'django.contrib.auth.middleware.AuthenticationMiddleware',
>    'django.middleware.doc.XViewMiddleware',
>    'django.middleware.locale.LocaleMiddleware',
>    'satchmo.shop.SSLMiddleware.SSLRedirect',
>    #The next middleware is required if you want to use satchmo
>    #to serve multiple simultaneous shops.
>    #"threaded_multihost.middleware.ThreadLocalMiddleware",
>    "satchmo.recentlist.middleware.RecentProductMiddleware"
> )
>
>
>  TEMPLATE_CONTEXT_PROCESSORS = (
>     'satchmo.shop.context_processors.settings',
>     'django.core.context_processors.auth',
>     'satchmo.recentlist.context_processors.recent_products',
>     'django.core.context_processors.i18n',
>     'django.core.context_processors.media',
>     'satchmo.shop.context_processors.settings',
>          )
>
> I looked on google but I didn't find anymore helpful info.
>
> Here is how my settings.py look like
> http://dpaste.com/84218/
> local_settings.py <http://dpaste.com/84218/local_settings.py>
> http://dpaste.com/84219/
>
> error that I get from admin/
> http://dpaste.com/84220/
> error from when I try to access shop/
> http://dpaste.com/84221/
>
>
> I'm using the Django webserver, would apache make a difference? I'm not
> sure which webserver the Satchmo developers are using.
> Thanks for all the help!
>
>
>
> Sean O'Connor wrote:
> > http://www.satchmoproject.com/trac/wiki/GetCodeI would strongly
> recommend
> > staying far far far away from OSCommerce or anything derived from it.
> > Unfortunately I've had a fair amount of experience with it and I can tell
> > you, it is a beast of a system and it mildly terrifies me that it is ever
> > trusted to handle credit card transactions.
> > On a more positive note I have a good deal of experience with Django (not
> > Satchmo tho). In general I give Django a big thumbs up and would be happy
> > to try and help you with any specific problems you may be having with
> that
> > setup.
> >
> > A final bit of advice relating to Satchmo would be to make sure you are
> > running the latest version (trunk) from their subversion repo
> > (instructions<http://www.satchmoproject.com/trac/wiki/GetCode>)
> > instead of the last "released" version. Their trunk code is very stable
> > from what I understand and it supports/requires Django 1.0 which
> > includes a
> > large number of bug fixes, speed improvements, and new features over the
> > previous release of 0.96.
> >
> > ____________________________
> > Sean O'Connor
> > http://seanoc.com
>
> _______________________________________________
> Mid-Hudson Valley Linux Users Group                  http://mhvlug.org
> http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
> Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium
>  Sep 3 - Porkchop - The Areas of My Expertise
>  Oct 1 - Ubikeys
>  Oct 4 - Linux Fest
>  Nov 5 - Releasing Open Source Software
>  Dec 3 - TBD
>
>
_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org          
   
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug                           
Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium          
        
  Sep 3 - Porkchop - The Areas of My Expertise
  Oct 1 - Ubikeys
  Oct 4 - Linux Fest
  Nov 5 - Releasing Open Source Software
  Dec 3 - TBD
  

Reply via email to