connectedin/urls.py - OK!
from django.contrib import admin
from django.urls import path, re_path, include
urlpatterns = [
path('admin/', admin.site.urls),
re_path(r'^', include('perfis.urls'))
]
perfis/urls.py - OK!
from django.conf.urls import url
from perfis.views import index
urlpatterns = [
url(r'^$', index, name='index'),
]
Mas usando django.urls em perfis/urls.py - FAIL!
from django.urls import path
urlpatterns = [
path('', index, name='index'),
]
connectedin/perfis/urls.py", line 26, in
path('', index, name='index'),
NameError: name 'index' is not defined