Tell about addiste managment command in the doc.

This commit is contained in:
Julien Palard 2022-10-21 08:50:49 +02:00
parent ff94b6e102
commit 074bbbf495
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 6 additions and 12 deletions

View File

@ -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.