Questions tagged [django-command-extensions]

django-command-extensions refers to django-extensions pluggable Django app that provides a collection of custom extensions

django-command-extensions refers to django-extensions pluggable Django app that provides a collection of custom extensions.

7 questions
16
votes
1 answer

django commands cannot find the command module

When I do ./manage.py process_email in my app, I get ImportError: No module named commands.process_email. My directory layout is: ./ ├── __init__.py ├── admin.py ├── forms.py ├── management │ ├── __init__.py │ └── commands │ ├──…
Trewq
  • 3,187
  • 6
  • 32
  • 50
12
votes
3 answers

How do I execute an arbitrary script in the context of my Django project?

Sometimes I want to execute a file in the context of my Django project, just as if I were using the shell, but with the convenience of using a text editor. This is mainly to try something out, or quickly prototype some functionality before putting…
LS55321
  • 883
  • 1
  • 12
  • 21
7
votes
2 answers

Reusing django code auto-reload functionality for custom management commands

I love how django server auto-reloads itself on code change, so that no restarting the server is required. We currently use django custom management commands that may take a very long time to complete. Is there any way we can use the …
Oleksiy
  • 6,337
  • 5
  • 41
  • 58
5
votes
2 answers

How to force error reporting from django management commands?

We are running custom management commands periodically on the server. Is there any way to get something like error reporting via email working for the command?
Oleksiy
  • 6,337
  • 5
  • 41
  • 58
5
votes
1 answer

How do I use Django Command Extensions with a new Eclipse/Pydev run configuration

When I create new run configurations in Eclipse it creates a run command like the following: python.exe -u manage.py runscript my_script.py, regardless of whether I try making a Python Run config, or a Django run config. How do I make it run…
Trindaz
  • 17,029
  • 21
  • 82
  • 111
4
votes
4 answers

Group Django commands to a folder inside the same app

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 find them. Maybe I'm trying to run them wrong.…
wowkin2
  • 5,895
  • 5
  • 23
  • 66
1
vote
0 answers

Django: 'self' referencing and object inputs. Whats the difference?

Okay, so I am working on creating some commands in django, but I came across a intriguing issue with regards to my code here... from django.core.management.base import LabelCommand from optparse import make_option class Command(LabelCommand): …