From df5544cfe638bc2246f6821e6089dec7c1ad2494 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sat, 19 Mar 2011 21:52:22 +0200 Subject: key propogation almost working --- fb/context_processors.py | 5 +++++ fb/middleware.py | 5 +++++ fb/templates/fb_js.html | 10 ++++++++++ 3 files changed, 20 insertions(+) create mode 100644 fb/context_processors.py create mode 100644 fb/middleware.py create mode 100644 fb/templates/fb_js.html (limited to 'fb') diff --git a/fb/context_processors.py b/fb/context_processors.py new file mode 100644 index 0000000..92a9a0a --- /dev/null +++ b/fb/context_processors.py @@ -0,0 +1,5 @@ +from django.conf import settings + +def fb_app_id(request): + print 'bla' + return { settings.FACEBOOK_APP_ID } \ No newline at end of file diff --git a/fb/middleware.py b/fb/middleware.py new file mode 100644 index 0000000..cd2305d --- /dev/null +++ b/fb/middleware.py @@ -0,0 +1,5 @@ + +class DjangoFacebookMiddleware: + + def process_template_response(self, req, res): + \ No newline at end of file diff --git a/fb/templates/fb_js.html b/fb/templates/fb_js.html new file mode 100644 index 0000000..11969d2 --- /dev/null +++ b/fb/templates/fb_js.html @@ -0,0 +1,10 @@ +
+ + \ No newline at end of file -- cgit v1.3.1