Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not set url in urlpatterns #26

Open
zhaowei699 opened this issue Feb 21, 2020 · 0 comments
Open

can not set url in urlpatterns #26

zhaowei699 opened this issue Feb 21, 2020 · 0 comments

Comments

@zhaowei699
Copy link

the error information when i set url in urlpatterns:

File "C:\scripts\autoliv-china-test-management-system\testServiceShop\urls.py", line 49, in <module>
    url(r'^simple-autocomplete/', include('simple_autocomplete.urls', namespace='simple_autocomplete')),
  File "C:\my_env_python\django\lib\site-packages\django\urls\conf.py", line 39, in include
    '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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant