django-commands refers to Django's django-admin.py and manage.py management commands used for common administrative tasks.

learn more… | top users | synonyms

1
vote
0answers
7 views

Celery-Django: Celery vs django management commands

I work for a travel company where we need to send periodic mails to our teams . Since now I have been using django management commands and running them using crontabs. I was reading about what celery ...
0
votes
1answer
29 views

Django-dilla “Unknown command: 'dilla'”

I'm unable to make django-dilla work with my django1.4 project. I've installed django-dilla through pip and I can import it properly from shell. >>import dilla >>dilla.__file__ ...
0
votes
0answers
37 views

django call_command returns no module named new_text

I have to create a django command which needs to call another django command, so I had to use call_command which seems to be cool and simple: call_command('command_to_call', new_text='arghslkjt') ...
1
vote
0answers
27 views

Django command without Django application?

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 ...
0
votes
2answers
44 views

Do I need close db connection in command [django]

According to this (http://djangosnippets.org/snippets/926/) snippet, connection closed in handle. But it is kind of old code. In django 1.4, Do we must close connection? I looked through django code ...
2
votes
1answer
93 views

How to configure django-supervisord?

I'm trying to write a supervisord.conf for django fastcgi process in webfaction. When I run the command the supervisor immediately exited. supervisord.conf [program:celeryd] command={{ PYTHON }} {{ ...
0
votes
2answers
92 views

How can I flatten an optparse structure?

I'm trying to build a management command for Django and I've run into an issue. It seems that the option_list variable needs to be a flattened list of options. Here's the code — edited for brevity — ...
1
vote
4answers
174 views

How to make db dumpfile in django

I want to make a dump in django irrespective of database I am using and can be loaded later. The command 'dumpdata' is perfect for this, but it is printing output on console. More over I am calling it ...
0
votes
1answer
121 views

Require Help Structuring Parallel HTTP Requests

Here's my case. I have three tables Book, Publisher and Price. I have a management command that does loops over each book and for each book, it queries the publisher to get the price which it then ...