Thanks to all who responded and especially Shawn who said much the same
thing in a way I could grasp.
...
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
>From the docs:
http://docs.djangoproject.com/en/dev/topics/settings/
Shawn
--
You received this message because you
On Thu, Mar 10, 2011 at 12:49 PM, Tom Evans wrote:
> On Thu, Mar 10, 2011 at 5:42 PM, Sells, Fred
> wrote:
>> I'm sure the solution is out there somewhere, but my google search is
>> giving me too many false positives.
>>
>> I have a stand along python program that will be run as a cron job and I
On Thu, Mar 10, 2011 at 5:42 PM, Sells, Fred
wrote:
> I'm sure the solution is out there somewhere, but my google search is
> giving me too many false positives.
>
> I have a stand along python program that will be run as a cron job and I
> don't know how to launch it so it picks up the django set
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
>From the docs:
http://docs.djangoproject.com/en/dev/topics/settings/
Shawn
--
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@
I'm sure the solution is out there somewhere, but my google search is
giving me too many false positives.
I have a stand along python program that will be run as a cron job and I
don't know how to launch it so it picks up the django settings, etc.
I can run it like this
>python manage.py shell
>
5 matches
Mail list logo