The list of urlpatterns should not have a prefix string
In Django 5.0 I get the error:
The list of urlpatterns should not have a prefix string.
My code is:
from django.conf.urls import url
from django.urls import path, include
from django.contrib import admin
app_name = 'AppServer_test' # specified as string literal rather than a variable
urlpatterns = [
path('admin/', admin.site.urls),
path('api/v1.0/user/', include('user_accounts.urls')),
path('api/v1.0/notifications/', include('notifications.urls')),
path('api/v1.0/feedback/', include('feedback.urls')),
# path('', include('AppServer_test.urls')),
# check that AppServer_test.urls is a valid and accessible module
]
I've got the same code working in Django 3.2, the error only occurs in a system using 5.0
I've tried using round brackets instead of square as in this post:
Django 1.11 url pattern error, how to solve?