Update value of TIME_ZONE and replace some deprecated views with new class based views

This commit is contained in:
Mark Gius
2011-05-26 13:47:04 -07:00
parent fce24e7c4a
commit 5c8a2d5883
2 changed files with 7 additions and 8 deletions

View File

@@ -78,7 +78,7 @@ AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
TIME_ZONE = 'PST+08PDT,M3.2.0,M11.1.0'
TIME_ZONE = None
LANGUAGE_CODE = 'en-us'
USE_I18N = False

View File

@@ -23,6 +23,7 @@ URL patterns for the OpenStack Dashboard.
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
from django.views.generic import TemplateView
from registration import forms as reg_forms
@@ -43,16 +44,14 @@ urlpatterns = patterns('',
url(r'^syspanel/', include('django_nova_syspanel.urls')),
)
urlpatterns += patterns('django.views.generic.simple',
urlpatterns += patterns('',
# TODO(devcamcar): Move permission denied template into django-openstack.
url(r'^denied/$',
'direct_to_template',
{'template': 'permission_denied.html'},
name='dashboard_permission_denied'),
TemplateView.as_view(template_name='permission_denied.html'),
{'name':'dashboard_permission_denied'}),
url(r'^unavailable/$',
'direct_to_template',
{'template': 'unavailable.html'},
name='nova_unavailable'),
TemplateView.as_view(template_name='unavailable.html'),
{'name':'nova_unavailable'}),
)
urlpatterns += patterns('',