Questions tagged [manage.py]

`manage.py` is a command-line utility for Django's administrative tasks. It is an automatically created thin wrapper around `django-admin.py`.

manage.py is similar to django-admin but it does some extra tasks like putting your project's package on sys.path and sets the DJANGO_SETTINGS_MODULE environment variable so that it points to your project’s settings.py file.

Usage

manage.py <command> [options]

Source

201 questions
0
votes
1 answer

Errors when running python3 manage.py syncdb to sync databases in my django application

Hi I am pretty new to django and I ended up with a very big error when I tried running the command python3 manage.py syncdb. I am trying to create a form builder application and encountered the error when I was trying to sync the database with the…
0
votes
1 answer

runserver_plus for django gives 302 on static files

I'm running manage.py runserver_plus for a django based application, normal runserver works fine but when i use runserver plus all the static files needed by the app give 302. "GET /static/css/base.css?v2.6.6 HTTP/1.1" 302 - "GET…
0
votes
1 answer

Django3 - manage.py commands stuck

I have a big problem wih Django3: basically, whenever I type a command for manage.py, the prompt gets stuck and never carries on the command without even crashing. I tried several times the commands "runserver" and "startapp" and waited beetween 10…
alemootasa
  • 83
  • 2
  • 9
0
votes
0 answers

I have a long error message when writing "python manage.py makemigrations" saying invalid syntax

1**. I am following Mosh' tutorial on (youtube https://www.youtube.com/watch?v=_uQrJ0TkZlc)- at the part where we get to the DB SQLite part, it sayd this long message when writing "Python manage.py makemigrations": (venv)…
Tom Ziv
  • 19
  • 5
0
votes
1 answer

not working running python manage.py rusnerver

when running that command python manage.py runserver I get this error django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? I try to pip install mysqlclient and get this Command…
0
votes
1 answer

python: can't open file 'manage.py': [Errno 2] No such file or directory docker-compose run

I tried run django project with code docker-compose -f local.yml run --rm django python manage.py runserver but i had such problem: python: can't open file 'manage.py': [Errno 2] No such file or directory in another computer this project run but…
0
votes
1 answer

Python manage.py runserver admin page

I am working on the django tutorial polls app. I have done all the other parts and now on the last bit of part 7, where I am modifying the admin page. I have all the codes as correctly undersigned from the documentation, but when I load the server…
0
votes
1 answer

Pycharm's Django `Run manage.py Task` console not working for interactive commands?

When I use Pycharm's built-in Django Run manage.py Task... console, everything works well, until the command expects some user input. For example makemigrations and migrate commands work just fine, because they don't require any additional user…
ruohola
  • 21,987
  • 6
  • 62
  • 97
0
votes
1 answer

why does it say "module does not exist" despite multiple installations

I am running the following steps in Mac Terminal: sudo easy_install pip sudo pip install virtualenv virtualenv NameOfFolder cd NameOfFolder source bin/activate sudo pip install django django-admin startproject NameOfFolderSub1 cd…
0
votes
1 answer

error when running python manage.py syncdb

I have a new server just installed. Everything seems to be fine but when i run: python manage.py syncdb it generates follow error: Traceback (most recent call last): File "manage.py", line 14, in execute_manager(settings) File…
Bill Kary
  • 685
  • 2
  • 12
  • 27
0
votes
1 answer

How to put python3 manage.py runserver in a Bash Script

Here is my Bash script it's very simple. I added it to the init/d folder so it works upon rebooting my computer. I create directories and so that part of the script is working; However my server won't run. I'm trying to avoid having to type…
kenedy
  • 21
  • 3
0
votes
1 answer

Python Django call_command permissions gunicorn+nginx

Problem Receive 502 bad gateway when i try to execute a django management command via gunicorn Logic Line I think the problem is about permissions, something like gunicorn is not able call the command. I say that because i can run it locally where i…
Marcos Mendes
  • 1,091
  • 1
  • 8
  • 15
0
votes
2 answers

Django celery trigger manage.py cmd @periodic_task

i want to run a manage.py cmd from celery as a periodic task every x Minutes but every time i try to accomplish that as show below i get the following error: [2019-01-17 01:36:00,006: INFO/MainProcess] Received task: Delete unused media…
user10000033
0
votes
0 answers

python manage.py migrate throwing error using xamp (phpmyadmin) with Django in windows 10

Python Version - 3.7.2 Django Version - 2.1.5 I am getting the error below after command >python manage.py migrate please find the attached error message. (py1) C:\Users\tejra\Documents\DjangoProject\Dproject>python manage.py migrate Traceback (most…
0
votes
1 answer

Uploading Json to django model database results in Key Error

I have a custom manage.py command which I am using to upload a json file (a list of dictionaries) to my model. It appears to upload two records fine, but then throws a key error: KeyError: 'headline' My code is as follows: class…
Owais Arshad
  • 303
  • 4
  • 18