Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
52 views

I am trying to move Django data from SQLite to Postgres, following this flow: SQLite connection in settings.py manage.py dumpdata > data.json Postgres connection in settings.py manage.py loaddata ...
0 votes
1 answer
138 views

I want to write my own command to quickly get data from csv. The script successfully fills the table User, Category, Genre. But when it comes to the Title model, I get the error ValueError: Cannot ...
0 votes
2 answers
1k views

In the documentation, it is written that it can be used for writing custom Django-admin commands. But my question is why do we need to write custom Django admin commands? The given example in the ...
0 votes
1 answer
144 views

I have the follow structure. members ├── management │ │── __init__.py │ │── commands │ │── active.py │── whatsapp.py │── config.ini I am trying to run a whatsapp api and I ...
0 votes
0 answers
149 views

I am working on a django app that includes a custom management command. This app should be packed for pip. Layout of the app is standard django-simpl_ssg simple_ssg management ...
1 vote
1 answer
108 views

I write this management command but not working from django.core.management.base import BaseCommand from name.models import ProductName class Command(BaseCommand): def handle(self, *args, **options): ...
0 votes
1 answer
79 views

After filtering and updating I have to delete the objscts, How to solve the isuue, AttributeError: 'int' object has no attribute 'delete' def handle(self, *args, **options): trees.objects....
0 votes
0 answers
355 views

I have a custom django management command that is constantly running through the supervisor (keep alive) I need under certain circumstances (for example, a signal in the project, or a change in the ...
0 votes
1 answer
103 views

I have defined quite a few cronjobs in my docker container, that I let running while I went for some holidays. When I came back, everything had stopped. It appears that the container restarted at some ...
2 votes
1 answer
1k views

I'm building a multi-tenant project with django-tenant. The issue I'm encountering is that "password" is not a valid flag option. management.call_command( '...
-1 votes
1 answer
862 views

I am building a multi-tenant project using third-party package (django-tenants) which makes me derive the Tenant and Domain models from it's own classes: from django_tenants.models import TenantMixin, ...
1 vote
1 answer
866 views

Right now I have multiple management commands in my Django project. I would like to log something like [command_name] command started and [command_name] command finished at the beginning and end of ...
2 votes
2 answers
623 views

Is there anyway to create nested management commands in Django, similar to what the docker and kubectl have? For example, let's say I need to have the following structure: |-->manage.py |-->...
3 votes
1 answer
4k views

I have a Django management command, which I pass like this: python manage.py tenant_command generate_weekly_invoice --start_date 2020年11月30日 00:00:00 --end_date 2020年12月06日 23:59:00 --schema=schema_name ...
0 votes
1 answer
277 views

I have a Django management command defined like this: class Command(BaseCommand): help = "Sends out an email with new jobs added in a timespan of a week" def handle(self, *args, **...

15 30 50 per page
1
2 3 4

AltStyle によって変換されたページ (->オリジナル) /