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
>>>import mymodule
>>>mymodule.execute()

But I would like to run it like 

>python mymodule.py

I really don't want to set the DJANGO_SETTINGS_MODULE as a system
environment variable since I have other django webapps I debug on this
box, but perhaps I just don't grasp the concept here.  I apologize for
asking something that I'm sure has been covered, I just could not find
it.

I'm currently using django 1.2.4 and Python 2.4 but could upgrade both
if that's the correct solution.

-- 
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.

Reply via email to