forked from AFPy/PonyConf
Tell about addiste managment command in the doc.
This commit is contained in:
parent
ff94b6e102
commit
074bbbf495
|
@ -1,26 +1,20 @@
|
||||||
Add a new conference
|
Add a new conference
|
||||||
====================
|
====================
|
||||||
|
|
||||||
We suppose our conference is hosted at ``cfp.example.org``.
|
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 addsite cfp.example.org
|
||||||
|
|
||||||
$ ./manage.py shell
|
The slides for this conference will be uploaded in
|
||||||
$ from django.contrib.sites.models import Site
|
``/media/example/``, in a ``cfp.example.org`` sub-directory.
|
||||||
$ 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``
|
||||||
The displayed name of the conference is stored in the ``Conference`` model.
|
model and can be modified from the web interface.
|
||||||
|
|
||||||
Add the domain in ``ponyconf/local_settings.py``::
|
Add the domain in ``ponyconf/local_settings.py``::
|
||||||
|
|
||||||
ALLOWED_HOSTS = [ 'cfp.example.org' ]
|
ALLOWED_HOSTS = [ 'cfp.example.org' ]
|
||||||
|
|
||||||
Reload the configuration::
|
|
||||||
|
|
||||||
$ touch touch_to_reload
|
|
||||||
|
|
||||||
Make sure you web server is configured to serve this new domain.
|
Make sure you web server is configured to serve this new domain.
|
||||||
|
|
||||||
Configure the e-mails.
|
Configure the e-mails.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user