Gestion de prise de rendez-vous
Go to file
Frédéric Péters a947f59041 translation update 2021-10-07 20:42:30 +02:00
chrono translation update 2021-10-07 20:42:30 +02:00
debian uwsgi: enable provisionning spooler (#55092) 2021-08-31 12:31:09 +02:00
tests api: forbid booking of recurring event (#57523) 2021-10-07 11:18:19 +02:00
.git-blame-ignore-revs misc: add pyupgrade files/notes (#55867) 2021-07-27 15:22:37 +02:00
.gitignore misc: drop sqlite support - postgresql only (#56148) 2021-08-13 14:43:41 +02:00
.pre-commit-config.yaml misc: add pyupgrade files/notes (#55867) 2021-07-27 15:22:37 +02:00
COPYING include a copy of the AGPL 2016-02-13 09:17:15 +01:00
Jenkinsfile build: update to use origin/main 2020-12-26 15:21:15 +01:00
MANIFEST.in agendas: add .sql migration files in MANIFEST (#56481) 2021-08-30 15:28:43 +02:00
README misc: drop sqlite support - postgresql only (#56148) 2021-08-13 14:43:41 +02:00
getlasso.sh jenkins: switch to tox for running tests (#15974) 2017-05-23 13:28:45 +02:00
getlasso3.sh python3: fix getlasso3.sh to get module regardless of version 2018-05-13 16:06:01 +02:00
jenkins.sh jenkins: get lasso symlinks in jenkins virtual env 2018-02-15 14:37:39 +01:00
manage.py misc: run manage.py with python3 (#36224) 2019-09-18 14:17:20 +02:00
pylint.rc pylint: disable unsupported-assignment-operation & unsupported-membership-test (#57050) 2021-09-17 15:24:39 +02:00
pylint.sh build: make it fail in case of pylint warnings (#55505) 2021-07-15 14:58:49 +02:00
requirements.txt misc: remove jsonfield requirement (#53289) 2021-04-29 10:17:20 +02:00
setup.py misc: remove django 1.11 compatibility code (#55895) 2021-07-29 14:44:20 +02:00
tox.ini misc: run tox on tests (#56289) 2021-08-20 15:28:42 +02:00

README

Chrono
======

Chrono provides a set of management interfaces and web services to register
for activities and stuff.


Installation
------------

Dependencies can be installed with pip,

 $ pip install -r requirements.txt

It's then required to get the database configured (./manage.py migrate); by
default it will create a postgresqsl DB.

You can then run the Django test server for a quick try (you should refer to
the Django documentation for production deployments).

 $ ./manage.py runserver


Settings
--------

Default settings are loaded from settings.py, they can be overloaded by a
local_settings.py file set in the same directory, or by a file referenced
in the CHRONO_SETTINGS_FILE environment variable.


Code Style
----------

black is used to format the code, using thoses parameters:

    black --target-version py35 --skip-string-normalization --line-length 110

isort is used to format the imports, using those parameters:

    isort --profile black --line-length 110

pyupgrade is used to automatically upgrade syntax, using those parameters:

    pyupgrade --keep-percent-format --py37-plus

There is .pre-commit-config.yaml to use pre-commit to automatically run black,
isort and pyupgrade before commits. (execute `pre-commit install` to install
the git hook.)


Tests
-----

    pip install pytest pytest-django pytest-mock
    DJANGO_SETTINGS_MODULE=welco.settings py.test tests/

License
-------

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.