Hey all,

long time lurker, first time poster. I want to say thanks for this
great framework, I am really loving developing with/ getting the hang
of it.

I am in the process of building my first major django app, and I have
run into an issue that I think I can chalk up to unfamiliarity with the
framework.

I may in the future want to distribute my app via an installer/ project
install setup page, and allow people to specify a subdirectory of their
web site to install said app into, e.g:

http://foo.com/myinstalleddjangoapp/

Or, they may want to just install it in the root of foo.com. Either
way, I want to enable my templates/ views to be able to handle this
subdirectory without modifying the templates/ views for every case.

What is the best way to set and retrieve some sort of variable/ setting
such that I can properly include any subdirectory the django app is
installed in, so all of my paths are correct in my template and in my
views where I specify urls?

Right now I am thinking this would be best accomplished by a
templatetag/ filter. Am I on the right track here?

Thanks in advance, and apologies if this is spelled out in black and
white in the docs (slow morning ;))

-Chris


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

Reply via email to