1. Michele Casari
  2. oweb

Source

oweb / settings.py

Diff from to

File settings.py

  • Ignore whitespace
 
 #email info
 EMAIL_USE_TLS = True
-EMAIL_HOST = 'smtp.gmail.com'
-EMAIL_HOST_USER = 'lablinux At gmail d0t com'
+EMAIL_HOST = '***********'
+EMAIL_HOST_USER = 'lablinux At gmail dOt com'
 EMAIL_HOST_PASSWORD = '****'
 EMAIL_PORT = 587
 
 ADMINS = (
-    ('Michele', 'lablinux At gmail d0t com'),
+    ('Michele', 'lablinux@gmail.com'),
 )
 
 MANAGERS = ADMINS
-
-if sys.platform != 'win32':
+#psycopg2
+#if sys.platform.lower().startswith("win"):
+#DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+#DATABASE_NAME = os.path.join(PROJECT_PATH, 'media', 'db.sqlite3')            # Or path to database file if using sqlite3.
+if sys.platform == 'win32':
     DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
     DATABASE_NAME = os.path.join(PROJECT_PATH, 'media', 'db.sqlite3')           # Or path to database file if using sqlite3.
     DATABASE_USER = ''             # Not used with sqlite3.
     DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
 else:
     DATABASE_ENGINE = 'postgresql_psycopg2'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-    DATABASE_NAME = '----------'            # 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.
-    DATABASE_PORT = '------'           # Set to empty string for default. Not used with sqlite3.
+    DATABASE_NAME = '**********'            # 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.
+    DATABASE_PORT = '****'             # Set to empty string for default. Not used with sqlite3.
 
 
 
 ADMIN_MEDIA_PREFIX = '/djangomedia/'
 
 # Make this unique, and don't share it with anybody.
-SECRET_KEY = '..................................................'
+SECRET_KEY = '**************************************************'
 
 # List of callables that know how to import templates from various sources.
 TEMPLATE_LOADERS = (
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.middleware.locale.LocaleMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
+    #'lib.userprofile.UrlLocal',
+    #'lib.userprofile.ProfilingUser',
 )
 
 #TEMPLATE_CONTEXT_PROCESSORS = (