Browse Source

how the f did I manage to miss that this thing already existed? meeeeeh

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
2ddb96f883
  1. 4
      pyweb/processors.py
  2. 3
      pyweb/settings.py

4
pyweb/processors.py

@ -14,10 +14,6 @@
* GNU General Public License for more details.
"""
def media_url(request):
from django.conf import settings
return { 'MEDIA_URL': settings.MEDIA_URL }
def installed_apps(request):
from django.conf import settings
return { 'ROSETTA_INSTALLED': "rosetta" in settings.INSTALLED_APPS }

3
pyweb/settings.py

@ -183,9 +183,8 @@ TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
'processors.media_url',
'processors.installed_apps',
);
)
TEST_RUNNER = 'mumble.testrunner.run_tests'
TEST_MURMUR_LAB_DIR = join( dirname(MUMBLE_DJANGO_ROOT), 'murmur' );

Loading…
Cancel
Save