From 6c1690ff113568c2f8d70e58f4d9dcde2fc55810 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 9 Dec 2014 23:13:43 +0100 Subject: [PATCH] fix urls, fix sandbox wsgi, fix sandbox apache conf --- example/apache2/telemeta.conf | 16 +++++++++++++--- example/sandbox/wsgi.py | 2 +- telemeta/urls.py | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/example/apache2/telemeta.conf b/example/apache2/telemeta.conf index 3b6cedd7..d0bffa71 100644 --- a/example/apache2/telemeta.conf +++ b/example/apache2/telemeta.conf @@ -1,7 +1,7 @@ ServerAdmin webmaster@localhost ServerName telemeta.wm22.parisson.org - + LogLevel warn ErrorLog ${APACHE_LOG_DIR}/error-telemeta.log # Possible values include: debug, info, notice, warn, error, crit, @@ -14,10 +14,10 @@ Order deny,allow Allow from all - + WSGIDaemonProcess telemeta_test user=www-data group=www-data threads=12 processes=4 maximum-requests=1000 deadlock-timeout=300 WSGIProcessGroup telemeta_test - WSGIApplicationGroup %{GLOBAL} + WSGIApplicationGroup %{GLOBAL} WSGIScriptAlias / /home/dev/telemeta/example/sandbox/wsgi.py @@ -31,4 +31,14 @@ Alias /favicon.ico /home/dev/telemeta/telemeta/static/telemeta/images/favicon.ic SetHandler None +DocumentRoot /var/www/ +Alias /static/ /var/www/telemeta/ + + + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + allow from all + + diff --git a/example/sandbox/wsgi.py b/example/sandbox/wsgi.py index 642c8723..c3642fec 100644 --- a/example/sandbox/wsgi.py +++ b/example/sandbox/wsgi.py @@ -7,7 +7,7 @@ import sys here = os.path.dirname(__file__) sys.path.append(here) -os.environ['DJANGO_SETTINGS_MODULE'] = 'sandbox.settings' +os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() diff --git a/telemeta/urls.py b/telemeta/urls.py index 7f356af8..cc16baff 100644 --- a/telemeta/urls.py +++ b/telemeta/urls.py @@ -108,7 +108,7 @@ urlpatterns = patterns('', # url(r'^archives/collections/(?P[A-Za-z0-9._-]+)/collection.m3u$', collection_view.collection_playlist, dict(template="telemeta/collection.m3u", mimetype="audio/mpegurl"), name="telemeta-collection-m3u"), url(r'^archives/collections/(?P[A-Za-z0-9._-]+)/edit/$', CollectionEditView.as_view(), name="telemeta-collection-edit"), url(r'^archives/collections/(?P[A-Za-z0-9._-]+)/copy/$', CollectionCopyView.as_view(), name="telemeta-collection-copy"), - url(r'^archives/collections_add//$', CollectionAddView.as_view(), name="telemeta-collection-add"), + url(r'^archives/collections_add/$', CollectionAddView.as_view(), name="telemeta-collection-add"), url(r'^archives/collections/(?P[A-Za-z0-9._-]+)/add_item/$', ItemAddView.as_view(), name="telemeta-collection-additem"), url(r'^archives/collections/(?P[A-Za-z0-9._-]+)/delete/$', collection_view.collection_delete, name="telemeta-collection-delete"), url(r'^archives/collections/(?P[A-Za-z0-9._-]+)/related/(?P[A-Za-z0-9._-]+)/view/$', collection_view.related_media_collection_stream, name="telemeta-collection-related"), -- 2.39.5