Questions tagged [django-commands]

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

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

See also:

77 questions
-1
votes
1 answer

Redirect the output of custom Django command to the browser

I have created a custom command which takes a positional and a named optional argument. It does many checks, downloads a file, unzips it and populates the database with the unzipped data. To make the things more convenient for the users I created a…
cezar
  • 11,616
  • 6
  • 48
  • 84
-1
votes
1 answer

Run view in command

I have a view to download a file. I want to create a command to be able to call this view and download the file in a certain folder. class DownloadFile(View): def get(self, request, pk): ... How can I run this view in a custom command…
loar
  • 1,505
  • 1
  • 15
  • 34
1 2 3 4 5
6