Re: permalinks from cron job
:: 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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home