webvirtmgr icon indicating copy to clipboard operation
webvirtmgr copied to clipboard

Missing Python module 'name', 'url', and 'patterns'

Open egberts opened this issue 7 years ago • 2 comments
trafficstars

In Debian 9.2, the check option of manage.py resulted in missing the following Python modules.

  • name
  • url
  • patterns

Workaround is to perform the following:

sudo pip install name url patterns

egberts avatar Jul 11 '18 14:07 egberts

Also, newer django obsoleted the 'patterns' as detailed here...

urlpatterns = [ url(r'^admin/', include(admin.site.urls)), # ... your url patterns ]

Source: https://stackoverflow.com/questions/8074955/cannot-import-name-patterns

egberts avatar Jul 11 '18 14:07 egberts

Major changes to urlpatterns set list.

https://docs.djangoproject.com/en/1.9/topics/http/urls/#example

egberts avatar Jul 11 '18 14:07 egberts