M
M
Michael La2019-06-06 16:27:28
Django
Michael La, 2019-06-06 16:27:28

Migrations not working in Django?

An error occurs when running migrations in Django. I do not know what to do! Reinstalled everything. Error code on pastebin - *click*

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-06-06
@deepblack

You have imports in the code for the old version of Django.
And most likely version 2.2 is installed.
It urls.pylooks like this:

from django.urls import path

from . import views

urlpatterns = [
    path('articles/2019/', views.special_case_2019),
    # ...
]

I recommend going through the Django tutorial at the office. site.
This will avoid similar questions in the future.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question