summaryrefslogtreecommitdiff
path: root/scipy2015
diff options
context:
space:
mode:
Diffstat (limited to 'scipy2015')
-rw-r--r--scipy2015/settings.py14
-rw-r--r--scipy2015/urls.py2
2 files changed, 13 insertions, 3 deletions
diff --git a/scipy2015/settings.py b/scipy2015/settings.py
index 3bd5ed1..3ad1f05 100644
--- a/scipy2015/settings.py
+++ b/scipy2015/settings.py
@@ -90,14 +90,22 @@ WSGI_APPLICATION = 'scipy2015.wsgi.application'
DATABASES = {
'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+ 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
+ 'NAME': 'scipy2015', # Or path to database file if using sqlite3.
+ # The following settings are not used with sqlite3:
+ 'USER': DATABASE_USER,
+ 'PASSWORD': DATABASE_PASSWORD,
+ 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
+ 'PORT': '',
}
}
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = LOCAL_SOCIAL_AUTH_GOOGLE_OAUTH2_KEY
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = LOCAL_SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET
+SOCIAL_AUTH_FACEBOOK_KEY = LOCAL_SOCIAL_AUTH_FB_KEY
+SOCIAL_AUTH_FACEBOOK_SECRET = LOCAL_SOCIAL_AUTH_FB_SECRET
+
# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/
@@ -116,3 +124,5 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.6/howto/static-files/
STATIC_URL = '/static/'
+
+MEDIA_ROOT = os.path.join(BASE_DIR, '../website/static/uploads')
diff --git a/scipy2015/urls.py b/scipy2015/urls.py
index 18b0206..9e9d4c7 100644
--- a/scipy2015/urls.py
+++ b/scipy2015/urls.py
@@ -9,7 +9,7 @@ urlpatterns = patterns('',
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
- url(r'^', include('website.urls', namespace='website')),
+ url(r'^2015/', include('website.urls', namespace='website')),
url(r'^', include('social.apps.django_app.urls', namespace='social')),
url(r'^', include('django.contrib.auth.urls', namespace='auth')),
)