thanks mike & jeff. this very much solves my problem.

regards,
patrick


On 6 Feb., 06:14, newspaper-django-lackey <jeff.t.lind...@gmail.com>
wrote:
> Naming conflicts are a consistent issue brought up on the boards. I've
> had issues several times where an app name conflicted with a core
> Python library, Pluggable, or library extension. Generally the process
> I follow for apps, both personally created and pluggable, is to put
> them not directly on the python path but one layer off then modify the
> import statements of the app to deal with the extra layer. This
> affords me the option to specify which parent folder my app is in
> therefore separating it from other folders that might have the same
> name. For instance All of my personal apps might be in the mysite
> folder while pluggables are kept in the addons folder. These two
> folders are added to the PYTHONPATH either by sys or through wsgi.
> Imports of a view within those folders would be mysite.user.views
> rather than user.views limiting the possibility for conflict. There
> are times when this isn't worth the trouble because a very complicated
> pluggable wants to be on the path and changing all of the import
> statements feels like a burden, but I've also spent hours trying to
> get a dateutil library to work only to find out that there is a naming
> conflict with another library, which hides the one I want.
>
> hope this helps.
>
> jeff
>
> On Feb 4, 3:17 am, patrickk <sehmasch...@gmail.com> wrote:
>
> > our hosting-provide told me that I should rename my django-app "user"
> > to something else, because there´s a python-module "user" and with
> > using user.urls (within our url configuration), we do get an error.
> > my question is, if this is the correct way to solve this problem. so
> > far, I´ve never noticed that there are restrictions to django app-
> > names (and I guess there aren´t).
> > we didn´t have this problem with our previous hosting-provider and
> > before I´m going to rename my app (for several websites), I´d like to
> > know if the problem is caused by the "wrong" app-name or if it´s a
> > server setup problem.
>
> > regards,
> > patrick
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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