Hi list,

What is the proper way to import modules within an application ? For  
example if I have a project "foo" containing an application "bar",  
how should I import things in bar's modules ?

1. import foo.bar.module
the source code has to be modified when using bar in another project

2. import bar.module
the application is more portable, but its path has to be included in  
PYTHON_PATH (at least under mod_python)

I feel like I am missing a more elegant solution :-)

Luper

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to