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 8080181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:20:13+00:00 2026-06-05T16:20:13+00:00

I am using django-registration and would like to have a different page for failed

  • 0

I am using django-registration and would like to have a different page for failed logins. The initial login screen is loaded via jQuery, so doesn’t need to extend the base page:

{% extends 'base.htm' %}

but the “fail” page does need to extend it. I cannot “if” an extends tag because it needs to be the first tag on the page.

So! I thought to load a different login-fail page, but I haven’t the foggiest how to do that – how do I specify a different login-fail page?

  • 1 1 Answer
  • 0 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. Editorial Team
    Editorial Team
    2026-06-05T16:20:15+00:00Added an answer on June 5, 2026 at 4:20 pm

    sigh.

    So the login page needs to be changed – i suppose i could extend and override it in a child class – maybe i will so i don’t lose all my logic!

    Yeah, i cut and paste it into my own views.py file

    Ok, so all i done was add an “else” after the form.is_valid check that sets a variable (failed) to true.

    And then, at the end of the method, when i render_to_response, i run a check to see if failed is True – and if so, just render to a different login page (failedLogin.html) ~ where this one does extend base.htm.

    yay!

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

Sidebar

Related Questions

I have implemented a registration/login/authentication system using this Django guide . But, how would
I'm using django-registration. I'd like to update the AuthenticationForm in 'django.contrib.auth.forms'. Specifically, I would
I have a django site using the basic django registration framework. I have my
I am using allauth to provide registration and login in my django site. Everything
I'm using Django registration to manage the registration and login / logout together with
Im using Django 1.2.3. I have login functionality in my site using django.contrib.auth.views.login .
I am using django-registration, and have two questions with regards to customizing the email
I've created a registration system using django-registration. I have extended the RegistrationFormTermsOfService as shown
I am using the django-registration package. I do not want people to have a
I'm using django-registration for registration and login purpose. My Models and Forms.py are working

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.