I’ve been trying to use PostrgeSQL with my Django apps but I get the following error before (right after starting the project when I only have the following files: __init__.py, manage.py, settings.pyc, urls.pyc, __init__.pyc, settings.py, urls.py) and after I’ve added models:
python manage.py syncdb
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.
I’m not even trying to load fixtures. Psycopg2 is installed. This is the database section of my settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
# Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'myapp_development',
# Or path to database file if using sqlite3.
'USER': 'foo', # Not used with sqlite3.
'PASSWORD': 'password', # Not used with sqlite3.
'HOST': '',
# Set to empty string for localhost. Not used with sqlite3.
'PORT': '',
# Set to empty string for default. Not used with sqlite3.
}
}
This means that Django had not found any fixtures. This is a standard message if there are no fixtures.
Fixture is a file of the next format (using to create real objects in a database by an existing model):
See more for details: http://docs.djangoproject.com/en/dev/howto/initial-data/