diff -r 22e66e1ed995 -r 7358eeae14d8 settings.py --- a/settings.py Thu Sep 17 18:52:21 2009 -0400 +++ b/settings.py Thu Sep 24 15:20:30 2009 +0530 @@ -1,16 +1,19 @@ # Django settings for scipy project. +import os + DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( + ('Shantanu Choudary', 'choudhary.shantanu@gmail.com'), # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS -DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = '' # Or path to database file if using sqlite3. +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = 'participants' # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. @@ -21,7 +24,7 @@ # although not all choices may be available on all operating systems. # If running in a Windows environment this must be set to the same as your # system time zone. -TIME_ZONE = 'America/Chicago' +TIME_ZONE = 'Asia/Kolkata' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html @@ -33,14 +36,17 @@ # to load the internationalization machinery. USE_I18N = True +AUTH_PROFILE_MODULE = 'content.model.Participant' + +ROOT_PATH = os.path.dirname(__file__) # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = '' +MEDIA_ROOT = os.path.join(ROOT_PATH, 'site-content') # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" -MEDIA_URL = '' +MEDIA_URL = '/site-content/' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. @@ -63,9 +69,10 @@ 'django.contrib.auth.middleware.AuthenticationMiddleware', ) -ROOT_URLCONF = 'scipy.urls' +ROOT_URLCONF = 'scipy-in.urls' TEMPLATE_DIRS = ( + os.path.join(ROOT_PATH, 'template'), # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. @@ -76,4 +83,5 @@ 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', + 'scipy-in.content', )