Django error: migrations not working

34 views
Skip to first unread message

Jasleen Kaur

unread,
Feb 18, 2016, 7:14:54 AM2/18/16
to Django users
I am unable to do any migrations in any django project. Need help.

$python manage.py makemigrations
No changes detected

$django-admin check
...
...
django.core.exceptions.ImproperlyConfigured: Requested setting
DATABASES, but settings are not configured. You must either define the
environment variable DJANGO_SETTINGS_MODULE or call
settings.configure() before accessing settings.

Daniel Roseman

unread,
Feb 18, 2016, 7:21:48 AM2/18/16
to Django users
What exact problem do you think you have here? Your first message tells you that you have no changes that need migrations. The second is completely irrelevant; if you wanted to validate things you should run manage.py check, but it has no relationship with migrations at all.
-- 
DR.
Reply all
Reply to author
Forward
0 new messages