FAQ Database Discussion Community


django and python manage.py runserver execution error

python,django,manage.py
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 development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Traceback (most recent call last): File "manage.py",...

Cannot use manage.py because of uwsgi import in settings.py

python,django,uwsgi,manage.py
I use django 1.8 + uwsgi + nginx on my production server. uwsgi is in emperor mode. I import the uwsgi python module in myapp/settings.py to enable autoreload upon code modification. As I understood, this python module is available for import only when the python thread is spawn by a...

Ignoring existing table when ./manage.py migrate

python,django,database,migrate,manage.py
I have a question about Django's migration feature when there is an existing table. ContentData ContentType Faq UserLog TB_TEAM_INF When I try to do "./manage.py migrate" so it can create the 5 tables above from models.py, I got an error message because there is an existing table, TB_TEAM_INF. Since TB_TEAM_INF...

Django force makemigrations to use tabs instead of spaces

django,python-2.7,manage.py
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.)...