Я получаю следующую ошибку при запуске 'python3 manage.py makemigrations':
File "/Users/ksina/Documents/src/django/proj/sixerr/sixerr/urls.py", строка 27, в
url('^auth/', include('django.contrib.auth.urls', namespace='auth')),
File "/Users/ksina/Documents/src/django/proj/sixerr/venv/lib/python3.8/site-packages/django/urls/conf. py ", строка 38, в include raise ImproperlyConfigured (django .core.exceptions.ImproperlyConfigured: указание пространства имен в include () без указания app_name не поддерживается. Установите атрибут app_name во включенном модуле или передайте 2- кортеж, содержащий вместо этого список шаблонов и app_name.
Я использую django3.
Мой sixerr / urls.py:
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
url('', include('sixerrapp.urls')),
url(r'^admin/', admin.site.urls),
url('^social/', include('social.apps.django_app.urls', namespace='social')),
url('^auth/', include('django.contrib.auth.urls', namespace='auth')),
# path('auth/', include('django.contrib.auth.urls')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
И мои sixerrapp / urls .py:
from sixerrapp import views
app_name = 'sixerrapp'
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^gigs/(?P<id>[0-9]+)/$', views.gig_detail, name='gig_detail'),
url(r'^my_gigs/$', views.my_gigs, name='my_gigs'),
url(r'^create_gig/$', views.create_gig, name='create_gig'),
url(r'^edit_gig/(?P<id>[0-9]+)/$', views.edit_gig, name='edit_gig'),
url(r'^profile/(?P<username>\w+)/$', views.profile, name='profile'),
url(r'^checkout/$', views.create_purchase, name='create_purchase'),
url(r'^my_sellings/$', views.my_sellings, name='my_sellings'),
url(r'^my_buyings/$', views.my_buyings, name='my_buyings'),
url(r'^category/(?P<link>[\w|-]+)/$', views.category, name='category'),
url(r'^search/$', views.search, name='search'),
]