Hi all,

I found a solution by myself and was already documented in the Django
documentation:

the best solution is to set apache with mod_python and the follwing
configuration:

<Location "/pootle/">
   SetHandler python-program
   PythonHandler django.core.handlers.modpython
   PythonPath "['/home/uolter/pycode/pootle_env/folsom', '/home/uolter/
pycode/pootle_env/folsom/pootle', '/home/uolter/pycode/pootle_env/
folsom/local_apps', '/home/uolter/pycode/pootle_env/folsom/
external_apps'] + sys.path"
   SetEnv DJANGO_SETTINGS_MODULE pootle.settings
   PythonInterpreter pootle
   PythonOption django.root /pootle
   PythonDebug On
</Location>

where the key points are:

<Location "/pootle/">
..............................
............................

(where the slashes are mandatory)

and

PythonOption django.root /pootle
..........................................
........................................



On 20 Feb, 09:29, Uolter <[email protected]> wrote:
> I am running Pootlehttp://translate.sourceforge.net/wiki/pootle/index
> which is basically a Django apps on dabian server. All the urls look
> like:
> http://<host>/account/login?next=index
> http://<host>/docs/index.html
> http://<host>/admin/
> and so on.
>
> I would like to add the application name before each path:
> http://<host>/<app_name>/account/login?next=index
> http://<host>/<app_name>/docs/index.html
> etc.
>
> How can I do that without changing the code? Urls inside templates are
> always relatives.
> Is there any configuration in Django?
> I also have an apache in front of it.

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

Reply via email to