Commit 9c4124cb authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos

Sync settings.py

parent fd4ec4f3
......@@ -33,10 +33,10 @@ here = lambda x: os.path.join(os.path.abspath(os.path.dirname(__file__)), x)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'flowspy', # Or path to database file if using sqlite3.
'USER': 'root', # Not used with sqlite3.
'PASSWORD': 'ndo', # Not used with sqlite3.
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # 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.
}
......@@ -65,6 +65,10 @@ LANGUAGES = (
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en'
LOCALE_PATHS = (
os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'locale'),
)
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
......@@ -95,7 +99,7 @@ STATIC_ROOT = '/home/leopoul/projects/flowspy/static'
# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = 'https://fod.netdev2/grnet.gr/static/'
STATIC_URL = 'https://example.com/static/'
# Additional locations of static files
STATICFILES_DIRS = (
......@@ -127,8 +131,9 @@ TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.static",
"django.contrib.messages.context_processors.messages",
"flowspy.context.global_vars.settings_vars",
"context.global_vars.settings_vars",
)
MIDDLEWARE_CLASSES = (
......@@ -168,6 +173,7 @@ INSTALLED_APPS = (
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.flatpages',
'django.contrib.messages',
'django.contrib.staticfiles',
'flowspec',
......@@ -182,6 +188,7 @@ INSTALLED_APPS = (
'registration',
'accounts',
'tinymce',
'widget_tweaks',
)
# A sample logging configuration. The only tangible logging
......@@ -213,9 +220,19 @@ LOGGING = {
}
}
LOGIN_URL = '/fod/welcome'
LOGIN_URL = '/welcome'
CACHE_BACKEND = "memcached://127.0.0.1:11211/?timeout=3600"
# CACHES = {
# 'default': {
# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
# 'LOCATION': '127.0.0.1:11211',
# }
# }
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
AUTH_PROFILE_MODULE = 'accounts.UserProfile'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment