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
2
votes
2 answers

python manage.py runserver Segmentation fault

I just installed python and Django. and now when i running $ python manage.py runserver it is showing me this error Segmentation fault Please help me get out of this. i appreciate your help thanks!
M.suleman Khan
  • 576
  • 6
  • 17
2
votes
1 answer

django:: run manage.py from within django code

How can I run the manage.py script from withing django code?
Alexander Bird
  • 38,679
  • 42
  • 124
  • 159
2
votes
2 answers

Uable to run manage.py runserver in Django

I am not able to start manage.py runserver. I am using a Cassandra database and I have imported all the required modules. I am trying to run quite basic application. I am running python 2.7 on windows 10. Here is the error I am…
aditya mathur
  • 75
  • 1
  • 2
  • 6
2
votes
1 answer

Docker and Django manage.py

I'm trying to find a workflow with Docker and Django. Currently, I'm using the basic configuration from the docker documentation. I'd like to use manage.py startapp directly from the container to start a new app using: docker-compose run web…
Antoine Fontaine
  • 792
  • 7
  • 16
2
votes
1 answer

Django force makemigrations to use tabs instead of spaces

When I run python manage.py makemigrations myapp, it generates a migration file 0001_initial.py that is indented using 4 spaces. I want tabs. Is there any way I can set it? (No opinions on 4 spaces vs tabs please.)
blinkomania
  • 157
  • 10
2
votes
1 answer

Can't get python.manage.py syncdb to work

I just created my first django app, initialized variables DATABASE_ENGINE and DATABASE_NAME in settings.py, but now when I run python manage.py syncdb, I get the following error Can somebody help? Does this have to do with having two python versions…
Diego
  • 795
  • 2
  • 13
  • 17
2
votes
0 answers

error while using django with python

database settings for mongodb DATABASES = { 'default': { 'ENGINE': 'django_mongodb_engine', 'NAME': 'test', 'USER': '', 'PASSWORD': '', 'HOST': 'localhost', …
shiller
  • 19
  • 2
2
votes
1 answer

Django on AWS Elastic Beanstalk manage.py

I followed the below documentation and installed django on AWS Elastic Beanstalk. http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html Now I started writing my first djangoapp, the famous polls. The problem is when…
2
votes
2 answers

Why Django does not create full table from a model?

I have 2 models. I run manage.py syncdb but it creates only id fields for 2 models. How to make it generate the remaining fields? Please kindly advise. Your help is much appreciated! Here's my models.py: from django.db import models GENDER_CHOICES…
Viet
  • 17,944
  • 33
  • 103
  • 135
2
votes
2 answers

Python 2.6 on MacOSX - ImportError: No module named _collections

I'm a little bit baffled by this error I'm getting when I try to runserver or syncdb - the server was running just fine the other night when I last logged on, so I have no idea why all of a sudden it's not working. Google gave me the following page…
gersande
  • 465
  • 1
  • 8
  • 25
2
votes
1 answer

IntelliJ 12 Python - Issues with manage.py Tasks

I'm currently looking for a nifty Python/Django IDE and came across PyCharm from JetBrains which I tested for about a week now and I'm quite impressed by this piece of software. However, I've read that IntelliJ Ultimate with JetBrains own Python…
Dawodo
  • 433
  • 4
  • 15
2
votes
1 answer

syncing sqlite3 for Django tutorial

I'm starting the Django tutorials and have virtual environments and django installed. I'm working on a Mac 10.6.8, which has sqlite3 already installed. I'm working inside a virtual environment. I changed the settings.py file to: ENGINE --…
user1552159
  • 205
  • 1
  • 4
  • 12
2
votes
0 answers

Django: python manage.py syncdb hangs forever

Output looks like this (the project is named parkingtickets): usr/local/webapps/parkingtickets/django_project$ python manage.py syncdb Creating tables ... Creating table parkingtickets_correction It then hangs forever. If I suspend the process and…
quindraco
  • 1,441
  • 2
  • 11
  • 13
1
vote
3 answers

Django REST Framework making a request to itself

I have a question that might have a very simple answer. Everywhere I look it says that the Django development server (manage.py runserver) is multithreaded (https://docs.djangoproject.com/en/3.2/ref/django-admin/) but this is not what I am…
1
vote
0 answers

Why are we reassigning self.prog_name in the ManagementUtility class?

This is the code snippet in the django that I'm tryin to parse.
Nidhal Selmi
  • 141
  • 9