summaryrefslogtreecommitdiff
path: root/yaksh/demo_templates
diff options
context:
space:
mode:
authoradityacp2017-01-04 17:39:52 +0530
committeradityacp2017-01-04 17:39:52 +0530
commit3f9773c4eb2a21902ccdefab89c7f503a08f1743 (patch)
treeb317bf610fcd9cac3a6c685e49a3483b3fe57b17 /yaksh/demo_templates
parent58481cdcba38e8e602b8e2d3e5172f9e653f93a9 (diff)
downloadonline_test-3f9773c4eb2a21902ccdefab89c7f503a08f1743.tar.gz
online_test-3f9773c4eb2a21902ccdefab89c7f503a08f1743.tar.bz2
online_test-3f9773c4eb2a21902ccdefab89c7f503a08f1743.zip
Change demo settings for yaksh commands
Diffstat (limited to 'yaksh/demo_templates')
-rw-r--r--yaksh/demo_templates/demo_settings.py4
-rw-r--r--yaksh/demo_templates/demo_urls.py4
2 files changed, 7 insertions, 1 deletions
diff --git a/yaksh/demo_templates/demo_settings.py b/yaksh/demo_templates/demo_settings.py
index 5fe18bc..3c38794 100644
--- a/yaksh/demo_templates/demo_settings.py
+++ b/yaksh/demo_templates/demo_settings.py
@@ -97,6 +97,10 @@ LOGIN_URL = '/exam/login/'
LOGIN_REDIRECT_URL = '/exam/'
+MEDIA_URL = "/data/"
+
+MEDIA_ROOT = os.path.join(BASE_DIR, "yaksh", "data")
+
SOCIAL_AUTH_LOGIN_ERROR_URL = '/exam/login/'
EMAIL_USE_TLS = False
diff --git a/yaksh/demo_templates/demo_urls.py b/yaksh/demo_templates/demo_urls.py
index b96b476..5abc121 100644
--- a/yaksh/demo_templates/demo_urls.py
+++ b/yaksh/demo_templates/demo_urls.py
@@ -1,5 +1,6 @@
from django.conf.urls import patterns, include, url
-
+from django.conf import settings
+from django.conf.urls.static import static
from django.contrib import admin
admin.autodiscover()
@@ -12,3 +13,4 @@ urlpatterns = patterns('',
url(r'^exam/', include('yaksh.urls', namespace='yaksh', app_name='yaksh')),
url(r'^', include('social.apps.django_app.urls', namespace='social')),
)
+urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file