Portail Citoyen
This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Benjamin Dauvergne ed6c299cab settings: in default settings ask for read and write scopes when using OAuth2 authentication 2014-03-31 11:34:37 +02:00
help/fr help: spelling fix 2013-10-31 10:08:07 +01:00
portail_citoyen2 settings: in default settings ask for read and write scopes when using OAuth2 authentication 2014-03-31 11:34:37 +02:00
tools fixtures: merge init and authentic2 and update it 2014-01-23 16:56:09 +01:00
.gitignore update gitignore 2014-03-04 22:50:39 +01:00
MANIFEST.in remove all code linked to authentic2, add dependency on djangocms-text-ckeditor 2014-03-04 18:10:00 +01:00
README templates: add way to set a link to the global administration portal 2014-03-26 14:51:48 +01:00
TODO first commit of portail-citoyen2 2014-02-28 16:08:41 +01:00
jenkins.sh remove all code linked to authentic2, add dependency on djangocms-text-ckeditor 2014-03-04 18:10:00 +01:00
load-base-data.sh improve developer start scripts 2014-01-21 17:08:18 +01:00
local_settings.py.example enable portail citoyen to be standalone 2014-01-16 13:35:24 +01:00
portail-citoyen2 remove all code linked to authentic2, add dependency on djangocms-text-ckeditor 2014-03-04 18:10:00 +01:00
requirements.txt use django-allauth for authentication using oauth2 with authentic2 2014-03-07 17:45:48 +01:00
run.sh remove all code linked to authentic2, add dependency on djangocms-text-ckeditor 2014-03-04 18:10:00 +01:00
setup.py setup.py: fix compilation of translation files 2014-03-26 14:49:38 +01:00
start.sh remove all code linked to authentic2, add dependency on djangocms-text-ckeditor 2014-03-04 18:10:00 +01:00

README

How to start
============

To work on portail-citoyen just execute the following lines (command
to launch start with $, other lines are expected output)::

  $ pip install -r ./requirements
  $ cp local_settings.py.example local_settings.py
  $ ./portail-citoyen syncdb --all # you will be asked to create a new admin user
  Syncing...
  Creating tables ...
  [ snipped ]
  Creating table cmsplugin_a2servicelistplugin
  Creating table registration_registrationprofile

  You just installed Django's auth system, which means you don't have any superusers defined.
  Would you like to create one now? (yes/no): yes
  Username: admin
  First name: admin
  Last name: admin
  E-mail address: admin@coin.org
  Password: 
  Password (again): 
  Superuser created successfully.
  Installing custom SQL ...
  Installing indexes ...
  Installed 2 object(s) from 1 fixture(s)

  Synced:
   > django.contrib.auth
   [ snipped ]
   > registration

  Not synced (use migrations):
   - 
   (use ./manage.py migrate to migrate these)
  $ ./portail-citoyen migrate --fake
  [ lots of migrations running ]
  $ ./portail-citoyen runserver
  Validating models...

  0 errors found
  April 12, 2013 - 16:04:50
  Django version 1.5.1, using settings 'compte_agglo_montpellier.settings'
  Development server is running at http://127.0.0.1:8000/
  Quit the server with CONTROL-C.

The application is now usable at http://localhost:8000/

Settings
--------

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
variable::

    export PORTAIL_CITOYEN_TEMPLATE_VARS_MAIN_SITE_URL=https://main-site.com/

Those variables must be prefixed with PORTAIL_CITOYEN_ when set in a
local_settings.py file or in the environment.

Name                             Description
================================ ============================================
TEMPLATE_VARS                    dictionnary of variables passed to templates
PORTAIL_ADMIN_URL                URL of the global administration portal