django-manage.py

django how can I use multiprocessing in a management command

django how can I use multiprocessing in a management command Question: how can I use multiprocessing in a django management command? I can’t figure out how to start the process inside of my websites django context management command users = users.objects.filter(is_active=True) with ProcessPoolExecutor(max_workers=5) as executor: processes = [] for user in users: p = executor.submit(complex_user_calculation,user) …

Total answers: 1

Django Bash completion not working on manage.py

Django Bash completion not working on manage.py Question: I am trying out the django_bash_completion script provided by Django but can’t use it with python manage.py command. I am trying out the django_bash_completion script provided by Django. I have added it to active script in the virtual environment. It works with django-admin but can’t use it …

Total answers: 2

ImportError: No module named django.core.management when using manage.py

ImportError: No module named django.core.management when using manage.py Question: I’m trying to run python manage.py runserver on a Django application I have and I get this error: Traceback (most recent call last): File “manage.py”, line 8, in <module> from django.core.management import execute_from_command_line ImportError: No module named django.core.management Here is the output of pip freeze | …

Total answers: 14

django change default runserver port

django change default runserver port Question: I would like to make the default port that manage.py runserver listens on specifiable in an extraneous config.ini. Is there an easier fix than parsing sys.argv inside manage.py and inserting the configured port? The goal is to run ./manage.py runserver without having to specify address and port every time …

Total answers: 18