In my settings.py
import django.conf.global_settings as DEFAULT_SETTINGS
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
'utils.context_processors.eStore',
)
in my utils directory I have a context_processors.py
from django.conf import settings
from catalog.models import Category
from django.shortcuts import RequestContext
from cart import shoppingcart
def eStore(request):
return { ... }
ImproperlyConfigured at /
Error importing request processor module utils.context_processors: "No module named models"
| Request Method: | GET |
|---|---|
| Request URL: | http://127.0.0.1:8000/ |
| Django Version: | 1.4.3 |
| Exception Type: | ImproperlyConfigured |
| Exception Value: | Error importing request processor module utils.context_processors: "No module named models" |
| Exception Location: | /Library/Python/2.7/site-packages/django/template/context.py in get_standard_processors, line 151 |
| Python Executable: | /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python |
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment