Automatically exported from
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This library is deprecated, as Fire Eagle no longer exists

The django_fireeagle package contains code to handle the Fire Eagle authorisation process within Django. You can use it to manage connections between Django users and their respective Fire Eagle access tokens.

To install, check the code out using this and place django_fireeagle somewhere on your Python path.


The Django Fire Eagle package consists of:

  • Views to handle instigation and completion of Fire Eagle authorisation.
  • A database model to persist Fire Eagle access tokens.


django_fireeagle uses the Python OAuth and fireeagle_api libraries, which must be installed somewhere on the Python path.

The package also depends on the availability of Django’s session support.


Having ensured the oauth, fireeagle_api, and django_fireeagle packages are available on your Python path, you can add Fire Eagle interaction to your application by doing the following:

  1. Put django_fireeagle in your INSTALLED_APPS setting.
  2. Run the command syncdb to create the necessary tables.
  3. Add the following views to your urlconf:
    ( r'fire-eagle/$', 'django_fireeagle.views.begin' ),
    ( r'fire-eagle/finalise/$', 'django_fireeagle.views.finalise' ),
  4. Set the callback URL in Fire Eagle to point to

You will then be able to browse to to associate your logged-in Django user to a Fire Eagle account

Accessing Fire Eagle

To interact with Fire Eagle on behalf of the current user:

// Retrieve the current user's Fire Eagle OAuth token
fe_user = FireEagleUser.objects.get( user=request.user )
request_token = fe_user.get_fire_eagle_token()

// Instantiate a Fire Eagle instance using our app's token
fe = FireEagle(
    getattr( settings, 'FIREEAGLE_CONSUMER_KEY' ),
    getattr( settings, 'FIREEAGLE_CONSUMER_SECRET' )

// Make calls to the Fire Eagle API!
fe_user = fe.user( request_token )

Example project

To use the included example:

  1. Create a test application on Fire Eagle, with the callback URL pointing to
  2. Fill the FIREEAGLE_CONSUMER_KEY and FIREEAGLE_CONSUMER_SECRET in with the values for your Fire Eagle application.
  3. Run python syncdb in the project’s directory, and create a user.
  4. Run python runserver to start the app.
  5. Navigate to, and follow the steps.