django-simple-autocomplete icon indicating copy to clipboard operation
django-simple-autocomplete copied to clipboard

can not set url in urlpatterns

Open zhaowei699 opened this issue 5 years ago • 0 comments

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.

zhaowei699 avatar Feb 21 '20 04:02 zhaowei699