Permalink
Browse files

style fixes and enabled basic django caching

  • Loading branch information...
1 parent 18f660e commit f39eef4177f0bf06f84cb28b3b9ac9d2244ab2f6 @trey0 trey0 committed Aug 11, 2012
Showing with 14 additions and 2 deletions.
  1. +1 −1 apps/mapFastenApp/templates/header.html
  2. +12 −0 siteSettings.py
  3. +1 −1 urls.py
@@ -1 +1 @@
-<img src="{{ STATIC_URL }}mapFasten/icons/mapFastenLogo.png"/>
+<img src="{{ STATIC_URL }}mapFasten/icons/mapFastenLogo.png" style="margin-left: 5px; margin-top: 5px;"/>
View
@@ -105,7 +105,9 @@
MIDDLEWARE_CLASSES = (
'geocamUtil.middleware.LogErrorsMiddleware',
'django.middleware.gzip.GZipMiddleware',
+ 'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
+ 'django.middleware.cache.FetchFromCacheMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'geocamUtil.middleware.SecurityMiddleware',
@@ -123,10 +125,13 @@
# templates. We suggest putting your apps above standard apps
# so your apps can override templates as needed.
INSTALLED_APPS = (
+ 'mapFastenApp',
'geocamTiePoint',
'geocamUtil',
+ 'django_digest',
+
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@@ -146,3 +151,10 @@
SITE_TITLE = 'MapFasten'
GEOCAM_UTIL_INSTALLER_USE_SYMLINKS = True
+
+# override this in settings for production use
+CACHES = CACHES = {
+ 'default': {
+ 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
+ }
+}
View
@@ -50,6 +50,6 @@
readOnly=True)),
url(r'^favicon.ico$', 'django.views.generic.simple.redirect_to',
- {'url': settings.STATIC_URL + 'responderMaps/icons/responderMaps.ico',
+ {'url': settings.STATIC_URL + 'mapFasten/icons/mapFastenFavicon.ico',
'readOnly': True}),
)

0 comments on commit f39eef4

Please sign in to comment.