Commits

Ken Bolton  committed 5f95a47

Update for Django 1.4.

  • Participants
  • Parent commits 6cbdad7

Comments (0)

Files changed (3)

 ::
 
     TEMPLATE_CONTEXT_PROCESSORS = (
-        'django.core.context_processors.auth',
+        'django.contrib.auth.context_processors.auth',
         'django.core.context_processors.i18n',
         'django.core.context_processors.media',
         'reploc.context_processors.representatives',

File reploc/templates/base.html

 <html>
 <head>
 <title>PLEASE DON'T RELY ON THIS TEMPLATE</title>
-<script type="text/javascript" src="/static/js/jquery.js"></script>
-{% block extra-head %}{% endblock %}
+<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.js"></script>
+{% block extra_head %}{% endblock %}
 </head>
 <body>
 <p>If you're seeing this template, you should create your own project-wide "base.html"</p>
-{% block content %}{% endblock %}
+{% block main %}{% endblock %}
 </body>
 </html>

File sample/settings.py

 
 # List of callables that know how to import templates from various sources.
 TEMPLATE_LOADERS = (
-    'django.template.loaders.filesystem.load_template_source',
-    'django.template.loaders.app_directories.load_template_source',
-#     'django.template.loaders.eggs.load_template_source',
+    "django.template.loaders.filesystem.Loader",
+    "django.template.loaders.app_directories.Loader",
 )
 
 MIDDLEWARE_CLASSES = (
 )
 
 TEMPLATE_CONTEXT_PROCESSORS = (
-    'django.core.context_processors.auth',
+    'django.contrib.auth.context_processors.auth',
     'django.core.context_processors.i18n',
     'django.core.context_processors.media',
     'django.core.context_processors.debug',
     'reploc'
 )
 
-GOOGLE_MAPS_KEY = 'sdfsafasfdasfdasdf'
+GOOGLE_MAPS_KEY = ''