Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Is there any way I can add a custom Django command which doesn't need an underlying application or project to work (pretty much like startapp or startproject)?

$ django-admin.py startveryniceproject projectname

One way I can imagine this could be accomplished would be to copy a startveryniceproject.py into django.core.management.commands, but does that really sound "clean"?

share|improve this question
What would you hope to achieve by this? You couldn't do very much without a settings file, which is the minimum required for a project anyway. – Daniel Roseman Mar 25 at 15:23
@DanielRoseman Maybe "alias" django-admin.py startproject --template=/path/to/something --and-some-options" with django-admin.py startveryniceproject`. – Maicow Naite Mar 25 at 15:50

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.