On Sun, 2009-05-24 at 13:27 -0300, Gabriel wrote:
> The problem was with one of the applications 'profile'. It seems it
> already exists somewhere.

Correct, there is a standard python module called profile.

$ python
Python 2.6.2 (r262:71600, May  7 2009, 21:32:12) 
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import profile.urls
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named urls
>>> 

This looks familiar, right? It is not good to name apps to conflict
with standard python modules; someday someone will be confused :).

The reason python found the standard module instead of your 'profile'
module is that you appended your paths to the end of sys.path. If you
had added them to the beginning of the list, python would have found
your 'profile' module instead of the standard one. Example:

    workspace = '/home/gabriel/pywks'
    project = '/home/gabriel/pywks/vertaal'
    sys.path = [workspace, project] + sys.path

Hope that makes sense.

sdc



--~--~---------~--~----~------------~-------~--~----~
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