P
P
Pan Propan2016-02-21 12:08:41
Django
Pan Propan, 2016-02-21 12:08:41

How to set up Django-registration-redux in basic settings?

I did everything according to the guide .
When I try to go to the registration page, I get 192.168.0.105:8000/accounts/register .

TemplateDoesNotExist at /accounts/register/
base.html
Request Method: GET
Request URL: 192.168.0.105:8000/accounts/register
Django Version: 1.9.2
Exception Type: TemplateDoesNotExist
Exception Value:
base.html

I copied the template files in advance to the templates/registration/ folder.
In settings.py I specified the templates folder.
'DIRS': [os.path.join(BASE_DIR, "templates")],
24b94586ab9d4bc3bcab487d4216a497.png
please tell me good people what else can be wrong. I am new to Django.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oscar Django, 2016-02-21
@mgis

You don't have a base.html file in the root of the templates folder.
Your template is inherited from registration/registration_base.html.
If you go into the registration/registration_base.html file, you will see that it inherits from base.html. It doesn't exist by default.

D
Dmitry Voronkov, 2016-02-21
@DmitryVoronkov

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'APP_DIRS': True,
    },
]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question