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
0 answers

manage.py runserver: error: unrecognized arguments: --insecure

while running server make run facing this error I checked for available solution,like- checked debug setting in 'settings.py' file. I tried to kill redis and celery but didn't worked. Anyone can provide solution to this error?
0
votes
1 answer

Error when using manage.py loaddata to load Django JSON file created with dumpdata

I am using ./manage.py loaddata file.json to load a JSON file created with ./manage.py dumpdata > ../directory/file.json, and I get the following error: matching_chars: 6 Traceback (most…
Andy Swift
  • 2,179
  • 3
  • 32
  • 53
0
votes
0 answers

Update front-end when delete a row in database in React native

I am new with Django and I trying to run my first project. But i keep getting this error when trying to run python .\manage.py makemigrations enter image description here I am not sure what is the problem
Bang Do
  • 3
  • 2
0
votes
0 answers

File "", line 1050, in _gcd_import

File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line…
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
0 answers

Manage.py runserver -> Returns "manage.py : The term 'manage.py' is not recognized as the name of a cmdlet"

I am new to programming and i am currently doing the programming with Mosh: Mastering Python course. I am trying to make a web application with Django. When I write the command "Manage.py runserver" in my terminal I get the following…
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
0 answers

Problems with manage.py in django

I am attempting to run a site from my localhost. What I did is I first cloned the repo and pull it into my local directory. Then, I changed the DB part to my DB settings. I have tried python manage.py runserver, python manage.py migrate and python…
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

python3 manage.py makemigrations not working

I can successfully run git clone 'my repository' I can run 'pip3 install -r requirements.txt'; from the correct directory 'server' When I run the command 'python3 manage.py makemigrations'; nothing happens. When I run 'python3 -m pip show django', I…
0
votes
0 answers

django 4.0.4 ./manage working, however when using the management command 'runserver', an error is returned

A peculiar thing is happening with my Django Manage script. No changes have been made since yesterday, however 'runserver' stopped working, and returns: ValueError: illegal environment variable name If I run other management functions that script…
0
votes
1 answer

TypeError: module() takes at most 2 arguments (3 given) Django manage.py runserver

I tried running manage.py runserver manage.py makemigrations and manage.py migrate but they all give me a TypeError The error is Traceback (most recent call last): File "/Users/William/Documents/Start over/Simple/perputer/manage.py", line 22, in…
0
votes
1 answer

Django App works on PyCharm by not VS-code (File manage.py line 17 error)

I have a Django App that works well in PyCharm. All modules etc work. I need, however, to open the code in Visual Studio Code. However, when I execute a: python manage.py runserver command in visual studio code, I get the following error: File…
user11934987
0
votes
1 answer

localhost: A server error occurred. Please contact the administrator

I am learning to run local hosts using Django with the help of https://www.dj4e.com/. I am currently trying to run the local server using the following: python manage.py runserver When I run this, the output given in terminal is the…
0
votes
2 answers

from django.core.management import execute_from_command_line not working

I am working on a bug project. Which is on Python 2.7, we are migrating to Python 3.9. I am getting import errors in manage.py during importfrom django.core.management import execute_from_command_line. For python 2.7 it is fine but for python 3 it…
Rai Shahnawaz
  • 188
  • 11