Please direct all bugs and feature requests to the lighthouse page for this project:
http://chrisdrackett.lighthouseapp.com/projects/37333-python-tender/overview
To use the API parts of tender you will need to install the following on your python path:
The following is included as a submoulde of this project, and will be automatically downloaded using the instructions below.
-
Checkout the project into a folder called
tenderize
on your python path:git clone git://github.com/chrisdrackett/django-tenderize.git tenderize
-
Update the submodules (this gets the python tender API wrapper)
cd django-tenderize/
git submodule update --init
- Add
tenderize
to your installed apps, and add the following tosettings.py
:
TENDER_APP_NAME = 'appname' # your tender app name, .tenderapp.com/ TENDER_EMAIL = '[email protected]' # this is the default email that will be used for API requests TENDER_PASSWORD = 'xxxx' # the password that goes along with the above email TENDER_SECRET = "???" # get from tender TENDER_DOMAIN = 'support.mysite.com' # your.tenderapp.com TENDER_LOGIN_TIME = 1209600 # how long the cookies will last (2 weeks in seconds)
- Add the following to urlpatterns in
urls.py
:
(r'^', include('tenderize.urls'))
- Run syncdb
tenderize uses multipass for logging users into tender. To get this URL you can use the helper:
from tenderize.helpers import multipass_url
Documentation of the tender API is coming as the python wrapper matures. You can initiate the api using the helper function 'tender_api' in helpers.py. This function will default to using the email and password you have in settings, but can be overridden.
Currently there is a helper in place to sync categories from tender into your database. This should help you display categories without hitting tender. We also have a shortcut to create discussions directly from the django Category object.