Hi,

I'm trying to alter some urls from <application>/localsite/urls.py . This 
is for my own extensions to Satchmo. For the global url settings 
<application>/urls.py is used as usually.
'myapp.localsite' is added in INSTALLED_APPS tuple in settings.py.

Now when I run the application I'm getting "ImportError: cannot import name 
urlpatterns" to expression from "satchmo_store.urls import urlpatterns".
- the urlpatterns _does_ exist in satchmo_store.urls module
- it throws the exception when run in production mode only ! When DEBUG is 
just set back to true in local_settings.py application runs normally, no 
import error !

I've discovered at stage when myapp.localsite is processed it
1) imports satchmo_store.urls.__init__
2) above module subsequently imports satchmo_store.urls.default
3) inside module satchmo_store.urls.default it silently aborts at 
admin.autodiscover() call  (admin is imported from django.contrib)
4) previous causes import from 1) is not completely processed so it won't 
even get to urlpatterns definition, so the ImportError exception

Can anybody help shed some light what's going on here ? Why the breakage at 
admin.autodiscover ? Any idea how it can get fixed ?

Note: I'd really like to avoid put everything in urls.py at project root 
just to make it run and mix unrelated definitions together.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to satchmo-users+unsubscr...@googlegroups.com.
To post to this group, send email to satchmo-users@googlegroups.com.
Visit this group at http://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to