hovel / imagestore

Django gallery solution.
BSD 3-Clause "New" or "Revised" License
164 stars 72 forks source link

ImportError: No module named defaults #39

Closed andreesg closed 10 years ago

andreesg commented 10 years ago

Hi,

This error appears when using Django >= 1.6, In the latest version of urls.py (https://github.com/hovel/imagestore/blob/master/imagestore/imagestore_cms/urls.py) "django.conf.urls.defaults" is deprecated resulting in a "ImportError: No module named defaults"

Deprecation log Django >= 1.6: https://docs.djangoproject.com/en/1.6/internals/deprecation/#id1 ("django.conf.urls.defaults will be removed")

The solution is quite simple, just use "from django.conf.urls import " instead of "from django.conf.urls.defaults import "

This fix is essential for running with Django >= 1.6, Hope this helps, Cheers!

GeyseR commented 10 years ago

https://github.com/hovel/imagestore/commit/f7380d987e9c1532a5e731742378e82661f8d41a

GeyseR commented 10 years ago

thanks for reporting!