Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
flashingpumpkin committed Dec 7, 2009
1 parent 2b25448 commit aa5fe02
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 0 deletions.
87 changes: 87 additions & 0 deletions django_socialregistration.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
Metadata-Version: 1.0
Name: django-socialregistration
Version: 0.1
Summary: Django application enabling registration through a variety of APIs
Home-page: http://code.google.com/p/django-socialregistration
Author: Alen Mujezinovic
Author-email: alen@caffeinehit.com
License: UNKNOWN
Description: ==========================
Django Social Registration
==========================

Django Social Registration enables developers to add alternative registration
methods based on third party sites.

Requirements
============
django
oauth
python-openid
pyfacebook

Installation
============

#. Add the *socialregistration* directory to your *PYTHON_PATH*.
#. Add *socialregistration* to your *INSTALLED_APPS* settings of Django.
#. Add *socialregistration.urls* to your *urls.py* file.

Configuration
=============

Facebook Connect
----------------
#. Add *FACEBOOK_API_KEY* and *FACEBOOK_SECRET_KEY* to your settings file
representing the keys you were given by Facebook.
#. Add *socialregistration.auth.FacebookAuth* to *AUTHENTICATION_BACKENDS* in your settings file.

#. Add tags to your template file:

{% load facebook_tags %}
{% facebook_button %}
{% facebook_js %}

Twitter
-------
#. Add the following variables to your *settings.py* file with the values you
were given by Twitter:

TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET_KEY
TWITTER_REQUEST_TOKEN_URL
TWITTER_ACCESS_TOKEN_URL
TWITTER_AUTHORIZATION_URL

#. Add *socialregistration.auth.TwitterAuth* to *AUTHENTICATION_BACKENDS* in your settings file.

#. Add tags to your template file:
{% load twitter_tags %}
{% twitter_button %}

Other OAuth Services
--------------------
There is an example of how FriendFeed integration could work.
*socialregistration.models* provides a *FriendFeedProfile* model to save account
data, *socialregistration.auth* provides examples for different auth backends for
different service providers, *socialregistration.utils* provides a Twitter
and FriendFeed interface and *socialregistration.urls* provides examples based
on Twitter and FriendFeed how to hook in more OAuth based services.

OpenID
------
#. Add *socialregistration.auth.OpenIDAuth* to *AUTHENTICATION_BACKENDS* in your settings file.
#. Add tags to your template file:
{% load openid_tags %}
{% openid_form %}

Keywords: django facebook twitter oauth openid registration
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Environment :: Web Environment
Classifier: Topic :: Internet
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Framework :: Django
18 changes: 18 additions & 0 deletions django_socialregistration.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
AUTHORS
LICENSE
MANIFEST.in
README
django_socialregistration.egg-info/PKG-INFO
django_socialregistration.egg-info/SOURCES.txt
django_socialregistration.egg-info/dependency_links.txt
django_socialregistration.egg-info/requires.txt
django_socialregistration.egg-info/top_level.txt
socialregistration/__init__.py
socialregistration/admin.py
socialregistration/auth.py
socialregistration/forms.py
socialregistration/models.py
socialregistration/tests.py
socialregistration/urls.py
socialregistration/utils.py
socialregistration/views.py
1 change: 1 addition & 0 deletions django_socialregistration.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 4 additions & 0 deletions django_socialregistration.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
setuptools
django
oauth
python-openid
1 change: 1 addition & 0 deletions django_socialregistration.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
socialregistration

0 comments on commit aa5fe02

Please sign in to comment.