Skip to content

Commit

Permalink
Fix some imports and settings errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémy Hubscher authored and Rémy Hubscher committed Jun 7, 2012
1 parent 25e9cad commit 02b152f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/djangoapp/run.py
Expand Up @@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from couchdbkit.contrib import WSGIHandler
from couchdbkit.wsgi.handler import WSGIHandler
import os
import sys

Expand Down
19 changes: 10 additions & 9 deletions examples/djangoapp/settings.py
Expand Up @@ -13,8 +13,16 @@

MANAGERS = ADMINS

DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = os.path.join(PROJECT_PATH,'test.db')
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'test.db', # 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.
}
}

COUCHDB_DATABASES = (
('djangoapp.greeting', 'http://127.0.0.1:5984/greeting'),
Expand Down Expand Up @@ -48,13 +56,6 @@
# Make this unique, and don't share it with anybody.
SECRET_KEY = '3c7!ofj2o@7vglv+dj(pm_2_m*n)4qnfi7cw+7#8c3ng6sxcml'

# 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.eggs.load_template_source',
)

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

0 comments on commit 02b152f

Please sign in to comment.