Roejames12/django-error-pages — pull request #2 by mikeshultz (2013-02-12 23:04:36+00:00)
Title: Use django.conf.settings for project settings

To import project settings, you should use `django.conf.settings`, as it won't import correctly when it's installed to site-packages.

Error when trying to use middleware:

>>> import error_pages.middleware.ErrorPageMiddleware
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/error_pages/middleware.py", line 7, in
from error_pages import config
File "/usr/lib/python2.7/site-packages/error_pages/config.py", line 1, in
import settings
ImportError: No module named settings

[Reference](https://docs.djangoproject.com/en/dev/topics/settings/#using-settings-in-python-code).