Skip to content

selon la version de Django, le passage des namespace avec include est différent #13

Description

@paulgpt

Hello,

see documentation below:
https://docs.djangoproject.com/en/dev/releases/1.9/#passing-a-3-tuple-or-an-app-name-to-include

otherwise if you type: urlpatterns = [
url(r'^$', views.index),
url(r'^store/', include('store.urls', namespace='store')),
url(r'^admin/', admin.site.urls)
]

you get (at least me with Django 3.0.6) :
'Specifying a namespace in include() without providing an app_name '
django.core.exceptions.ImproperlyConfigured: Specifying a namespace in include() without providing an app_name is not supported. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead.

worked for me (django 3.0.6)

C U

Paul

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions