django-syncdb

In django, how do I call the subcommand 'syncdb' from the initialization script?

In django, how do I call the subcommand 'syncdb' from the initialization script? Question: I’m new to python and django, and when following the Django Book I learned about the command ‘python manage.py syncdb’ which generated database tables for me. In development environment I use sqlite in memory database, so it is automatically erased everytime …

Total answers: 5

Django/Python Beginner: Error when executing python manage.py syncdb – psycopg2 not found

Django/Python Beginner: Error when executing python manage.py syncdb – psycopg2 not found Question: I have Pythong2.6, psycopg2 and pgAdmin3 installed using Macports. My settings.py is: DATABASE_ENGINE = ‘postgresql_psycopg2’ # ‘postgresql_psycopg2’, ‘postgresql’, ‘mysql’, ‘sqlite3’ or ‘oracle’. DATABASE_NAME = ‘mysite’ # Or path to database file if using sqlite3. DATABASE_USER = ‘postgres’ # Not used with sqlite3. …

Total answers: 19