I just created a Django project and started the server. It works fine but showed warnings such as
You have 14 unapplied migration(s)...
Then i ran
python manage.py migrate
in the terminal. It worked, but it showed me
?: (1_7.W001) MIDDLEWARE_CLASSES is not set. HINT: Django 1.7 changed the global defaults for the MIDDLEWARE_CLASSES. django.contrib.sessions.middleware.SessionMiddleware, django.contrib.auth.middleware.AuthenticationMiddleware, and django.contrib.messages.middleware.MessageMiddleware were removed from the defaults. If your project needs these middleware then you should configure this setting.
And now I have this warning after starting my server.
You have 3 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth.
So, how do I migrate correctly to get rid of this warning?
I am using PyCharm and tried to create a project through PyCharm and terminal, and I had the same problem.
~$ python3.5 --version Python 3.5.2 >>> django.VERSION (1, 10, 1, 'final', 1)
source share