From 074bbbf495bb61bf4eaf76a49a470c8b221200a2 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 21 Oct 2022 08:50:49 +0200 Subject: [PATCH] Tell about addiste managment command in the doc. --- doc/add-conference.rst | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/doc/add-conference.rst b/doc/add-conference.rst index 5edac3a..eebf081 100644 --- a/doc/add-conference.rst +++ b/doc/add-conference.rst @@ -1,26 +1,20 @@ 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/``. +We suppose our conference is hosted at ``cfp.example.org``:: -Create a new ``Site`` object:: + $ ./manage.py addsite cfp.example.org - $ ./manage.py shell - $ from django.contrib.sites.models import Site - $ Site.objects.create(domain='cfp.example.org', name='example') +The slides for this conference will be uploaded in +``/media/example/``, in a ``cfp.example.org`` sub-directory. -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. +The displayed name of the conference is stored in the ``Conference`` +model and can be modified from the web interface. 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.