hi,
while writing application that are meant to be used in many
different
projects *and* that allow projects to overwrite single methods/
classes I
need to have a way to refer to the application project in a general
way
(not by name, since I don't know in the application which will be
the
name).
Is there a simple way to do this?
Suppose I have a directory schema like this:
mysite/settings.py
templates/
mysite_classes/__init__.py
personalized_classes.py
I'd like to know how to say in a general way:
from mysite.mysite_classes import personalized_classes
now I'm doing this using __import__ and and storing the project dir
in a
variable set inside settings.py, but I'd like to know if it exists a
more
standard way since it seems to me a pretty common thing to do.
thanks
sandro
*:-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---