Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Starting with Django 1.2, the <code>DATABASE_*</code> family of settings was deprecated in favor of the new <code>DATABASES</code> setting. In 1.4 it was completely removed which means from 1.4 onwards you <em>have</em> to use the <code>DATABASES</code> setting.</p> <p>See the docs: <a href="https://docs.djangoproject.com/en/dev/ref/settings/#databases" rel="nofollow">https://docs.djangoproject.com/en/dev/ref/settings/#databases</a> https://docs.djangoproject.com/en/dev/internals/deprecation/#id1</p> <p><strong>Update:</strong> Just rewrite</p> <pre><code> DATABASE_ENGINE = 'django.db.backends.mysql', DATABASE_NAME = 'Test', DATABASE_USER = 'root', DATABASE_PASSWORD = 'testpw', DATABASE_HOST = '/var/run/mysql', DATABASE_PORT = '3306', </code></pre> <p>to</p> <pre><code>DATABASES = { 'default' : { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'Test', 'USER': 'root', 'PASSWORD': 'testpw', 'HOST': '/var/run/mysql', 'PORT': '3306', } } </code></pre> <p>and you're set.</p> <p><strong>Update:</strong><br /> Just as a side note, instead of trying to use <code>settings.configure</code> in your commandline scripts, the recommended way to run batch jobs is to create <a href="https://docs.djangoproject.com/en/1.4/howto/custom-management-commands/" rel="nofollow">management commands</a>. That way you don't have to duplicate your settings or mess with the environment and as the settings are loaded using the same mechanism as your regular web application, you are guaranteed they will be the same.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload