I did what you say, but when I run the  migration I see this:

Running migrations:
  No migrations to apply.
Executing manage.py migrate
Operations to perform:
  Apply all migrations: (none)
Running migrations:
  No migrations to apply.

Is it mean the migration has happened before?

How can I understand?

در یکشنبه 7 آوریل 2019، ساعت 14:28:18 (UTC+4:30)، Saeed Pooladzadeh نوشته:
>
> Hello
>
> I've added an external library in django. I have installed in installed 
> apps but when I try to migrate the model I keep getting this error:
>
> ERRORS:
> ?: (admin.E408) 'django.contrib.auth.middleware.AuthenticationMiddleware' 
> must be in MIDDLEWARE in order to use the admin application.
> ?: (admin.E409) 'django.contrib.messages.middleware.MessageMiddleware' 
> must be in MIDDLEWARE in order to use the admin application.
> The interactive Python process has exited.
> The interactive Python process has exited.
>
> and my middleware is this:
>
> MIDDLEWARE_CLASSES = [
>     'django.middleware.security.SecurityMiddleware',
>     'django.contrib.sessions.middleware.SessionMiddleware',
>     'django.middleware.common.CommonMiddleware',
>     'django.middleware.csrf.CsrfViewMiddleware',
>     'django.contrib.auth.middleware.AuthenticationMiddleware',
>     'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
>     'django.contrib.messages.middleware.MessageMiddleware',
>     'django.middleware.clickjacking.XFrameOptionsMiddleware',
>     'django.contrib.auth.middleware.AuthenticationMiddleware',
>     'django.contrib.messages.middleware.MessageMiddleware'
> ]
>
> Also my IDE is visual studio.
>
> Please inform me.
>
> Saeed
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/93acf38e-a685-45e7-9ba3-cf78f964f268%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to