yes,

i've imported settings.

from django.conf import settings

On May 27, 9:52 pm, Sebastian Bauer <[EMAIL PROTECTED]> wrote:
> did you have this:
>
> import settings
>
> in files where you using settings variable?
>
> Mayank Dhingra pisze:
>
> > any thoughts ?
>
> > On May 27, 12:58 pm, Mayank Dhingra <[EMAIL PROTECTED]> wrote:
>
> >> I am experiencing a strange problem while using
> >> DualSessionMiddleware
>
> >>http://code.djangoproject.com/wiki/CookBookDualSessionMiddleware
>
> >> I've done as directed and in most cases the feature works as expected.
> >> When the request.post contains the "remember me" i set
>
> >> request.session[settings.PERSISTENT_SESSION_KEY] = True
>
> >> but for some cases  about 15-20%  while doing so i get this error
>
> >> UnboundLocalError: local variable 'settings' referenced before
> >> assignment
>
> >> Could you suggest what am I doing wrong .?
--~--~---------~--~----~------------~-------~--~----~
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