Questions tagged [syncdb]
82 questions
4
votes
1 answer
ContentType matching query does not exist on post_syncdb
I am trying to add add some data to the database as soon as tables are created, using the post_syncdb signal.
signals.post_syncdb.connect(init)
Then in the init function, I want to set permission, so I use
ct =…

Mark
- 18,730
- 7
- 107
- 130
3
votes
1 answer
Unknown Command "syncdb" when calling from an external exe file made by pyinstaller
I have a folder named db
db
------ __init__.py
------ dbobject.py
------ models.py
------ settings.py
inside __init__.py
from django.conf import settings
def syncdb():
os.environ.setdefault("DJANGO_SETTINGS_MODULE",…

xrage
- 4,690
- 4
- 25
- 31
3
votes
2 answers
Failure with syncdb --migrate on PostgreSQL database. Circular Dependency
I'm trying to create an empty copy of my Django database using the command
manage.py syncdb --migrate --database=
It works fine if the database is a sqlite3 database, but fails for a postgres database.
With postgres the normal…

JivanAmara
- 1,065
- 2
- 10
- 20
3
votes
2 answers
SyncDB after installing new app having already installed South - don't want to mess anything up
I'm using South to manage my (MySQL) database tables for a Django 1.4 project, its working great.
This is a bit of a newbie question, but I'm now adding sorl.thumbnail (http://sorl-thumbnail.readthedocs.org/en/latest/installation.html#installation)…

LittleBobbyTables
- 4,361
- 9
- 38
- 67
2
votes
1 answer
syncdb not happening using south for migration
Synced:
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.sites
> django.contrib.messages
> django.contrib.staticfiles
> django.contrib.admin
> django.contrib.admindocs
> kaarya.account
>…

D_D
- 383
- 2
- 5
- 18
2
votes
1 answer
Django syncdb error
I have django.contrib.auth in my installed apps and everything was was working about 10 minutes ago. I deleted the existed database because I had problems with south migrations. When I try to rebuild it I get an error.
Error: …

Bruk Habtu
- 115
- 2
- 8
2
votes
4 answers
How Django skipping an app when using syncdb command
I have a Django project which has two apps (one created as debug test). For the debug test, syncdb does put the model in the database but for the other it does not.
Both are in settings.INSTALLED_APPS.
There are around seven models, none of them…

Mark
- 18,730
- 7
- 107
- 130
2
votes
3 answers
Django syncdb can't find my apps
I'm a django newbie and have been having a problem.
In my project root I created a folder called 'local_apps' and within it I put the app 'myapp'. I updated the INSTALLED_APPS within settings.py with: myproject.local_apps.myapp
However when I try…

user639998
- 23
- 1
- 4
2
votes
2 answers
Django SYNCDB failes when adding super-user (Windows 7, mySQL, Django 1.2.4, mySQL 5.5)
syncdb fails when creating super user
Django: v 1.2.4
Python: 2.6
MySQL Server: 5.5
Windows 7
Extra: MySQL-Python v1.2.3
What steps will reproduce the problem?
1. install the above programs
2. create a project
3. run syncdb
Note: I have installed…

david_heagney
- 21
- 2
2
votes
1 answer
What is the best Django syncdb crash debugging technique?
What is the best Django syncdb crash debugging technique ?
I've previously asked a question about a problem with manage.py syncdb returning an exception
and the answer was that the app has a wrong import.
django manage.py syncdb not working?
I'd…

user367752
- 31
- 2
2
votes
1 answer
Django syncdb mysql error on localhost -> (1045, "Access denied for user 'ODBC'@'localhost')
Hoping someone can help me connect django to mysql db on localhost...
I have installed Django site into virtualenv folder on my desktop and following django docs Tutorial step by step.
I have mysqlclient installed via pip as per django docs.
I have…

Baz
- 306
- 1
- 5
- 12
2
votes
2 answers
Django 1.8, syncdb not working, throwing a foreign key constraint error
Since I upgrade to Django 1.8 from 1.7, I have got this foreign key constraint error.
File "c:project\env\lib\site-packages\mysql_python-1.2.5-py2.7-win32.egg/MySQLdb\connections.py line 36, in defaulterrorhandler raise errorclass, errorvalue,…

user2307087
- 423
- 11
- 25
2
votes
1 answer
Would it be ok to run "python manage.py syncdb" multiple times towards a database?
Would it be possible to run
"python manage.py syncdb" mutiple times towards the database?
Will it cause corruption?

hutanrimba
- 149
- 1
- 10
2
votes
2 answers
Why Django does not create full table from a model?
I have 2 models. I run manage.py syncdb but it creates only id fields for 2 models. How to make it generate the remaining fields? Please kindly advise. Your help is much appreciated!
Here's my models.py:
from django.db import models
GENDER_CHOICES…

Viet
- 17,944
- 33
- 103
- 135
2
votes
4 answers
OperationalError: no such table on initial syncdb
I'm running syncdb to create an sqlite db. It was working until recently, and I don't see anything I've changed that would cause it to fail. Mostly I just changed some field names.
I have the following in models.py:
class GC_User(models.Model):
…

Beverly Block
- 481
- 1
- 6
- 10