Comments (9)
What's the content of your TEMPLATE_DIRS
setting? Assuming it contains a directory named /path/to/project/templates
you can set password-reset templates in /path/to/project/templates/password_reset/base.html
(etc with other template names).
from django-password-reset.
I have different apps in my django project. And for each app, I have a templates folder, like this:
path/to/project/app1/templates/app1/
path/to/project/app2/templates/app2/
...
from django-password-reset.
Ok, are they all listed in the INSTALLED_APPS
setting? I'm not sure what happens if you have both password_reset
and project.password_reset
in your installed apps.
from django-password-reset.
In my INSTALLED_APPS setting I have the password_reset app added:
INSTALLED_APPS = (
...
'password_reset',
...
)
I tried to add a folder in my path of project with the 'password_reset' name and add there the templates, but it doesn't work. The path is:
path/to/project/password_reset/templates/password_reset/base.html
from django-password-reset.
In that case you also need to have project.password_reset
in your INSTALLED_APPS (before password_reset
).
from django-password-reset.
The problem is, I can't reference to my app 'password_reset' using 'project_name.password_reset'. In the INSTALLED_APPS I am using only the name of my apps.
And now I have two apps (your 'password_reset' and my 'password_reset') with the same name.
from django-password-reset.
Then use another app name in your project. With the following layout
path/to/project/pwreset/templates/password_reset/*.html
set INSTALLED_APPS to
(
...
'pwreset',
'password_reset',
)
from django-password-reset.
Cool, works! Thanks mate.
from django-password-reset.
Sure, no problem.
from django-password-reset.
Related Issues (20)
- views.Reset.invalid AttributeError exception HOT 2
- Not working when use namespace
- Reset link doesnt show form HOT 1
- Nothing shows up on recover page. HOT 1
- NoReverseMatch
- Reset only by email
- password_reset_recover blank screen HOT 2
- Italian translation
- Token valid after password changed
- django.urls.exceptions.NoReverseMatch: Reverse for 'password_reset_reset' with arguments '('NQ:1dYOiG:BKXR_HhymHf7uYTnlDcPHioITOY',)' and keyword arguments '{}' not found. 0 pattern(s) tried: [] HOT 2
- How do i use a custom template for django-password-reset
- bug django2.x need use django.urls instead HOT 4
- Provide API for generating a reset url outside of the Form/View Code HOT 4
- Django2.1.2 can not found password_reset_reset HOT 1
- Explain the difference between this and django-registration
- URL exposes base64 encoded email address
- Plug in security feedback
- Django 4.0 Url Problem HOT 2
- Update the library for latest Django
- Please, make a pypi release of 3.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-password-reset.