server/src/README.md
author durandn
Mon, 11 Apr 2016 16:47:09 +0200
changeset 63 6bfac7c633a0
parent 6 39cecdd5260e
child 90 00c9bb0f6f37
permissions -rw-r--r--
Added permission management into metaeducation (instead of it being in renkanmanager) + more logging around auth code + corrected client.py for oauth server so it sends the correct content-type when using client credentials

# METAEDUCATION DJANGO APP

# INSTALLATION

	$ mkvirtualenv mtdc_renkan_env
	$ pip install -r requirement.txt

# CONFIGURATION

Configure dev.py.tmpl according to your environment and rename it dev.py

# TEST AND DEV

	$ Python manage.py runserver 0.0.0.0:8001
	
It is important to run the server on localhost:8001 if you are going to test with the flask OAuth server in the /oauth/ folder

Then we need to configure the Django-Allauth Social App. 
You will need a Client ID and Client Secret registered by the OAuth server that you will interact with.

For this you need to log into the admin panel (after creating an admin superuser), and add an entry in the "Social Application" table. 
You must assign a site to Renkan Social Application, which will be the base URL of Renkan (on test and dev, 127.0.0.1:8001)