Git Product home page Git Product logo

Comments (9)

brutasse avatar brutasse commented on September 26, 2024

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.

joannadal avatar joannadal commented on September 26, 2024

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.

brutasse avatar brutasse commented on September 26, 2024

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.

joannadal avatar joannadal commented on September 26, 2024

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.

brutasse avatar brutasse commented on September 26, 2024

In that case you also need to have project.password_reset in your INSTALLED_APPS (before password_reset).

from django-password-reset.

joannadal avatar joannadal commented on September 26, 2024

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.

brutasse avatar brutasse commented on September 26, 2024

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.

joannadal avatar joannadal commented on September 26, 2024

Cool, works! Thanks mate.

from django-password-reset.

brutasse avatar brutasse commented on September 26, 2024

Sure, no problem.

from django-password-reset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.