Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 162833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:27:40+00:00 2026-05-11T11:27:40+00:00

A quickie, and hopefully an easy one. I’m following the docs at http://docs.djangoproject.com/en/dev/topics/auth/ to

  • 0

A quickie, and hopefully an easy one. I’m following the docs at http://docs.djangoproject.com/en/dev/topics/auth/ to get just some simple user authentication in place. I don’t have any special requirements at all, I just need to know if a user is logged in or not, that’s about it. I’m using the login_required decorator, and it’s working exactly as I expected. I’m actually using the ‘django.contrib.auth.views.login’ for my login view, and the exact form they show in the docs:

{% if form.errors %} <p>Your username and password didn't match. Please try again.</p> {% endif %}  <form method='post' action='.'> <table> <tr>     <td>{{ form.username.label_tag }}</td>     <td>{{ form.username }}</td> </tr> <tr>     <td>{{ form.password.label_tag }}</td>     <td>{{ form.password }}</td> </tr> </table>  <input type='submit' value='login' /> <input type='hidden' name='next' value='{{ next }}' /> </form> 

What I guess I don’t understand is why I can put whatever I want in the user/pass fields, and I never receive an error for invalid user/pass combo. I can put in non-existant users, correct users with right passwords, whatever I want basically, and it sends me off to whatever is in the ‘next’ variable. This leads me to believe that it’s actually not doing anything whatsoever. I’ve checked what I’m sending via the request variables after logging in, and I’m always showing as an AnonymousUser, even though I ‘successfully logged in’. Am I overlooking something blatantly obvious here? Seems like I’ve read that page on authentication 6 or 7 times now.

Also, if I login as a user with ‘Staff Status’, I show as authenticated without any issues. If the user doesn’t have that status, then it doesn’t work.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:27:40+00:00Added an answer on May 11, 2026 at 11:27 am

    I believe I fixed it:

    Right:

    url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'quiz/quiz_login.html'}) 

    Wrong:

    url(r'^login$', 'django.contrib.auth.views.login', {'template_name': 'quiz/quiz_login.html'}) 

    Meh.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just a quickie ... I have the following ID generator strategy for one of
A quickie just to get peace of mind: Considering the following final String str
Just a quickie to get a feel for the community in general's preference: When
just a quickie (or maybe not:] ): Is it possible to get somehow list
Just a quickie before the weekend rolls in... I have a Method with the
Just a quickie.. If I set on an alert document.title to ALERT per say.
Hopefully this is a quickie: I've been doing a lot of Java/Google Web Toolkit
Just a quickie.. How to derive the unixtime of nearest March or June? If
Hopefully a quickie... I'd like to know how/where to alter the settings in argouml
Just a quickie Do i need to install crystal report full version to run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.