"Caught ImportError on rendering: no module named urls" in Admin

I recently created an account in SliceHost and created a new snippet. I copied my new project and changed the paths in the settings and each file. But, when I try to access the admin interface, I get this error:

TemplateSyntaxError at /admin/
Caught ImportError while rendering: No module named urls

In template /usr/local/lib/python2.6/dist-packages/django/contrib/admin/templates/admin/base.html, error at line 31
Caught ImportError while rendering: No module named urls

Does anyone know why?

+3
source share
3 answers

I fixed my problem. This was because I was in the wrong version of Haystack. Thanks guys.

+2
source

To clarify the above answer, when installing from pipyou can grab haystackor django-haystack. Similarly for typogrifyand, of course, other packages.

, INSTALLED_APPS .

, !

+1

I had this error while importing URLs at the root level:

urlpatterns = patterns('',
url(r'^tag/', include('tag.urls')),    
#(...)

The file "tag / urls.py" is missing. So. There is no module named URL. A much better error message would be

Module 'urls.py' not found in app / tag

or something similar.

0
source

All Articles