Commit 8db72ab3 authored by Marten Kenbeek's avatar Marten Kenbeek
Browse files

Added .env production example.

parent e37b95ef
DATABASE_URL=postgres:///dashit
DJANGO_SECRET_KEY=
DJANGO_STATIC_ROOT=/var/www/html/static/
DJANGO_MEDIA_ROOT=/var/www/html/media/
FRONTEND_URL=http://dashit.win.tue.nl/#/
......@@ -37,5 +37,6 @@ allow_prereleases = true
[scripts]
server = "python manage.py runserver"
migrate = "python manage.py migrate"
collectstatic = "python manage.py collectstatic"
token = "python manage.py shell -c \"from oauth2_provider.models import AccessToken; print(AccessToken.objects.filter(application__name='Coursera API').order_by('expires').last().token)\""
client_id = "python manage.py shell -c \"from oauth2_provider.models import Application; print(Application.objects.get(name='DASH-IT Frontend').client_id)\""
......@@ -11,6 +11,7 @@ def create_default_application(apps, schema_editor):
authorization_grant_type="password",
skip_authorization=True,
name="DASH-IT Frontend",
client_id="n6BsBMOa8qPB66kWja2Zmi9SVRm6iuJZB2eywIoG",
client_secret="",
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment