Changeset 1060 in main


Ignore:
Timestamp:
04/27/12 09:00:40 (7 years ago)
Author:
pcosquer
Message:

settings_tests: remove admins, use DATABASES = {...} settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/settings_tests.py

    r978 r1060  
    11#-!- coding:utf-8 -!- 
    22# Django settings for openPLM project. 
    3 # sqlite version 
     3# tests version 
    44 
    55import sys 
     
    1111ADMINS = ( 
    1212    # ('Your Name', 'your_email@domain.com'), 
    13     ("pcosquer", "pierre.cosquer@insa-rennes.fr"), 
    14     ("pjoulaud", "ninoo.fr@gmail.com"), 
    1513) 
    1614 
    1715MANAGERS = ADMINS 
    1816 
    19 DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 
    20 DATABASE_NAME = 'database_tests.db'             # Or path to database file if using sqlite3. 
    21 DATABASE_USER = ''             # Not used with sqlite3. 
    22 DATABASE_PASSWORD = ''         # Not used with sqlite3. 
    23 DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3. 
    24 DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3. 
     17DATABASES = { 
     18    'default': { 
     19        'ENGINE': 'django.db.backends.sqlite3', # or 'postgresql', 'mysql', 'sqlite3', 'oracle'. 
     20        'NAME': 'database_tests.db',               # Or path to database file if using sqlite3. 
     21    } 
     22} 
     23 
    2524 
    2625# Local time zone for this installation. Choices can be found here: 
     
    8180      ('es', u'Español'), 
    8281      ('ja', u'日本語'), 
     82      ('zh_CN', u'中文'), 
    8383) 
    8484 
Note: See TracChangeset for help on using the changeset viewer.