Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Let users signin/signup into your website using their Last.fm account credentials. This app uses Last.fm Api 2.0 http://www.last.fm/api/

tag: v0.1.0a1

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

lastfmauth app for django projects

So far this is a very alpha app and it need some more work to be complete.

Requirements

Tested with django 1.2 and python2.6.

Instalation

Register your app and get a key in LastFM API page Set the callback url to http://your-domain/login_complete/

Then download and install lastfmauth app:

pip install -E path/to/your/env/ django-lastfmauth

or

easy_install django-lastfmauth

Add to your settings.py:

INSTALLED_APPS = (
    ...
    'lastfmauth',
    ...
)

AUTHENTICATION_BACKENDS = (
    "lastfmauth.backends.LastfmAuthBackend",
    ...
)

LASTFM_API_KEY = "YOUR API KEY"
LASTFM_SECRET = "YOUR SECRET KEY"
LASTFM_WS_BASE_URL = "http://ws.audioscrobbler.com/2.0/"

Add to your urls.py: ... (r'^lastfmauth/', include('lastfmauth.urls')), ...

Usage

Put somewhere in your templates a link to let visitors login using LastFM:

<a href="{% url lastfmauth_login %}">{% trans 'Login using your LastFm account' %}</a>

License

This work is under MIT License.

Something went wrong with that request. Please try again.