WebFaction
Community site: login faq

Hi there,

I've had a look through the questions already and tried the answers, but to no avail.

I'm trying to run a custom django management command via cron, which already works via the command line.

Here's my cronjob, which doesn't seem to work:

PYTHONPATH=/home/paulw/webapps/paulv2/lib:/home/paulw/webapps/paulv2/lib/python2.7:/home/paulw/webapps/paulv2:/home/paulw/webapps/paulv2/<project>
DJANGO_SETTINGS_MODULE=<project>.settings

* * * * * /usr/local/bin/python2.7 /home/paulw/webapps/paulv2/<project>/manage.py updateblog

My actual settings file is location in /home/paulw/webapps/paulv2/<project>/paulw/settings.py as opposed to the level above, I think due to using Django 1.4.

Any help appreciated.

asked 17 Apr '12, 05:27

paulw
313
accept rate: 0%

edited 17 Apr '12, 08:32


Hi,

You may want to try changing this line:

DJANGO_SETTINGS_MODULE=paulwitherden.settings

to:

DJANGO_SETTINGS_MODULE=paulw.settings

If this doesn't work, please open a ticket, so we can take a look at your settings and try to fix them for you.

permanent link

answered 17 Apr '12, 05:50

todork
1.2k5
accept rate: 34%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×337
×81
×50

question asked: 17 Apr '12, 05:27

question was seen: 2,633 times

last updated: 17 Apr '12, 08:32

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM