On Jun 28, 2:26 pm, briehan <briehan.lomba...@gmail.com> wrote:
> We have a custom 'sites framework' implementation that basically
> consists of a Site model and SiteManager. For some reason, when
> running the app, the Site model uses the SiteManager from
> django.contrib.sites instead of our own.
>
> I did the following from within the app:
>
> from myapp.sites.models import Site
> print type(Site.objects)
>
> <class 'django.contrib.sites.models.SiteManager'>
>
> When doing the same from the management shell (./manage.py shell), I
> get the expected output:
>
> >>> from myapp.sites.models import Site
> >>> type(Site.objects)
>
> <class 'myapp.sites.models.SiteManager'>


Not enough info to be sure but looks like some sys.path order issue to
me.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to