django-commands Questions
2
Solved
It is straight forward creating a string parameter such as --test_email_address below.
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option('--test_email_address',
...
Pulpwood asked 3/11, 2014 at 14:12
5
Solved
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...
Dasha asked 18/7, 2012 at 16:34
4
Is it allowed to group custom Django commands to separate folders inside the same Django app?
I have a lot of them and wanted to group them logically by purpose. Created folders but Django can't f...
Lacylad asked 9/12, 2019 at 10:38
2
Solved
I'm trying to build a static site generator using Django (because its resourceful that way), and right now my problems are dealing with the Django command that is supposed to build my static site c...
Tedford asked 3/1, 2016 at 1:41
1
Solved
I'm trying to use Django's call_command in a manner very similar to this question without an answer.
The way I'm calling it is:
args = []
kwargs = {
'solr_url': 'http://127.0.0.1:8983/solr/col...
Buhr asked 16/8, 2015 at 15:7
1
Solved
The Setup
For the purpose of illustrating the problem, I have created these commands in my project:
foo.py:
from django.core.management.base import BaseCommand
from django.core.management import...
Diocese asked 10/8, 2015 at 18:17
2
Solved
I want to make the Django development server do something before it starts running. To do this, I created a new app, added it to the top of INSTALLED_APPS, and then created a management/commands/ru...
Amundson asked 12/2, 2015 at 23:27
1
Solved
Following the documentation:
https://docs.djangoproject.com/en/dev/howto/custom-management-commands/
I created my own custom command (called something else but example shown below):
from django.c...
Lorie asked 21/3, 2014 at 23:31
1
Solved
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 cel...
Gasket asked 10/6, 2013 at 9:39
1
© 2022 - 2024 — McMap. All rights reserved.