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

How to fix "ImportError: No module named ..." error

I have a working Django app called django_trial_on_mac that I recently moved to GitHub in order to deploy it to heroku in the future. I cloned the project to my local GitHub folder on my mac but when I ran the app from the new directory I receive…
Danoram
  • 8,132
  • 12
  • 51
  • 71
1
vote
1 answer

django and python manage.py runserver execution error

When I execute python manage.py runserver command for my django_test projects I get following error: System check identified no issues (0 silenced). June 14, 2015 - 20:43:03 Django version 1.8.2, using settings 'django_test.settings' Starting…
Dariusz Krynicki
  • 2,544
  • 1
  • 22
  • 47
1
vote
1 answer

simplejson error with Django 1.8.2 and dumpdata

Command: % ./manage.py dumpdata Output: CommandError: Unable to serialize database: cannot import name simplejson zc.buildout is configured to install simplejson in the app directory. simplejson is also present in my custom Python directory,…
mpso
  • 1,129
  • 2
  • 13
  • 26
1
vote
1 answer

In Django multiple databases should not creat a test database by manage.py on 1 specific database

In Django I'm using multple databases, but by testing the functionality 1 database of the multiple database should not create a test database if you run manage.py test **. How can I solve this issue.
Robert
  • 305
  • 1
  • 2
  • 14
1
vote
2 answers

Django No module named django.core.management

I was able to run the local server using python manage.py runserver in the command line; when I tried the command I got this error: Traceback (most recent call last): File "manage.py", line 8, in from django.core.management…
AdamC
  • 63
  • 2
  • 8
1
vote
0 answers

named url reverse does not work if url case sensitive

im trying to get my url named, so it can be reversed in my django app. mysite/urls.py: urlpatterns = patterns('', # Examples: url(r'^$', 'myapp.views.redirect_to_home'), url(r'^admin/',…
user1612927
  • 95
  • 1
  • 5
1
vote
1 answer

Django custom command doesn't seem to receive post_save signals from a running Django server

I'm trying to write a Django custom command that will serve as a daemon for interacting with hardware physically connected to the server. For obvious reasons, I don't want to run hardware-related commands in my Django views; instead, I would rather…
Synthead
  • 2,162
  • 5
  • 22
  • 25
1
vote
1 answer

run manage.py where manage.py is not present?

manage.py is under project_home/mysite/mysite/bin/manage.py I did it following a recommendation from some book. The point is it's rather hard to execute python manage.py something as it stands since I have to move to the directory or type the…
eugene
  • 39,839
  • 68
  • 255
  • 489
1
vote
1 answer

Celery: Start task from Django management command

I'm trying to write a custom management command that starts one or several Celery tasks. For this, I defined a helper function: from celery import chord from front import models from worker.tasks import process_account, notify # The celery…
Danilo Bargen
  • 18,626
  • 15
  • 91
  • 127
1
vote
1 answer

django - manage.py error in production

I have just deployed a django application for the first time using MySQL as the database. In development, I am using sqlite3 and south for migrations. I suppose I am to use python manage.py syncdb then python manage.py migrate to initialize the…
krm
  • 773
  • 2
  • 5
  • 12
1
vote
2 answers

django logging in script near manage.py - messages are just ignored

I'm using Django 1.4.1. There's a script tmp.py in the same direcotry as manage.py, it does some routime operatons and is started from cron with command like python /path/to/project/tmp.py Here is tmp.py: import os if __name__ == "__main__": …
Antonio
  • 822
  • 1
  • 10
  • 19
1
vote
1 answer

Django dumpdata doesn't write to file, generate "Bad file descriptor" error

I'm trying to dumpdata into a file, and keep getting this error: d:\django\mysite>manage.py dumpdata > alldata.json Traceback (most recent call last): File "D:\django\mysite\manage.py", line 10, in execute_from_command_line(sys.argv) …
Moti Radomski
  • 275
  • 2
  • 8
0
votes
1 answer

Django Manage.py External Script Error

I have a manage.py command I wrote that uses ftplib to pull down a file. If I run this command from the terminal it works fine. Now I want to call it from a script so that cron can run it nightly. When I run the script, it fails with…
RyanBrady
  • 6,633
  • 4
  • 27
  • 32
0
votes
1 answer

django manage.py syncdb fails after creating superuser

djnago1.3.1 python2.7.2+ ubuntu 11.10 I am making syncdb, after creating superuser I've got that error: You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): yes …
Antonio
  • 822
  • 1
  • 10
  • 19
0
votes
1 answer

Django manage.py syncdb can't find my settings file on CentOS

I'm deploying my django application onto a CentOS 5.5 server, with django-1.1.4 over python-2.6.5. I have multiple settings files inside the myapp/settings/ folder. I would like to run the syncdb; here's what I do (with myapp inside myproject…
Olivier H
  • 835
  • 2
  • 8
  • 26