any suggestions anyone ?
On Jun 4, 9:22 am, Mayank Dhingra <[EMAIL PROTECTED]> wrote:
> traceback
>
> UnboundLocalError at /login/
> local variable 'settings' referenced before assignment
>
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
> 'myproject.dual_session_middlewa
traceback
UnboundLocalError at /login/
local variable 'settings' referenced before assignment
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'myproject.dual_session_middleware.DualSessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middl
On Tue, May 27, 2008 at 3:58 AM, 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.
> W
any suggestions/thoughts ?
On May 27, 11:46 pm, Mayank Dhingra <[EMAIL PROTECTED]> wrote:
> 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
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
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.djangoprojec
> is implementing remember me feature for login is as simple as changing
> the cookies settings in the settings.py? is manipulating of setting.py
> allowed in views?
>
I just incorporated the DualSessionMiddleware into my project. It does
what it says, and didn't break any
If you want something that lasts longer than a session (for how-ever
you configured it on your system), then you might consider writing
your own cookie, and checking for it at the relevant places. I don't
use this mechanism for authentication, but as a little additional
personalization touch to re
Hey James,
This might get you going in the right direction:
"The default SessionMiddleware that comes with Django lets you pick if
you want all sessions to be browser-length or persistent, if you want
to use different types of sessions based on a users preference (e.g.
the good old "Remember Me"
hi,
is implementing remember me feature for login is as simple as changing
the cookies settings in the settings.py? is manipulating of setting.py
allowed in views?
THanks
james
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
10 matches
Mail list logo