readme
This commit is contained in:
parent
430780d94b
commit
0144aa7f3b
|
@ -0,0 +1,42 @@
|
||||||
|
auf.django.secretquestions
|
||||||
|
==========================
|
||||||
|
|
||||||
|
|
||||||
|
install
|
||||||
|
-------
|
||||||
|
|
||||||
|
* pip install auf.django.secretquestions
|
||||||
|
|
||||||
|
* include 'auf.django.secretquestions.urls' into patterns
|
||||||
|
|
||||||
|
* add 'auf.django.secretquestions' to your INSTALLED_APPS
|
||||||
|
|
||||||
|
* run syncdb --migrate
|
||||||
|
|
||||||
|
|
||||||
|
use
|
||||||
|
---
|
||||||
|
|
||||||
|
* add decorator to your view : secret_questions_required(ttl=None)
|
||||||
|
|
||||||
|
|
||||||
|
configuration
|
||||||
|
-------------
|
||||||
|
|
||||||
|
* SQ_SESSION_KEY : key for session
|
||||||
|
|
||||||
|
* SQ_TOKEN_TTL : global TTL (if not set in the decorator)
|
||||||
|
|
||||||
|
|
||||||
|
run tests
|
||||||
|
---------
|
||||||
|
|
||||||
|
* (optional) create virtualenv environment
|
||||||
|
|
||||||
|
* pip install tox
|
||||||
|
|
||||||
|
* git clone http://git.auf.org/auf_django_secretquestions.git auf.django.secretquestions
|
||||||
|
|
||||||
|
* cd auf.django.secretquestions
|
||||||
|
|
||||||
|
* tox
|
Reference in New Issue