The server can be run locally but you will need to register your own Spotify app and set the credentials. The procedure is as follows:
-
Create an application on Spotify's Developer Site.
-
Add the redirect uri http://127.0.0.1:8000/accounts/spotify/login/callback/ on Spotify site(for development)
-
Create a
.env
file in the root of the project with the following variables;SECRET_KEY
CLIENT_ID
CLIENT_SECRET
REDIRECT_URI
POSTGRES_NAME
POSTGRES_PASSWORD
POSTGRES_PORT
POSTGRES_DB
POSTGRES_HOST
REMIXIFY
SITE_ID
ALLOWED_HOSTS
REDIS_URL
CELERY_RESULT_BACKEND
CELERY_CACHE_BACKEND
Example can be found in .env_local.txt
in the root directory:
- Run
docker-compose up
in root directory to spin up necessary services and dependencies.
Social Matching App Query Does Not Exist
This results from improper choice of SITE_ID
environment variable. To find the correct site ID:
Site.objects.values_list('id', flat=True)
to list the IDs.