bump :) I also noticed that the djangoproject webistes templates are full of absolute hrefs to stylesheets and other *media*. Does anyone else think this is a bad idea?
ChrisW. plungerman wrote: > greetings, > > in an attempt to better understand, django from a systems perspective, > i have been attempting to install various blog type applications that i > have found out there in the wild. i ran into a problem with Jeff > Croft's lost-theories application. basically, i set up my apache > mod_python to send all requests for /lost/ to the django interpreter: > > <Location "/lost/"> > SetHandler python-program > PythonHandler django.core.handlers.modpython > PythonPath "['/d2'] + sys.path" > SetEnv DJANGO_SETTINGS_MODULE lost.settings > PythonDebug On > </Location> > > i modified the urls.py file to accomodate this structure, adding "lost" > to the reg ex for each pattern, for example: > > # For homepage: > (r'^lost/$', 'django.views.generic.simple.direct_to_template', > {'template': 'homepage.html'}) > > the problem is that all of the templates use a fully qualified path > from the "document root". for example: > > <a href="/theories/create/"> > > it would be nice to be able to include a ROOT_URL or ROOT_URI value in > the settings.py file, just like for MEDIA_URL. the end result would be > that you could put ROOT_URI at the beginning your HREF, allowing you to > install the application in any place you want. for example: > > <a href="{% root_uri %}theories/create/"> > > is there another way to accomplish this that i have missed in the > documentation? any thoughts on this practice? i am in essence looking > for a way to make things more portable. > > thanks in advance. > > yours, > > steve --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---