Also you can use FORCE_SCRIPT_NAME<https://docs.djangoproject.com/en/dev/ref/settings/#force-script-name>in your settings
2011/12/7 Daniel Roseman <dan...@roseman.org.uk> > On Wednesday, 7 December 2011 12:49:47 UTC, aleksandra...@googlemail.comwrote: >> >> Hello everyone >> >> Becuase I do not use django database at all my application currently >> can't be deployed to a custom location different from "/" quite >> simply. I use {% url ... %} template tags within templates and >> django.core.urlresolvers.**reverse to populate urls. The problem is that >> if I deploy myapp under http://host:port/MYSAPCE/myapp and site_id is >> not defined in db the url is not picking "MYSAPCE". >> >> What I am trying to do now is to write my own site model (without >> using django database) that would be used by urlresolver. I was >> wondering if someone could point me how that should be done. >> >> Thanks >> Alex >> > > How are you deploying your application? There should be no need for a > custom urlresolver - Django uses the SCRIPT_NAME value which should be set > by your webserver. If that's not working for you, you may have something > wrong in your hosting setup. > -- > DR. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/IF09jV7YDwkJ. > > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Andrés Reyes Monge armo...@gmail.com +(505)-8873-7217 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.