On Thursday 04 February 2010 01:17:46 patrickk 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 >
It's a "wrong" app-name, apps can't conflict with existing python modules and follow the rules of python module naming conventions, because just like a project a django app is really a python module, just with a different name. FYI: Help on module user: NAME user - Hook to allow user-specified customization code to run. FILE /usr/lib/python2.6/user.py MODULE DOCS http://docs.python.org/library/user DESCRIPTION As a policy, Python doesn't run user-specified code on startup of Python programs (interactive sessions execute the script specified in the PYTHONSTARTUP environment variable if it exists). However, some programs or sites may find it convenient to allow users to have a standard customization file, which gets run when a program requests it. This module implements such a mechanism. Mike -- Don't be concerned, it will not harm you, It's only me pursuing something I'm not sure of, Across my dreams, with neptive wonder, I chase the bright elusive butterfly of love.
signature.asc
Description: This is a digitally signed message part.