Questions tagged [django-manage.py]

django-manage.py refers to Django's command-line utility for common administrative tasks.

django-manage.py refers to Django's command-line utility for common administrative tasks.

188 questions
0
votes
2 answers

Where does django dev server (manage.py runserver) get its path from?

I recently moved a django app from c:\Users\user\django-projects\foo\foobar to c:\Python25\Lib\site-packages\foo\foobar (which is on the python path). I started a new app in the django-projects directory, and added foo.foobar to the INSTALLED_APPS…
Lexo
  • 470
  • 4
  • 20
0
votes
1 answer

Non local connections for django project server

I ran the command python manage.py runserver 0.0.0.0:8000 It started the server up, but when I navigate to http://myipaddress:8000, my webbroswer doesnt connect. I also tried with my iphone safari brower and got the same thing. I am using Mac OS X…
Ali
  • 4,311
  • 11
  • 44
  • 49
0
votes
0 answers

Initiate Pycharm remote debugging from remote side

Is it possible to start remote debugging from the remote server? Example: I have a django manage command I want to debug in my pycharm and running the manage command from pycharm doesn't do it in debugging. Or is it possible to debug manage.py…
Jared Mackey
  • 3,998
  • 4
  • 31
  • 50
0
votes
0 answers

manage.py doesn't be shown in project directory

I create one project and here is the folder structure: mysite mysite __init__.py settings.py urls.py wsgi.py The manage.py is missing. I am using Django version 1.4.20 and python version 2.6.6. Is there anyone…
Jimmy Lin
  • 1,481
  • 6
  • 27
  • 44
0
votes
1 answer

Cannot run "python manage.py runserver"

This is a project written by other people and I am working on adding new features to the project. I am new to python and django so the previous developer helped me setup the environment. It worked fine in the past, but today when I tried to run the…
Shawn Li
  • 99
  • 2
  • 13
0
votes
1 answer

How to handle CommandError exceptions in Django tests

I'm creating a Management Command in which I raise a CommandError exception when something goes wrong. One of my test cases executes the command in a way that it will raise the exception so the result of the test is Error. How can I make it pass?
Rafael Redrado
  • 493
  • 1
  • 6
  • 19
0
votes
1 answer

Fed up with the error ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value

ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value I am suffering from this problem since last 3 days. I have seen tones of duplicates tickets on different blogs (even on stackoverflow) and solutions as…
PK10
  • 352
  • 2
  • 6
  • 23
0
votes
0 answers

Django custom command doesn't run outside project directory

I'm trying to run a django custom command using Windows Task Scheduler. If I run the task from Windows Task Scheduler it says it completes without errors, however I can tell it isn't being run. If I run the command from the django project directory…
0
votes
2 answers

django-admin.py doesn't find management commands but manage.py does

I have a Django project with management commands in called "listen_rfid" and "listen_qr". They both show up in ./manage.py help --settings=imagination.idmapper.config.settings_dev but neither show up in django-admin.py help…
Ellis Percival
  • 4,632
  • 2
  • 24
  • 34
0
votes
4 answers

django select app(s) for syncdb

First of all: please don't ask me: "Why would you need this?". Now the question itself: I have several applications installed in INSTALLED_APPS. Database is now empty and I want to synchronise only some of apps. What's the simplest way to do this? I…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
0
votes
1 answer

no module found for an installed app

I have made my template folder as an app in my python web application and I mentioned it in my INSTALLED_APPS I also have the init file in the template folder, but when I'm running manage.py tasks, there is an error and manage.py doesn't find this…
0
votes
1 answer

what's wrong, why python manage.py runserver failed?

failed to run django for lack of sqlite? in fact sqlite is already install in my system. (py1)[mirror@home ci]$ python manage.py runserver Validating models... Unhandled exception in thread started by
hugemeow
  • 7,777
  • 13
  • 50
  • 63
0
votes
1 answer

Django cannot find an app with manage.py syncdb

i am running Mac OS X 10.7 and I succesfully created a project in django by using django-admin.py startproject MyBlog. In this folder i have manage.py, another folder titled MyBlog and an app folder which i created called MainBlog. I needed to…
user1074202
  • 139
  • 1
  • 4
  • 14
0
votes
1 answer

Django get alter table commands for a module

I have added a new field to my models .From django manage.py how can i print the migration(alter table statement).In the following is_tag is my new field When i do sqlall i get the following output.How can i get the alter table commands …
Rajeev
  • 44,985
  • 76
  • 186
  • 285
-1
votes
1 answer

Getting Token from Django Model to views

I created a user model in Django i want to know what JWT token is generated for my particular user in the views.py section could you please help class User(AbstractBaseUser, PermissionsMixin): username = models.CharField(max_length=255,…
1 2 3
12
13