summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2011-03-19 21:52:22 +0200
committerYuval Adam <yuv.adm@gmail.com>2011-03-19 21:52:22 +0200
commitdf5544cfe638bc2246f6821e6089dec7c1ad2494 (patch)
tree0d5a3403ff1a023820367e741c5d031f98532f58 /demo
parentdfe1bbadf614715bab1b28c0e03f05af5a145111 (diff)
key propogation almost working
Diffstat (limited to 'demo')
-rw-r--r--demo/settings.py9
-rw-r--r--demo/templates/main.html3
-rw-r--r--demo/urls.py4
3 files changed, 15 insertions, 1 deletions
diff --git a/demo/settings.py b/demo/settings.py
index d9858d2..218a774 100644
--- a/demo/settings.py
+++ b/demo/settings.py
@@ -71,6 +71,15 @@ TEMPLATE_LOADERS = (
# 'django.template.loaders.eggs.Loader',
)
+TEMPLATE_CONTEXT_PROCESSORS = (
+ "django.core.context_processors.auth",
+ "django.core.context_processors.debug",
+ "django.core.context_processors.i18n",
+ "django.core.context_processors.media",
+ "django.core.context_processors.request",
+ "fb.context_processors.fb_app_id",
+)
+
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
diff --git a/demo/templates/main.html b/demo/templates/main.html
index 36c5da8..23a1ba2 100644
--- a/demo/templates/main.html
+++ b/demo/templates/main.html
@@ -6,5 +6,8 @@
<body>
<h1>django-fb</h1>
+
+ {% include 'fb_js.html' %}
+
</body>
</html> \ No newline at end of file
diff --git a/demo/urls.py b/demo/urls.py
index 8879afc..5b3c71e 100644
--- a/demo/urls.py
+++ b/demo/urls.py
@@ -1,11 +1,13 @@
from django.conf.urls.defaults import *
from django.contrib import admin
from django.http import HttpResponse
+from django.template import Context, loader
+
admin.autodiscover()
urlpatterns = patterns('',
- (r'^$', lambda r: HttpResponse("demo base", mimetype="text/plain")),
+ (r'^$', lambda r: HttpResponse(loader.get_template('main.html').render(Context({})))),
(r'^fb/', include('fb.urls')),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),