Permalink
Browse files

settings for sample app

  • Loading branch information...
1 parent b7e15d7 commit 51bc5c3f15e2e9b0a6db2ade9346475d2cf7339a Noemi Millman committed Jan 28, 2012
Showing with 26 additions and 15 deletions.
  1. +23 −4 sample_project/settings.py
  2. +3 −11 sample_project/urls.py
@@ -11,8 +11,8 @@
DATABASES = {
'default': {
- 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': '', # Or path to database file if using sqlite3.
+ 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+ 'NAME': 'sample.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.
@@ -116,7 +116,9 @@
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
- # 'django.contrib.admin',
+ 'django.contrib.admin',
+ 'south',
+ 'mapomatic',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)
@@ -129,10 +131,18 @@
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
+ 'filters': {
+ },
'handlers': {
'mail_admins': {
'level': 'ERROR',
- 'class': 'django.utils.log.AdminEmailHandler'
+ 'class': 'django.utils.log.AdminEmailHandler',
+ 'filters': [],
+ },
+ 'file':{
+ 'level': 'DEBUG',
+ 'class': 'logging.FileHandler',
+ 'filename': 'debug.log',
}
},
'loggers': {
@@ -141,5 +151,14 @@
'level': 'ERROR',
'propagate': True,
},
+ 'mapomatic': {
+ 'handlers': ['file'],
+ 'level': 'DEBUG',
+ 'propagate': True,
+ },
}
}
+try:
+ from localsettings import *
+except ImportError:
+ pass
@@ -1,17 +1,9 @@
from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
-# from django.contrib import admin
-# admin.autodiscover()
+from django.contrib import admin
+admin.autodiscover()
urlpatterns = patterns('',
- # Examples:
- # url(r'^$', 'chargemeup.views.home', name='home'),
- # url(r'^chargemeup/', include('chargemeup.foo.urls')),
-
- # Uncomment the admin/doc line below to enable admin documentation:
- # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
-
- # Uncomment the next line to enable the admin:
- # url(r'^admin/', include(admin.site.urls)),
+ url(r'^admin/', include(admin.site.urls)),
)

0 comments on commit 51bc5c3

Please sign in to comment.