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
1
vote
3 answers

Syntax error in "manage.py" file - django 2

I do not understand what the problem is but I keep getting a syntax error for the "from exc" line even though I did not alter the code. I have checked for un-closed parentheses and quotes and indentation look right to my beginner's eye. The issue…
Mountain Scott
  • 183
  • 4
  • 15
1
vote
1 answer

Python manage.py runserver running, but site cant be reached

I recently pushed a Django application into a docker container. I SSH'd into that container using docker run -it locally, and tried to run 'python manage.py runserver'. It shows the command is running Performing system checks... System check…
TJB
  • 3,706
  • 9
  • 51
  • 102
1
vote
1 answer

"PyCharm can't check if the following file been updated" when doing makemigrations/migrate

When I use PyCharm's manage.py terminal to do a makemigrations or migrate I have the following warning message: PyCharm can't check if the following file been updated: [filepath] for a hundred of files located inside my webpack and…
Ryan Pergent
  • 4,432
  • 3
  • 36
  • 78
1
vote
1 answer

Django manage.py command hangs

What worked perfectly normally before, has just given up on me. When using any type of manage.py command like below, I see Performing system checks... python manage.py runserver or python manage.py makemigrations After about a 30-60 seconds of…
pymat
  • 1,090
  • 1
  • 23
  • 45
1
vote
1 answer

ImprtError in Django

When I try to run my projects server i get this error: File "manage.py", line 14, in import django File "C:/.../.../.../..../..." from django.utils.version import get_version ImportError: No module named utils.version Help, Please.
user8168373
1
vote
1 answer

Django-Pydev-Eclipse and multiple projects problem

I have set up Eclipse (Windows XP) with pydev in order to run and debug a django web app project I have. I also have this projcet under subversion control. At the moment I have a working copy of the trunk operating within Eclipse (with full…
GDjango
  • 11
  • 1
1
vote
1 answer

Import error across entire Django project

I am getting strange error in Django when trying to run tests: [homebrewpython3] cchilders:~/projects/homebrew_app (CKC/finish-db-update-script) $ python manage.py test Creating test database for alias…
codyc4321
  • 9,014
  • 22
  • 92
  • 165
1
vote
3 answers

Sending a lockfile to django-post_office send_queued_mail

This doesn't seem like it should be hard, but I'm stumped. I've gotten django-post_office integrated with my codebase, and now I'm trying to test that I can set up cron jobs for queued email as described in the…
bethlakshmi
  • 4,581
  • 22
  • 44
1
vote
1 answer

How do I tell django-admin which settings module to use?

When I run django-admin with --settings switch, it fails: (env) $ django-admin help --settings=myapp.settings Traceback (most recent call last): File "/srv/http/myapp/env/bin/django-admin", line 11, in
x-yuri
  • 16,722
  • 15
  • 114
  • 161
1
vote
1 answer

Django manage.py unable to use Python protobuf C++ implementation

I'm trying to use Python protobuf C++ implementation, and was able to use it from the command line. export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp export LD_LIBRARY_PATH=/usr/local/lib/ /myapp/bin/python myscript.py However when I tried to use…
wayne
  • 191
  • 1
  • 1
  • 9
1
vote
0 answers

Error import for xstatic.pkg.angular_cookies when running manage.py

I try to install AVOS in openstack on my ubuntu server. But when i try to execute python manage.py runserver it turns on that error import for xstatic.pkg.angular_cookies. It seems that no one has a similar problem to me. What can I do to fix…
Kavin Wong
  • 11
  • 1
1
vote
1 answer

manage.py syncdb error while Django model using non-ascii verbose_name

I am pretty new to Django. I want the name of my models to be displayed in Chinese, so i used verbose_name in my meta class of my model, codes below: #this models.py file is encoded in unicode class TS_zone(models.Model): index =…
Bill Kary
  • 685
  • 2
  • 12
  • 27
1
vote
4 answers

Automate custom Django management command with crontab, within virtualenv

I am trying to run a custom management command on my Django app, installed under a virtualenvironment. This task is supposed to run once every minute, and I cannot quite figure out why it doesn't work. Here's what I have in my crontab: */1 * * * *…
1
vote
0 answers

Mezzanine 4.0.1 - python manage.py createdb always create sqlite

This is happening with Mezzanine 4.0.1 on Ubuntu, in venv. Python 3.4.3 After creating a Mezzanine project, I changed the database connection settings in settings.py as: DATABASES = { "default": { "ENGINE":…
1
vote
2 answers

Python/Django run development server

I'm trying to create a project using Django 1.8.4 and Python 2.7.10, but I can't execute the command python manage.py runserver. I can create the project and apps, but can't run the server. Please somebody help me, I'm new with Python/Django and I…
Efren
  • 163
  • 1
  • 10