Django-Registration-Redux doesn't see my templates/registration templates

davesharp

I am using Django 1.10. Technically this post is regarding Django-registration-redux but SO wouldnt let me create a new tag to post the question. Django-registration-redux doesnt see the registration templates. I copied all the templates into a folder called "registration" inside of my templates folder. I dont get an error though. For example, when I go to /accounts/register it renders some form but it isn't the one from my templates/register folder. Im not sure what I am doing wrong. I have even gone as far as to delete the templates/registration folder entirely and I dont even get an error. I read some similar posts where people had to move the registration to the top of the installed apps so it wouldnt use the admin forms which I tried and didnt help. So far nothing has changed. All the templates do extend base.

So Im guessing I have configured something wrong. It's weird. All the functionality is there but its just not using my templates. Sorry if its a dumb question but I would appreciate some help!

pip freeze
Django==1.10
django-crispy-forms==1.6.0
django-registration-redux==1.4

INSTALLED_APPS = [
    'registration',
    'django.contrib.admin',
    'django.contrib.sites',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # third party
    'crispy_forms',
    # my apps
    'todo',
]



# Django registration redux settings
ACCOUNT_ACTIVATION_DAYS = 7
REGISTRATION_OPEN = True
REGISTRATION_AUTO_LOGIN = True
LOGIN_REDIRECT_URL = '/'  # The page you want users to arrive at after they successful log in
LOGIN_URL = '/accounts/login/'

SITE_ID = 1

Here is my /templates/registration/registration_form.html

{% extends "base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}

{% block content %}
<div class='row'>
<div class='col-sm-6 col-sm-offset-3'>
<h1>Register for free!</h1>
<form method="post" action=".">
  {% csrf_token %}
  {{ form|crispy }}

  <input class='btn btn-block btn-primary' type="submit" value="{% trans 'Join' %}" />
</form>
</div>
</div>

<hr/>
<div class='row'>
<div class='col-sm-6 col-sm-offset-3 text-align-center'>
<p>Need to <a href="{% url 'auth_login' %}">Login</a>?</p>
</div>
</div>

{% endblock %}

this is a screenshot showing the form I see at accounts/register

Filip Wojciechowski

In settings.py you have to place your app above the 'registration' app. It seems the order the apps are listed in the settings.py file determines which templates are being used.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Django-Registration-Redux doesn't see my templates/registration templates

From Dev

Django doesn't see view

From Dev

List doesn't load in django templates

From Dev

Why doesn't Qt see my slot?

From Dev

Eclipse doesn't see my Android device

From Dev

my jsp doesn't see css

From Dev

NetworkManager doesn't see my wireless card

From Dev

Why doesn't java see my annotation?

From Dev

Gradle doesn't see my swing components

From Dev

NetworkManager doesn't see my wireless card

From Dev

Skype doesn't see my webcam

From Dev

Osirix doesn't see my plugin

From Dev

my jsp doesn't see css

From Dev

ADB doesn't see my tablet

From Dev

CircleCi doesn't see my test

From Dev

Minidlna doesn't see my second hhd

From Dev

Why doesn't screen see my alias?

From Dev

Django can't see my validator

From Dev

My PHP array somehow doesn't see my array as an array

From Dev

Django Registration Redux custom registration form

From Dev

Django registration redux registration only with email (no password)

From Dev

Django registration redux registration only with email (no password)

From Dev

My Webpage doesn't recognize the data fulfilled in a registration form

From Dev

Field 'id' doesn't have a default value django-registration

From Dev

Field 'id' doesn't have a default value django-registration

From Dev

Why doesn't ng-view render my templates?

From Dev

An html file doesn't run from within my templates folder

From Dev

Vue doesn't render content in my component's mustache templates ( {{}} )

From Dev

django-smart-selects doesn't work in templates