django-manage.py Questions
6
Is it possible to pass command line arguments to Django's manage.py script, specifically for unit tests? i.e. if I do something like
manage.py test myapp -a do_this
Can I receive the value do_th...
Hermilahermina asked 30/1, 2015 at 5:39
18
Presently, I'm attempting to configure Django for use on a project, and am encountering a persistent error when I try to run python manage.py syncdb.
File "/x/x/x/x/x/x/base.py", line 23, in ?
ra...
Cryogen asked 23/11, 2011 at 5:49
3
Solved
I've being fighting with this command for several hours now.
If I do
python manage.py dumpdata --natural-foreign --> data.json
when I loaddata I get the error
Could not load contenttypes...
Breathing asked 8/2, 2017 at 23:44
19
Solved
I would like to make the default port that manage.py runserver listens on specifiable in an extraneous config.ini. Is there an easier fix than parsing sys.argv inside manage.py and inserting the co...
Eirene asked 13/5, 2014 at 18:39
14
Solved
I'm starting gunicorn with the Django command python manage.py run_gunicorn. How can I stop gunicorn properly?
Note: I have a semi-automated server deployment with fabric. Thus using something lik...
Tradescantia asked 30/1, 2013 at 13:0
2
we have a Django 1.4.5 project with a PostgreSQL 9.3 backend. Unfortunately we are facing the problems when attempting to create fixtures for one of the apps (which is called sddb).
The database i...
Arita asked 8/10, 2014 at 8:20
2
Solved
The Django management commands documentation shows all commands being created in an app/management/commands folder. Is it possible to put commands into subfolders, like app/management/commands/inst...
Chainey asked 25/8, 2012 at 20:7
14
Solved
I'm trying to run python manage.py runserver on a Django application I have and I get this error:
Traceback (most recent call last):
File "manage.py", line 8, in <module>
from django.core.m...
Idellaidelle asked 22/5, 2015 at 6:28
4
Solved
I'm looking for a way to override/define some individual django setting from command line without additional settings files.
What I need right now is to set the DEBUG setting or logging level each...
Debrahdebrecen asked 19/12, 2011 at 15:18
3
Solved
I am unable to use syncdb because my app uses some MySQL views. I have run manage.py sqlall <app>, but this does not output the SQL for django_content_type table or the auth_permission tables...
Condescension asked 19/1, 2012 at 15:0
2
Solved
Is it possible to permamently disable only ONE (not all) of the system checks (for example E301)? Is it possible to change project settings.py to skip this system check for all ./manage.py commands...
Shan asked 27/8, 2017 at 22:23
1
Solved
I am coding my own whl-package and after creating some new management-commands and deleting some old ones I was pretty happy with myself. Except after building my wheel-package (with setup.py bdist...
Alby asked 22/8, 2018 at 12:57
4
Solved
In one of my projects , I cannot open manage task console. It works for other projects but not for this one. It worked before, but it stopped recently. I tried using old versions of the project, bu...
Russia asked 22/5, 2015 at 18:44
1
Solved
I can't find this in the docs. When I run python manage.py collecstatic --no-input does it mean it will answer "yes" to any prompt that would pop up in the process? The same for python manage.py mi...
Scotney asked 30/1, 2017 at 18:43
2
just wondering... but is it possible to generate SQL commands for django's models?
e.g. the session model
python manage.py sql django
Any ideas?
Slush asked 22/11, 2010 at 14:24
1
Solved
I created the following custom management command following this tutorial.
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from topsp...
Yahairayahata asked 31/8, 2016 at 18:27
2
Title really says it all, but I currently have this, but it doesn't work:
class Command(BaseCommand):
help = ("Functions related to downloading, parsing, and indexing the "
"content")
def add_...
Mcfarland asked 18/4, 2016 at 23:54
2
Solved
I have been running my beginner Django projects with manage.py runserver. I see suggestions to use gunicorn instead. What is the difference ?
Detect asked 26/2, 2016 at 16:49
3
Solved
I have used PyQt4.QtWebkit to crawl the web page in my django application.In the production environment that module doesn't work to crawl it.it throws the error "manage.py: cannot connect to X serv...
Johnnie asked 21/12, 2011 at 19:57
5
Solved
When I run manage.py shell on my Django project to take a peek at something there are common imports that I always want to run at the start of the shell (e.g. I always want to import my model files...
Steffi asked 2/12, 2009 at 22:37
4
I deployed my django app and when I tried
heroku run python manage.py syncdb
I got a timeout awaiting process error. Superuser is not created for the system yet, though i did syncdb by using:
...
Expect asked 27/2, 2014 at 22:6
2
Solved
I want to make the Django development server do something before it starts running. To do this, I created a new app, added it to the top of INSTALLED_APPS, and then created a management/commands/ru...
Amundson asked 12/2, 2015 at 23:27
2
Solved
I get satchmo to try, but I have a great problem at first try, and I don't understand whats wrong.
When I making $ python clonesatchmo.py into clear django project, it trows an error:
$ python clo...
Conserve asked 4/8, 2013 at 22:26
3
Solved
How can I collect translation strings outside of my project folder using Django's built-in makemessages facility? The management command makemessages is very convenient and I'd like to use it for a...
Churchgoer asked 4/11, 2010 at 11:44
1
I'm writing a management command where I want to change the default isolation level. Django and my database will default it to "READ COMITTED" and I need it to be "READ UNCOMMITTED" only for this p...
Talishatalisman asked 18/3, 2013 at 17:13
1 Next >
© 2022 - 2024 — McMap. All rights reserved.