johnboxall / django-tenderize

Tender Plugin for Django

This URL has Read+Write access

name age message
file README Sun Jan 11 23:47:20 -0800 2009 Added chrisdrackett's `tender_xxx` support. [johnboxall]
file __init__.py Wed Dec 03 16:52:15 -0800 2008 The codes. [John Boxall]
file helpers.py Tue Aug 11 22:37:12 -0700 2009 Avoid function name / return value confusion in... [johnboxall]
file models.py Thu Dec 04 10:47:30 -0800 2008 Changed code to work in login. Also fixed bug w... [John Boxall]
directory tests/ Tue Aug 11 22:37:49 -0700 2009 Update tests to work with less assumptions abou... [johnboxall]
file urls.py Fri Mar 20 12:56:46 -0700 2009 + added logout views. [johnboxall]
file views.py Fri Mar 20 12:56:46 -0700 2009 + added logout views. [johnboxall]
README
Info
----

Tender uses tasty cookies to log your users in.
http://help.tenderapp.com/faqs/setup-installation/login-from-cookies

This app includes a view like `django.contrib.auth.views.login` that in addition to logging a user in as normal, sets 
the cookies required by Tender. Yum.


Installation
------------

1) Checkout the project into a folder called `tenderize` on your python path:
git clone git://github.com/johnboxall/django-tenderize.git tenderize

2) Add `tenderize` to your installed apps, and add the following to `settings.py`:

# .yourdomain.com
TENDER_COOKIE_DOMAIN = '.mysite.com'

# get from tender
TENDER_SECRET = "???"

# your.tenderapp.com
TENDER_DOMAIN = 'support.mysite.com'

# how long the cookies will last
TENDER_COOKIE_AGE = 1209600 # (2 weeks in seconds)

3) Add the following to urlpatterns in `urls.py`:

url(r'^login/$', 'tenderize.views.login_and_tenderize', name="login")