Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Committing a local settings template. Rearranging the main settings f…

…ile.
  • Loading branch information...
commit 03f2b2a16176a0cc256f24a47a5d4a2c716c3232 1 parent f56d186
@bryanveloso bryanveloso authored
Showing with 11 additions and 3 deletions.
  1. +11 −3 settings.py
View
14 settings.py
@@ -1,4 +1,4 @@
-import os
+import os.path
# Getting Started
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
@@ -27,7 +27,6 @@
# Middleware
MIDDLEWARE_CLASSES = (
- 'django.middleware.gzip.GZipMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.http.SetRemoteAddrFromForwardedFor',
'django.contrib.sessions.middleware.SessionMiddleware',
@@ -39,11 +38,20 @@
USE_ETAGS = True
APPEND_SLASH = True
+
# Template Settings
+MARKUP_FILTER = ('markdown', {})
+TEMPLATE_DIRS = (
+ os.path.join(os.path.dirname(__file__), 'templates'),
+)
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
)
# Import Local Settings
-from plugables import *
+try:
+ from plugables import *
+except ImportError:
+ pass
+
Please sign in to comment.
Something went wrong with that request. Please try again.