‘module’ object has no attribute ‘__path__’

If you’re seeing the above error, possibly during a reverse() call, and possibly involving the django.contrib.auth.views.template_detail view, make sure none of your application directories has a file named templatetags.py – Django actually requires this to be be a package/directory.

Oh, and on a more general note: Not forgetting the .pyc files when deleting modules will greatly reduce the time needed to  debug cases like this 😉

One thought on “‘module’ object has no attribute ‘__path__’

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s