From 3ff3e2e9849855c3d72ed9ca130d1839d8141b23 Mon Sep 17 00:00:00 2001 From: bkfox Date: Mon, 10 Oct 2016 16:24:21 +0200 Subject: [PATCH] update info --- README.md | 13 +++++++++++++ aircox_cms/models.py | 2 +- aircox_cms/templatetags/aircox_cms.py | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac3ed95..abb1674 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,12 @@ Each application have a `settings.py` that defines extra options that can be red Create the database if needed, and generate the tables: ```bash +# apply dependencies' migrations +./manage.py makemigrations +# create the database ./manage.py migrate --fake-initial +# create a super-user (needed in order to access the administration) +./manage.py createsuperuser ``` You must then configure the programs, schedules and audio streams. Start the @@ -86,6 +91,14 @@ server from this directory: You can access to the django admin interface at `http://127.0.0.1:8000/admin` and to the cms interface at `http://127.0.0.1:8000/cms/`. +From the admin interface: +* create a Station +* create all the Programs and complete their Schedules +* defines Outputs for the streamer (look at Liquidsoap documentation for + more information on how to configure it) + +TODO: cms related documentation here + Once the configuration is okay, you must start the *controllers monitor*, that creates configuration file for the audio streams using the new information and that run the appropriate application (note that you dont need to restart it diff --git a/aircox_cms/models.py b/aircox_cms/models.py index 1b3d497..a4fe605 100644 --- a/aircox_cms/models.py +++ b/aircox_cms/models.py @@ -58,7 +58,7 @@ class WebsiteSettings(BaseSetting): help_text = _('public description of the website; used for referencing'), ) list_page = models.ForeignKey( - 'cms.GenericPage', + 'aircox_cms.GenericPage', verbose_name = _('page for lists'), help_text=_('page used to display the results of a search and other ' 'lists'), diff --git a/aircox_cms/templatetags/aircox_cms.py b/aircox_cms/templatetags/aircox_cms.py index a840269..83da1ec 100644 --- a/aircox_cms/templatetags/aircox_cms.py +++ b/aircox_cms/templatetags/aircox_cms.py @@ -1,7 +1,7 @@ from django import template from django.utils.safestring import mark_safe -from aircox.cms.sections import Section +from aircox_cms.sections import Section register = template.Library()