Questions tagged [django-manage.py]

django-manage.py refers to Django's command-line utility for common administrative tasks.

django-manage.py refers to Django's command-line utility for common administrative tasks.

188 questions
0
votes
0 answers

Django-admin/Python manage.py makemessages gives error and deletes already translated msgstr

Basically i have been facing this issue for about 3 days, I have been trying to run the command line: python manage.py makemessages -l ar Which usually should work, however, its lately been deleting lines from Django.po in which if I compilemessages…
0
votes
2 answers

DJANGO 4.1 manage.py invalid syntax when trying to run collectstatic

Project Folder Structure -Project --app1 --app2 --static static folder has all static files for all apps. Settings.py try: SECRET_KEY = os.environ["SECRET_KEY"] except KeyError as e: raise RuntimeError("Could not find a SECRET_KEY in…
0
votes
2 answers

Pycharm: python manage.py runserver returns nothing

I am struggling to get the http link from pycharm. I must say I am pretty new to software engineering and I am only following tutorials. I am currently stuck on this problem and I can't find any answer. Henter image description hereope someone can…
Andrew
  • 1
  • 1
0
votes
1 answer

How to combine multiple custom management commands in Django?

I wrote a set of commands for my Django project in the usual way. Is it possible to combine multiple commands into one command? class Command(BaseCommand): """ import all files in media in dir and add to db after call process to generate…
JasonTS
  • 2,479
  • 4
  • 32
  • 48
0
votes
0 answers

type hinting for abstract method with fuzzy number of parameters

I work on my pet-project on FastAPI and I want to write django-like manager (manage.py with its commands). I use Typer for this CLI, and I have the following structure of my management sub-module in my app: ... ./management ├── __init__.py ├──…
0
votes
1 answer

Django Shell Command Does Not Execute For Loop

I have a Django project going on, containing some functions and creating/updating a database. From time to time, I need to update the staticfiles in the project therefore I created a .py file in the same folder as the project named updatefiles.py I…
0
votes
1 answer

django-main-thread error when running manage.py runserver

I've made some changes to my code while trying to deploy my django app on digital ocean, and now when I try to test my code in my local server, I get this error: (my_chaburah) ~/Desktop/Code/my_chaburah (main) $ python3 manage.py runserver Watching…
0
votes
1 answer

How to exclude certain system checks from running on `manage.py migrate`?

I have created a series of checks using Django's System check framework. Some of the checks are used to confirm that fixtures are set up correctly. For example, I have a check that confirms if all users have at least one…
alias51
  • 8,178
  • 22
  • 94
  • 166
0
votes
0 answers

Error to run manage.py. I'm trying to run manage.py server but it hit some error! I've just trying to run a timetable generator

PS C:\Users\user\Desktop\TimetableGenerationSystem-master\projttgs> python manage.py runserver Watching for file changes with StatReloader Performing system checks... Exception in thread django-main-thread: Traceback (most recent call last): …
0
votes
0 answers

How to fix 8000 port is already in use django runserver problem?

I am trying to run Django project in ubuntu 20.04 LTS but it shows 8000 port already in use. I can run using> python manage.py runserver 8080 But I want to free my 8000 port How can I do that? (env) amol@amol-Ideapad-320:~/My…
Amol_G
  • 375
  • 1
  • 12
0
votes
1 answer

django how can I use multiprocessing in a management command

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)…
user14665310
  • 524
  • 4
  • 13
0
votes
0 answers

Syntax error while running python3 manage.py runserver

Im facing the below issue on my mac when I run 'python3 manage.py runserver' command THE HOST IS ===>SHEEKRIS-M-V6GG File "/Users/sheekris/DjangoDeveloperProject/django_api/gve-api/app/manage.py", line 16 ) from exc ^ SyntaxError: invalid…
0
votes
2 answers

Django ; How i can migrate a project done with the sqlite3 to postgresql

From days my friend has worked in the OS:windows and he did a part of the django application using the database :sqlite3 , he give me a backup of his work to complete my part , on the backup i have found a database named databaseproject.db, My…
0
votes
1 answer

Python manage.py command showing ImportError

When hit the command python manage.py makemigrations, I am getting the import error. The error is like this **ImportError : Module 'Backend.apps'does not contain a 'BackendConfigrest_framework'class. Choices are : 'BackendConfig'**
0
votes
0 answers

Unable to use runserver_plus for django

I am using the command "python3 manage.py runserver_plus 0.0.0.0:9999 --cert-file /path/to/cert/app" to run my python-django project on https but I get the below error File "/Users/xyz/django_dev_portal/django-api-1/app/manage.py", line 16 ) from…
Sheetal
  • 17
  • 1
  • 8