removed some admin stuff. Fixed version-info, if no mercurial is installed

This commit is contained in:
Oskar Hahn 2012-04-13 16:47:40 +02:00
parent bb430fd2a7
commit 639397028e
3 changed files with 4 additions and 9 deletions

View File

@ -20,6 +20,8 @@ def get_version(version=None):
mercurial_version = hg_version() mercurial_version = hg_version()
if mercurial_version != 'unknown': if mercurial_version != 'unknown':
sub = '.dev%s' % mercurial_version sub = '.dev%s' % mercurial_version
else:
sub = '.dev'
elif version[3] != 'final': elif version[3] != 'final':
mapping = {'alpha': 'a', 'beta': 'b', 'rc': 'c'} mapping = {'alpha': 'a', 'beta': 'b', 'rc': 'c'}

View File

@ -61,10 +61,6 @@ MEDIA_ROOT = ''
# Examples: "http://media.lawrence.com", "http://example.com/media/" # Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '' MEDIA_URL = ''
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'
STATIC_DOC_ROOT = os.path.join(SITE_ROOT, 'static') STATIC_DOC_ROOT = os.path.join(SITE_ROOT, 'static')
@ -99,7 +95,6 @@ INSTALLED_APPS = (
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.admin',
'mptt', 'mptt',
'utils', 'utils',
'poll', 'poll',

View File

@ -10,9 +10,8 @@
:license: GNU GPL, see LICENSE for more details. :license: GNU GPL, see LICENSE for more details.
""" """
from django.conf.urls.defaults import * from django.conf.urls.defaults import patterns, url, include
from django.conf import settings from django.conf import settings
from django.contrib import admin
from django.views.generic import RedirectView from django.views.generic import RedirectView
from django.utils.importlib import import_module from django.utils.importlib import import_module
import settings import settings
@ -20,7 +19,6 @@ import settings
handler500 = 'openslides.utils.views.server_error' handler500 = 'openslides.utils.views.server_error'
urlpatterns = patterns('', urlpatterns = patterns('',
# frontpage # frontpage
(r'^$', RedirectView.as_view( (r'^$', RedirectView.as_view(
url='projector/control', url='projector/control',
@ -40,7 +38,7 @@ urlpatterns = patterns('',
for plugin in settings.INSTALLED_PLUGINS: for plugin in settings.INSTALLED_PLUGINS:
try: try:
mod = import_module(plugin + '.urls') mod = import_module(plugin + '.urls')
except (ImportError): except ImportError, err:
continue continue
plugin_name = mod.__name__.split('.')[0] plugin_name = mod.__name__.split('.')[0]