A
A
Alexander2016-03-30 12:25:20
Django
Alexander, 2016-03-30 12:25:20

What is the error when running the migration (registration redux)?

I follow this manual django-registration-redux.readthedocs.org/en/lates...
install pip install django-registration-redux
then add to INSTALLED_APPS :

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.sites',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'blog.apps.BlogConfig'
    'registration',
]

Terminal:
(m_env) [email protected]:~/my_projects/python_projects/my_env$ python3.5 manage.py migrate
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
.....................
File "/home/alexander/my_projects/python_projects/my_env/m_env/lib/python3.5/site-packages/django/db/models/base.py", line 103, in __new__
    "application was loaded. " % (module, name))
RuntimeError: Model class registration.models.RegistrationProfile doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded.

Where did I miss?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav, 2016-03-30
@Firik67

Added ACCOUNT_ACTIVATION_DAYS to settings?
And you missed the comma after
'blog.apps.BlogConfig'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question