Django redirects to an alternative template instead of the default one

After renaming my login.html file to login1.html instead of deleting it, I have been using Django-registration and Django-registration-views from Github. However, despite this change, Django continues to call registration/login1.html. Is there a way for me to revert it back to calling the login.html file?

Given that we can modify the default path of templates, is there also a method to adjust the default name of a template from login1.html to login.html?

Answer №1

The code was written directly into the Python 3.5 site-packages/registration/auth_urls.py file.

Credit goes to @HåkenLid for the assistance.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Steps to build a Docker container that executes a python script and saves its output to a directory external to the container

I have a python script that I regularly execute on my Raspberry Pi to check Gmail for any attachments and save them to a specific directory. The script was not created by me, and the website where I found it is no longer active. All credit goes to knight-o ...

numpy creating a range with custom intervals

What is a more efficient and elegant method in python3.x to achieve the same outcome as below: x = np.arange(1,4) y = np.arange(5,10) z = np.concatenate((x,y)) Resulting in z = [1,2,3,5,6,7,8,9,10] Please keep in mind that the numbers used here are just ...

Can you identify the programming language used in this code snippet? - {"html":"<section class="page">

I've been approached to assist with a friend's company website since the original developer seems to have disappeared. Apologies if this question is too basic for this forum, and please forgive me if I am not in the right place to ask it. The m ...

Guidelines for Naming Data Attribute Values in JavaScript

When it comes to the Data Attribute Value, should one use hyphens or camelCase as a convention? Hyphen Example: <input type="text" name="some_input" data-target="to-grab-input-via-javascript"> Camel Case Example <input type="text" name="some_ ...

Prevent a click event from triggering on one div when another div is clicked using jQuery

I am in the process of designing a website that includes two clickable divs, "#coloursettings" and "#powersettings". Both of these divs successfully unbind the menu ("#tab a"), but I am struggling to make them deactivate each other upon clicking one, then ...

Navigate to the location using AngularJS elements in the JavaScript iframe1

Dealing with an issue while working on AngularJS. I am facing a frustrating problem where I am attempting to use one link to open links in two separate iframes. All aspects of this function correctly, except for the actual links. The issue arises when usin ...

Executing Python functions within BuildBot build processes

Recently, I've started using BuildBot and am currently in the process of setting up the build process from master.cfg. I have developed common utility python packages that can be utilized during the build process, As I include steps in util.BuildFac ...

I am looking to transfer an image stored in a database onto a card

One issue I am facing is that when trying to display an image from a database, uploaded by a user and showing on a card with additional information like name and price, an icon resembling a paper with green appears in the output. Here's my code snippe ...

Tips for formatting dates in Angular 6

I am currently working on a function that displays real-time dates based on user input. Currently, when the user enters the input, it is displayed in the front end as follows: 28.10.2018 10:09 However, I would like the date to change dynamically based on ...

When multiple checkboxes are selected, corresponding form fields should dynamically appear based on the checkboxes selected. I attempted to achieve this functionality using the select option method

Require checkboxes instead of a selection option and have multiple checkbox options. Depending on the checked checkboxes, different form fields should appear. A submit button is needed. I have included some CSS code, but a more detailed CSS code is requir ...

Ways to create a loop that continues running until a specific condition becomes true

How can I make the code repeat until a certain condition is met? I want the code to keep repeating until it is true In my script, I have a condition that checks for a specific color using pyautogui. If the color matches, I want the program to click on ce ...

Python may not always accurately detect function loop conditions

I have the following Python code snippet: def numTest(): getNum = "https://sms-activate.ru/stubs/handler_api.php?api_key=" + api + "&action=getNumber&service=go&country=3" numReq = requests.get(getNum) smsNum = n ...

Unable to execute SikuliX scripts via Command Line on Mac operating systems

I'm currently using MacOS 10.11.6 and I seem to be facing an issue with the SikuliX command runsikulix, which according to the guidelines mentioned here, should be available after installation. However, I couldn't locate it as expected. Could any ...

Finding the locations where rows in a Numpy 2D array intersect

I am seeking to obtain the indices of the intersecting rows between a primary numpy 2d array A and another array B. A = array([[1,2], [1,3], [2,3], [2,4], [2,5], [3,4] [4,5]]) B = array([[ ...

A method for merging the values of three text fields and submitting them to a hidden text field

<label class="textRight label95 select205">Cost Center: </label> <input type="hidden" name="label_0" value="Cost Center" /> <input type="text" name="value_0" class="input64 inputTxtGray" value="" maxlength="10" /> <input type=" ...

What strategies can I implement using Selenium and WebDriver for this particular scenario?

Hey everyone, I'm new to Python and I'm looking to use Selenium's webdriver for automation. Specifically, I want to automate the login process on a webpage. I've done some searching but haven't found what I need. Oh, by the way, t ...

I require assistance merging strings that include numerical values

As I begin my scripting course today, I am faced with the challenge of combining strings that contain numbers without actually adding them together in Python. I understand that number1 + number2 will add the numbers, but I am unsure how to simply combine ...

Issue with Django query not being successfully transferred to AJAX in JSON structure

Trying to populate a textfield with its corresponding database value using Django and AJAX. The objective is for the textfield to automatically update when the dropdown value changes. However, encountering an error in console: SyntaxError: Unexpected to ...

html inserting line break using label

I am attempting to dynamically set text to a label using jQuery. However, I am having trouble getting the <br> or \n to create new lines. Instead, all the text displays on the same line and wraps around. If you want to see my code in action, ch ...

What could be causing the unexpected white gap within my div element even though I've adjusted its dimensions to be minimal?

<div style=" height:0; width: 0 ; border: 1px solid black ; "> This code snippet displays a div element with a specified height, width, and border color. However, there seems to be an issue with the rendering as some st ...