Application Setup¶
RadioCo can be adapted to your needs, you have three ways to do it. Editing the Global Settings section in the administration page using your browser or manually overriding the settings.py and overriding templates.
Global settings¶
Go to the admin section on your browser and edit the information available.
Global Configuration¶
In this section you can add information related to your site apart of the google analytics id.
Calendar Configuration¶
Settings related to the calendar, things like the first day of the week
Podcast Configuration¶
Settings related with the recorder, change here recording delays and get the Recorder token necessary for the recorder programme to work
Site¶
Change example.com
with the fully qualified domain name associated with the website. Note that some RSS
feed attributes will be incorrect if this value is not properly set up.
Templates¶
There is a empty folder called templates inside the radioco folder. You should override templates here, make sure to keep the relative path.
For example, to override the episode detail page copy the episode_detail.html file from radioco/apps/programmes/templates/programmes/episode_detail.html to radioco/templates/programmes/episode_detail.html
Settings.py¶
These settings are available in settings.py
. Your settings should be in a local_settings.py
file in
the same directory as settings.py
.
Warning
Your changes on settings should be in local_settings.py
to avoid conflicts when update, create that file if
it’s necessary. Be aware that this file is excluded from Git.
USERNAME_RADIOCO_RECORDER¶
This specifies who is the user of the recorder program:
USERNAME_RADIOCO_RECORDER = 'RadioCo_Recorder'
Note
It’s a good idea change this value for security reasons.
LANGUAGE_CODE¶
A string representing the language code for this installation. It provides a fallback language in case the user’s preferred language can’t be determined or is not supported by the website. More info:
LANGUAGE_CODE = 'en'
PROGRAMME_LANGUAGES¶
New in version 1.1
Default: A tuple of the following three languages.
This specifies which languages are available for language selection in your programmes:
gettext_noop = lambda s: s
PROGRAMME_LANGUAGES = (
('es', gettext_noop('Spanish')),
('en', gettext_noop('English')),
('gl', gettext_noop('Galician')),
)
You can see the current list of translated languages by looking in django/conf/global_settings.py (or view the online source).
Disqus¶
New in version 2.0
Default: Disabled by default.
Add comments to your site with Disqus. Create your account and get your API key.:
DISQUS_ENABLE = True
DISQUS_API_KEY = 'YOUR_API_KEY'
DISQUS_WEBSITE_SHORTNAME = 'YOUR_SHORTNAME'