Top "Django-database" questions

django-database refers to database backends that Django supports out of the box

How do I create a new database for an existing App using Django South and set default values?

I'm working with an OS project that uses South to migrate the database. I'm building a new database from scratch …

django django-south django-database
Django update table using data from another table

I have 2 tables products and catagories connected by foreign key. I need to update field products.new_cost using field …

django django-orm django-database
ForeignKey to a Model field?

I want a foreign key relation in my model with the username field in the User table(that stores the …

python django django-models django-users django-database
How to make Django work with unsupported MySQL drivers such as gevent-mysql or Concurrence's MySQL driver?

I'm interested in running Django on an async framework like Concurrence or gevent. Both frameworks come with its own async …

mysql django asynchronous django-database gevent
How Django atomic requests works?

I'd like my Django views to be atomic. I mean, if there is 2 DB-writes in the view, I want either 0 …

python django atomic django-database
Django : Call a method only once when the django starts up

I want to initialize some variables (from the database) when Django starts. I am able to get the data from …

python django django-views django-database
CommandError: You appear not to have the 'psql' program installed or on your path

I'm using Windows, no virtualenv. I have psycopg2 installed with Pip, and the latest version of PostgreSQL installed as well. …

django postgresql django-settings django-database
Django Table with Million of rows

I have a project with 2 applications ( books and reader ). Books application has a table with 4 milions of rows with this …

python django django-models django-database
django.db.migrations.exceptions.CircularDependencyError

I have a problem with Django migrations on empty DB. When I want to migrate I have a circular dependency …

python django django-migrations django-database
Django and PostgreSQL - value too long for type character varying(512)

I am migrating from a test SQLite database to a PostgreSQL database. I have a sample object that is inserted …

django postgresql psycopg2 django-database