How to start
To work on portail-citoyen2 just execute the following lines (command
to launch start with $, other lines are expected output)::
The application is now usable at http://localhost:8000/
On subsequent runs, do:
Using with authentic2 as a source of social accounts
Install authentic2 and authentic2-idp-oauth2, then set the AUTHENTIC2_URL
environment variable to the URL of the homepage of authentic2.
On Authentic2 you must create an A2Client object on
http://authentic/admin/authentic2_idp_oauth2/a2client/add/ with the following settings:
Redirect URL: http://localhost:8000/accounts/authentic2/login/callback/
Client type: confidential
authentic2 will generate a client id and a client secret for you.
On portail-citoyen2 you must create a SocialApp object using the client id and
client secret your generated in authentic2 on:
Settings can be passed using a local_settings.py file or the shell
environment. Dictionaries are passed by flattening the variable name and the
dictionnary key separated by an underscore character. For example to passe the
variable MAIN_SITE_URL in templates, define the following environment
Those variables must be prefixed with PORTAIL_CITOYEN_ when set in a
local_settings.py file or in the environment.
TEMPLATE_VARS dictionnary of variables passed to templates
PORTAIL_ADMIN_URL URL of the global administration portal