oundLocalError: local variable 'settings' referenced before
> > assignment
>
> > I have in my views .py
>
> > from django.conf import settings
> > other imports...
>
> > def new_view(request):
> > if not request.user.is_authenticated():
> >
On Wed, Jul 20, 2011 at 1:14 PM, ydjango <traderash...@gmail.com> wrote:
> Occasionally I see this error in my app,
>
> UnboundLocalError: local variable 'settings' referenced before
> assignment
>
> I have in my views .py
>
> from django.conf import settings
Occasionally I see this error in my app,
UnboundLocalError: local variable 'settings' referenced before
assignment
I have in my views .py
from django.conf import settings
other imports...
def new_view(request):
if not request.user.is_authenticated():
return
3 matches
Mail list logo