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

Django: TypeError using manage.py [answered, syntax error]

I'm running Ubuntu 18.04, python3.7, and django2.1 Currently on just step 2 on Mozilla's django tutorial : https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/skeleton_website Checked my code multiple times and it's identical to…
Kyle I
  • 23
  • 3
0
votes
0 answers

Why does running manage.py runs calls in urls.py

I've created Django application which runs TCP server in background. And everytime I run eg. python manage.py migrate or python manage.py collectstatic it turns on this TCP server and hangs in terminal, I need to Ctrl+C this to stop. Is there any…
Marek
  • 1,189
  • 3
  • 13
  • 33
0
votes
0 answers

Django API raises an error "No such file or directory: 'manage.py'" when requested

This might seem like an already asked question but I have searched for an answer for a week now and got nothing. The problem is I have developed an API using Django which is hosted on a server. Now when I run the following command to initiate the…
0
votes
1 answer

Django manage.py shell Throws error when meet "def"

I am reading django official tutorial ( http://docs.djangoproject.com/en/dev/intro/tutorial01/ ). When i try run "python manage.py shell", python throw error: File "D:\DjangoProjects\mysite\polls\models.py", line 8 def __unicode__(self): …
KillaBee
  • 21
  • 1
0
votes
4 answers

Running Django development server from Git Bash gets stuck in windows 10

I'm new to Django and now getting stuck in running up the server. I've installed the following components on Windows 10: Python 3.7.0 Django 1.11.14 Geckodriver 0.21.0 I can successfully create a project using django-admin.py startproject…
khunzohn
  • 11
  • 4
0
votes
1 answer

PythonAnywhere: manage.py returns "Access denied for user 'user'@'%' to database 'user'"

I am having very frustrating issues with PythonAnywhere. I've managed to get my site up and running by doing some hacky work arounds whenever I need to run manage.py but now that I need to set an automated task, this is no longer an option. The…
0
votes
2 answers

Getting error on running manage.py runserver

I am new to Django, I got an error on executing manage.py even though having installed Django. Here is the error message: vivekmehra88@vivekmehra88-HP-Pavilion-TS-15-Notebook-PC:~/PycharmProjects/myProj/django-apps/testsite$ python3 manage.py…
0
votes
1 answer

Django manage.py only returning list of subcommands and options

I'm sure I'm overlooking something very simple, but I've tried multiple times and still run into the same problem. I have installed Python 2.7.1 and Django 1.2.4 on Windows Vista. I create a project using django-admin startproject projectname. It…
William
  • 1,517
  • 1
  • 12
  • 26
0
votes
1 answer

Django tests manage.py

To run my Django's tests, I was using the manage.py file. But I decided to create my own file runtests.py. As specified in the Django's doc, the manage.py file will execute all methods whose name is starting like "test" and whose class inherits…
AntoineLB
  • 482
  • 3
  • 19
0
votes
2 answers

Django manage.py runserver command returns an error

I could use some help figuring out what's the problem with running the development server for one of my django projects. When I run python managy.py runserver, I get an error that ends with this: OperationalError: could not connect to server:…
0
votes
1 answer

Django 'python manage.py runserver' has from config import* error

I have an error when i use django. Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File…
HyeonggeunYun
  • 21
  • 1
  • 3
0
votes
1 answer

TypeError: 'NoneType' object is not callable(is ok in windows, but have this error in linux)

It can run successfully in Windows,but have a typeError when I want to run it in Linux. Description: [linux]Using Django==1.11, python==3.6 and mysql-connector-python==2.1.6 [windows]Django==1.10, python==3.6 and mysql-cinnector-python==2.1.6 the…
0
votes
1 answer

Unable to migrate Django db when using docker container

On my Windows 10 machine, I am developing a database manager. Because the backend uses LDAP and the required development libraries are only available for Linux, I want to use Docker to set up an environment with the appropriate libs. I managed to…
J0hj0h
  • 894
  • 1
  • 8
  • 34
0
votes
1 answer

Django - airports

when i tried to import my airport file in my django project, i get the following: INFO Downloading: airports.dat Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File…
0
votes
3 answers

Django 1.8, Unable to run manage.py

A newbie here. I am getting following erorr: python manage.py migrate Traceback (most recent call last): File "manage.py", line 11, in execute_from_command_line(sys.argv) File…
Volatil3
  • 14,253
  • 38
  • 134
  • 263