Re: Manually runing daily_cleanup.py

2007-03-07 Thread Jeremy Dunck
On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > It appears my thick-headedness is acting up again. How would I go > about adding that from the command line? How DOES one run > daily_cleanup.py? I'd do something like this: DJANGO_SETTINGS_MODULE=your.settings python /path/to/django/bi

Re: Manually runing daily_cleanup.py

2007-03-06 Thread akonsu
apparently you cannot run it from the command line unless you set the environment variable. konstantin On Mar 6, 3:26 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > It appears my thick-headedness is acting up again. How would I go > about adding that from the command line? How DOES one run

Re: Manually runing daily_cleanup.py

2007-03-06 Thread Rubic
You can do something like this (all in a single command line), assuming "myproject" is in PYTHONPATH: DJANGO_SETTINGS_MODULE="settings" ./daily_cleanup.py -or- DJANGO_SETTINGS_MODULE="myproject.settings" ./daily_cleanup.py Note: You won't be able to run the above script, unless you can do the

Re: Manually runing daily_cleanup.py

2007-03-06 Thread [EMAIL PROTECTED]
It appears my thick-headedness is acting up again. How would I go about adding that from the command line? How DOES one run daily_cleanup.py? On Mar 6, 1:50 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > sorry i was not clear... > > the document explains how to use settings without seting the > DJANGO

Re: Manually runing daily_cleanup.py

2007-03-06 Thread akonsu
sorry i was not clear... the document explains how to use settings without seting the DJANGO_SETTINGS_MODULE variable. which seems to be the problem in your situation. and example from the document: from django.conf import settings settings.configure(DEBUG=True, TEMPLATE_DEBUG=True, TEMPLA

Re: Manually runing daily_cleanup.py

2007-03-06 Thread [EMAIL PROTECTED]
Thanks, but I don't have any reason to believe I have a problem with my settings file. I think I'm not running daily_cleanup.py properly. Unless I'm totally misunderstanding what you're trying to tell me. On Mar 6, 1:09 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > hello, > > this might help: > > ht

Re: Manually runing daily_cleanup.py

2007-03-06 Thread akonsu
hello, this might help: http://www.djangoproject.com/documentation/settings/#using-settings-without-the-django-settings-module-environment-variable cheers konstantin On Mar 6, 2:05 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I think I need to clean out old sessions, but when I try to

Manually runing daily_cleanup.py

2007-03-06 Thread [EMAIL PROTECTED]
I think I need to clean out old sessions, but when I try to manually run daily_cleanup.py from the command line, I'm getting: Traceback (most recent call last): File "daily_cleanup.py", line 8, in ? from django.db import backend, connection, transaction File "/home2/baxter/lib/python2.4/d