Hi,
I'm a Django amateur, and have problems getting django-registration to work. I followed the installation instructions on their website, but for someone like me these instructions are not 100% clear as to what I should be doing. Here is what I've done:
- I installed the oauth2 and python-openid packages using pip. I then copied the facebook.py file from the facebook-python-sdk package to my main django app directory. (As I write this, I'm wondering whether this file should be copied to the socialregistration app directory? Does it make a difference?)
- I copied the socialregistration directory to my django project's directory.
- I added socialresgitration to my INSTALLED_APPS setting.
- To add socialregistration.urls to my urls.py file, I added the following line (not sure if this is correct, since the instructions don't give details):
(r'^social/', include('socialregistration.urls')), - I added the facebook API key and secret key to my settings
- I added socialregistration.auth.FacebookAuth to AUTHENTICATION_BACKENDS.
- I added socialregistration.middleware.FacebookMiddleware to MIDDLEWARE_CLASSES.
- Finally I added the three facebook tags they give in the instructions to one of my templates.
- When I then load my website, I get the folllowing error:
Caught AttributeError while rendering: Please add thedjango.core.context_processors.request
context processors to your settings.TEMPLATE_CONTEXT_PROCESSORS set
So, what can I do? I thought installation would be quite simple, but apparently this is not the case. ANY help would be appreciated!
Oh, BTW, I'm using Django 1.2.1 and Python 2.6.
Thanks!