Hello,
Without seeing your code, it is difficult to tell you exactly what is wrong, but your view is requiring the user to already be logged in, and since it isn't, Django is redirecting you to the default LOGIN_URL setting, which is not defined in your urls.py.
https://docs.djangoproject.com/en/1.7/ref/settings/#login-url
We'll need more information, such as relevant code snippets and a list of modules used to provide a better answer.
-James
On Dec 30, 2014 11:03 PM, "Hossein Rashnoo" <mhr1224@gmail.com> wrote:
-- Hi--I follow this tutorial and here i got error. when i try to access http://localhost:8000/o/applications/ its redirect to http://localhost:8000/accounts/login/?next=/o/applications/ and django 404 error appear that tells:The current URL,accounts/login/
, didn't match any of these.Please help me.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d1d60238-c0f0-4704-b41d-5d8224ca5da5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciXq8zrB0cYRjed9cPrkOqU07zRDAPo8m4koAVKBPbj6fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment