check for the root view - its just a simple HTML page for users to
login.
On Feb 2, 12:37 pm, Xavier Ordoquy <xordo...@linovia.com> wrote:
> Hi,
>
> > However, when I alter the root() function to:
>
> > def root(request):
> > return render_to_response('admin/login.html', None)
>
> > This causes a loop condition i.e. displays the page OK, but trying to login just redisplays the page... any ideas how to make this work as intended?
>
> > Thanks
> > Derek
>
> I'm not sure I understood your issue.
> Wouldn't a @login_required on top of your root view solve your issue ?
> You aren't logged, you get the login box and once you are logged, you get redirected to the admin.
>
> Xavier.
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment