Commits

Anonymous committed e99f9ab

Back to etc.settings.DATABASES_DEFAULT

Comments (0)

Files changed (2)

         sed 's/$/c/' | xargs $extra_xargs_args rm -v" | bash
 }
 
-# Remove all directories in the project that contain the specified file
+# Remove all directories in the project that contain only the specified file.
 # Experimental.
 function cleanupdirs() {
     [ -z "$1" ] && echo "Usage: cleanupdirs <filename>" 1>&2 && return 1

etc/settings/database.py

 
 DATABASE_NAME = PROJECT
 
-DATABASES = {
+DATABASES_DEFAULT = {
     'default_sqlite': {
         'ENGINE': 'django.db.backends.sqlite3',
         'NAME': path.join(PROJECT_ROOT, 'db', '%s.sqlite3' % DATABASE_NAME),
 }
 
 DATABASES['default'] = \
-        DATABASES['default_' + environ.get('DJANGO_DATABASE_TYPE', 'sqlite')]
+        DATABASES_DEFAULT['default_' + environ.get('DJANGO_DATABASE_TYPE', 'sqlite')]