Re: Help - No module named models

2013-02-04 Thread frocco
Thank you

On Sunday, February 3, 2013 1:04:15 PM UTC-5, frocco wrote:
>
> Hello,
>
> 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:GETRequest URL:http://127.0.0.1:8000/Django 
> Version:1.4.3Exception 
> Type:ImproperlyConfiguredException 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 151Python 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+unsubscr...@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.




Re: Help - No module named models

2013-02-04 Thread Brad Pitcher
On Sun, 2013-02-03 at 10:04 -0800, frocco wrote:
> from catalog.models import Category

It is probably this line. Maybe there is no __init__.py file in the
catalog directory?

-- 
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+unsubscr...@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.




Help - No module named models

2013-02-03 Thread frocco
Hello,

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:GETRequest URL:http://127.0.0.1:8000/Django 
Version:1.4.3Exception 
Type:ImproperlyConfiguredException 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 151Python 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+unsubscr...@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.