login community faq

Hi,

I am trying to write some custom management commands, tried creating a testing.py then running python2.7 manage.py testing but it errors Unknown command: 'testing'. On my linux machine with django 1.3 it works fine. management/containing.init.py and commands/ containing init.py and testing.py

I have tried putting copying the management folder into myproject, myproject/myproject and myproject/appname folders. I have also confirmed the correct settings.py and manage.py are being used. and tried adding the following to the manage.py. sys.path.insert(0, "/home/ewanmd/webapps/testapp/myproject/management/commands")

django link https://docs.djangoproject.com/en/dev/howto/custom-management-commands/

Thanks, Ewan

asked Jul 20 '12 at 10:09

ewanmd's gravatar image

ewanmd
1


Submit a support ticket so we can look at the account directly. There is nothing about the platform which should cause problems with custom commands.

answered Jul 20 '12 at 17:28

johns's gravatar image

johns ♦♦
340427

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×643
×37
×6
×2

Asked: Jul 20 '12 at 10:09

Seen: 557 times

Last updated: Jul 20 '12 at 17:28

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited