From c5af0374358d4b80b1814fe3a4cc224fdb3217ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Fri, 1 Dec 2017 23:52:16 +0100 Subject: [PATCH] doc: add new conference guide (WIP) --- doc/add-conference.rst | 28 ++++++++++++++++++++++++++++ doc/index.rst | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 doc/add-conference.rst diff --git a/doc/add-conference.rst b/doc/add-conference.rst new file mode 100644 index 0000000..5edac3a --- /dev/null +++ b/doc/add-conference.rst @@ -0,0 +1,28 @@ +Add a new conference +==================== + +We suppose our conference is hosted at ``cfp.example.org``. +The slides for this conference will be uploaded in ``/media/example/``. + +Create a new ``Site`` object:: + + $ ./manage.py shell + $ from django.contrib.sites.models import Site + $ Site.objects.create(domain='cfp.example.org', name='example') + +The ``name`` field is the sub-directory in the media directory where upload slides. +The displayed name of the conference is stored in the ``Conference`` model. + +Add the domain in ``ponyconf/local_settings.py``:: + + ALLOWED_HOSTS = [ 'cfp.example.org' ] + +Reload the configuration:: + + $ touch touch_to_reload + +Make sure you web server is configured to serve this new domain. + +Configure the e-mails. + +Go to ``https://cfp.example.org``, log-in and configure your conference. diff --git a/doc/index.rst b/doc/index.rst index e461a0a..45b8869 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -11,11 +11,11 @@ Welcome to PonyConf's documentation! :caption: Contents: Installation guide + Add a new conference Upgrade guide User guide - Indices and tables ==================