:: bump :: On Jan 14, 1:59 pm, "eric.frederich" <eric.freder...@gmail.com> wrote: > My django urls work nicely when browsing around, clicking things, and > when my views generate emails. They all have the appropriate prefix. > > In apache's conf file I have the following... > > WSGIScriptAlias /apps /export/home/web/docs/django/my_site/apache/ > django.wsgi > > My urls look likehttps://mydomain.com/apps/some_app/ > > I looked dug around django's code and saw that the magic was happening > between urlresolvers.py and the wsgi handler setting the appropriate > prefix '/apps'. > > So, my question is.... how do I get the /apps prefix into my urls when > running outside of the web (i.e. via a cron job). > > Is there some setting somewhere to set the prefix? > Can it be set via an environment variable? > How to I get the reverse function in urlresolvers to add /apps to my > url like it does when run through wsgi? > > Thanks, > ~Eric
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.