https://github.com/seedyrom/django-social-spotify-example
A simple Spotify authentication example for Django 2.0 and django-social-app
https://github.com/seedyrom/django-social-spotify-example
Last synced: 8 months ago
JSON representation
A simple Spotify authentication example for Django 2.0 and django-social-app
- Host: GitHub
- URL: https://github.com/seedyrom/django-social-spotify-example
- Owner: SeedyROM
- Created: 2018-03-28T04:36:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:55:23.000Z (over 3 years ago)
- Last Synced: 2023-02-28T07:33:46.234Z (over 3 years ago)
- Language: Python
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# django-social-spotify-example
## Files of interest:
* `spotify_test/settings.py`
* This is where most of the configation has occured, copy this if need be.
* All `TODO: *` blocks are places where the initial configuration has been altered! Search for them with your favorite text editors.
* `spotify_test/urls.py`
* Where we create our OAuth callback urls and some test routes.
* `core/decorators.py`
* The `@spotify_view` decorator is defined here which refreshes an instance of an OAuth token and passes it to the view.
* It also checks if the user is authenticated!
* `info/views.py`
* 2 Views to display how it works.
* Super simple!
## Installation Instructions:
* Create a .env file in the root project directory and include your spotify keys.
* Follow the .env.example template for more information.
* Run `python manage.py migrate`
* Run `python manage.py runserver`