egorsmkv / simple-django-login-and-register

An example of Django project with basic user functionality.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'Settings' object has no attribute 'SIGN_UP_FIELDS'

dheerajpai opened this issue · comments

Development version is working fine. But I am getting this error during Production. Searched through SO but did not find a solution. Please help

The following lines are missing in the app/conf/production/settings.py

SIGN_UP_FIELDS = ['username', 'first_name', 'last_name', 'email', 'password1', 'password2']
if DISABLE_USERNAME:
    SIGN_UP_FIELDS = ['first_name', 'last_name', 'email', 'password1', 'password2']

If they are added everything works fine