Skip to content

Commit

Permalink
More ericholscher#29 fixing
Browse files Browse the repository at this point in the history
TEMPLATE_LOADERS update for django 1.4
  • Loading branch information
bmihelac committed May 18, 2012
1 parent 9c4db30 commit b6c79b7
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions test_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@

MANAGERS = ADMINS

DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = PROJECT_DIR + '/test_settings.db' # Or path to database file if using sqlite3.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'test.sqlite', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}

#mckenzie

# Local time zone for this installation. Choices can be found here:
Expand Down Expand Up @@ -50,10 +59,12 @@

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)


MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
Expand Down

0 comments on commit b6c79b7

Please sign in to comment.