Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: iago1460/django-radio
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.2.1
Choose a base ref
...
head repository: iago1460/django-radio
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jul 12, 2017

  1. Fixing bug: Inline objects are not being deleted

    Iago Veloso committed Jul 12, 2017
    Copy the full SHA
    c112100 View commit details

Commits on Jul 13, 2017

  1. Removing switch user feature

    Iago Veloso committed Jul 13, 2017
    Copy the full SHA
    fd2dff4 View commit details
  2. Tweaking fullcalendar css

    Iago Veloso committed Jul 13, 2017
    Copy the full SHA
    129f5f2 View commit details
  3. Copy the full SHA
    bfe3e08 View commit details

Commits on Apr 4, 2018

  1. Simplifying setup

    Iago Veloso committed Apr 4, 2018
    Copy the full SHA
    92e9c38 View commit details

Commits on Apr 21, 2018

  1. Moving docker setup

    Iago Veloso committed Apr 21, 2018
    Copy the full SHA
    430669d View commit details
  2. Removing need for invoke

    Iago Veloso committed Apr 21, 2018
    Copy the full SHA
    a4369e4 View commit details

Commits on Oct 28, 2018

  1. Slim setup & python 2to3 & upgrade requirements

    Iago Veloso committed Oct 28, 2018
    Copy the full SHA
    0e37809 View commit details
  2. Small fix

    Iago Veloso committed Oct 28, 2018
    Copy the full SHA
    3ca34d3 View commit details
  3. Fix docs

    Iago Veloso committed Oct 28, 2018
    Copy the full SHA
    9838a60 View commit details

Commits on Mar 6, 2020

  1. Upgrading to Django 1.11.29 / grappelli 2.10.4 among others.

    Using python:3.6.10-buster as docker image
    Iago Veloso committed Mar 6, 2020
    Copy the full SHA
    f2113f1 View commit details
  2. Copy the full SHA
    c14cd2c View commit details

Commits on Oct 6, 2024

  1. Update requirements.txt

    We need to change the protocol to require the django-recurrence repository so that the project install works correctly.
    
    
    Reference: https://github.blog/security/application-security/improving-git-protocol-security-github/
    Chrysweel authored Oct 6, 2024
    Copy the full SHA
    e035a69 View commit details

Commits on Oct 23, 2024

  1. Merge pull request #62 from Chrysweel/patch-1

    Update requirements.txt
    iago1460 authored Oct 23, 2024
    Copy the full SHA
    5773054 View commit details

Commits on Nov 30, 2024

  1. Copy the full SHA
    00c9b3c View commit details
  2. Copy the full SHA
    72f4422 View commit details

Commits on Dec 3, 2024

  1. Merge pull request #72 from delthia/add-color-badges-to-calendar

    Add badges with color code to calendar, along with translations
    iago1460 authored Dec 3, 2024
    Copy the full SHA
    90c8273 View commit details
  2. Merge pull request #80 from Chrysweel/fix_launch

    Add directory existence check in launch_dev_server.sh
    iago1460 authored Dec 3, 2024
    Copy the full SHA
    b0e1be9 View commit details
  3. Añadir campos al feed RSS y arreglar duración (#76)

    Añadir campos al feed RSS y arreglar duración
    delthia authored Dec 3, 2024
    Copy the full SHA
    e69318f View commit details
  4. Improve index and add "site_color" config variable (#75)

    * Show latest programmes, not random
    * Add site_color for index and base page
    peprolinbot authored Dec 3, 2024
    Copy the full SHA
    15ef7db View commit details

Commits on Dec 6, 2024

  1. Copy the full SHA
    96c9b74 View commit details
Showing with 1,398 additions and 1,970 deletions.
  1. +1 −1 .bowerrc
  2. +4 −1 .coveragerc
  3. +13 −0 .dockerignore
  4. +5 −7 .gitignore
  5. +10 −0 .sample.env
  6. +5 −15 .travis.yml
  7. +0 −1 Procfile
  8. +4 −3 README.rst
  9. +16 −0 docker-compose.override.yaml
  10. +31 −0 docker-compose.staging.yaml
  11. +36 −0 docker-compose.yaml
  12. +28 −0 docker/django.Dockerfile
  13. +2 −2 {radioco/configs/staging → }/docker/nginx.conf
  14. +15 −0 docker/scripts/launch_dev_server.sh
  15. +9 −0 docker/scripts/launch_server.sh
  16. +27 −0 docker/scripts/wait_for.sh
  17. +4 −4 docs/source/conf.py
  18. +13 −26 docs/source/installation/install_web_app.rst
  19. +0 −7 docs/source/source_code/fab_utils.rst
  20. +0 −7 docs/source/source_code/fabfile.rst
  21. +2 −2 docs/source/source_code/modules.rst
  22. +2 −2 docs/source/source_code/radioco.apps.api.rst
  23. +12 −12 docs/source/source_code/radioco.apps.api.tests.rst
  24. +0 −38 docs/source/source_code/radioco.apps.dashboard.rst
  25. +18 −18 docs/source/source_code/radioco.apps.global_settings.migrations.rst
  26. +6 −6 docs/source/source_code/radioco.apps.global_settings.rst
  27. +4 −4 docs/source/source_code/radioco.apps.global_settings.templatetags.rst
  28. +22 −22 docs/source/source_code/radioco.apps.programmes.migrations.rst
  29. +30 −0 docs/source/source_code/radioco.apps.programmes.tests.rst
  30. +0 −22 docs/source/source_code/radioco.apps.radio.management.commands.rst
  31. +0 −17 docs/source/source_code/radioco.apps.radio.management.rst
  32. +0 −69 docs/source/source_code/radioco.apps.radio.rst
  33. +2 −2 docs/source/source_code/radioco.apps.radioco.management.commands.rst
  34. +2 −2 docs/source/source_code/radioco.apps.radioco.migrations.rst
  35. +6 −6 docs/source/source_code/radioco.apps.radioco.rst
  36. +10 −10 docs/source/source_code/radioco.apps.schedules.migrations.rst
  37. +6 −6 docs/source/source_code/radioco.apps.schedules.tests.rst
  38. +8 −8 docs/source/source_code/radioco.apps.users.migrations.rst
  39. +10 −10 docs/source/source_code/radioco.configs.base.rst
  40. +0 −30 docs/source/source_code/radioco.configs.development.rst
  41. +0 −38 docs/source/source_code/radioco.configs.heroku.rst
  42. +0 −22 docs/source/source_code/radioco.configs.openshift.rst
  43. +0 −3 docs/source/source_code/radioco.configs.rst
  44. +0 −38 docs/source/source_code/radioco.configs.staging.rst
  45. +0 −7 docs/source/source_code/setup.rst
  46. +0 −32 docs/source/source_code/tasks.rst
  47. +39 −0 docs/source/upgrade/3.2.2.rst
  48. +39 −0 docs/source/upgrade/4.0.rst
  49. +35 −0 docs/source/upgrade/5.0.rst
  50. +38 −0 docs/source/upgrade/6.0.rst
  51. +4 −0 docs/source/upgrade/index.rst
  52. +0 −2 manage
  53. 0 node_modules/.gitkeep
  54. +1 −1 radioco/__init__.py
  55. +1 −1 radioco/apps/api/serializers.py
  56. +8 −8 radioco/apps/api/tests/test_api.py
  57. +12 −12 radioco/apps/api/tests/test_fullcalendar.py
  58. +8 −8 radioco/apps/api/tests/test_programmes.py
  59. +31 −31 radioco/apps/api/tests/test_recorder.py
  60. +6 −7 radioco/apps/api/tests/test_schedules.py
  61. +5 −5 radioco/apps/api/views.py
  62. +3 −3 radioco/apps/global_settings/admin.py
  63. +3 −3 radioco/apps/global_settings/migrations/0001_initial.py
  64. +1 −1 radioco/apps/global_settings/migrations/0002_remove_calendarconfiguration_display_next_weeks.py
  65. +2 −2 radioco/apps/global_settings/migrations/0003_siteconfiguration_footer.py
  66. +4 −4 radioco/apps/global_settings/migrations/0004_auto_20150606_1335.py
  67. +2 −2 radioco/apps/global_settings/migrations/0005_auto_20150606_1415.py
  68. +2 −2 radioco/apps/global_settings/migrations/0006_auto_20160116_1509.py
  69. +1 −1 radioco/apps/global_settings/migrations/0007__v3_0__calendarconfiguration_tweaks.py
  70. +4 −4 radioco/apps/global_settings/migrations/0008__v3_0__radiocomconfiguration.py
  71. +20 −0 radioco/apps/global_settings/migrations/0009_siteconfiguration_site_color.py
  72. +28 −15 radioco/apps/global_settings/models.py
  73. +14 −3 radioco/apps/programmes/admin.py
  74. +6 −1 radioco/apps/programmes/feeds.py
  75. +6 −6 radioco/apps/programmes/migrations/0001_initial.py
  76. +2 −2 radioco/apps/programmes/migrations/0002_change_language_choices.py
  77. +2 −2 radioco/apps/programmes/migrations/0003_change_textfield_to_richtextfield.py
  78. +1 −1 radioco/apps/programmes/migrations/0004_change_photo_url.py
  79. +1 −1 radioco/apps/programmes/migrations/0005_auto_20150531_1734.py
  80. +2 −2 radioco/apps/programmes/migrations/0006_auto_20160104_2029.py
  81. +2 −2 radioco/apps/programmes/migrations/0007_change_default_image.py
  82. +2 −2 radioco/apps/programmes/migrations/0008_auto_20160116_1509.py
  83. +1 −1 radioco/apps/programmes/migrations/0009__v3_0__small_tweaks.py
  84. +1 −1 radioco/apps/programmes/migrations/0010__v3_2__convert_role.py
  85. +1 −1 radioco/apps/programmes/migrations/0011__v3_2__ensure_one_user_role.py
  86. +20 −0 radioco/apps/programmes/migrations/0012__v5_0__podcast_podcast_file.py
  87. +26 −18 radioco/apps/programmes/models.py
  88. +5 −5 radioco/apps/programmes/tests/test_feed.py
  89. +2 −2 radioco/apps/programmes/tests/test_models.py
  90. +2 −1 radioco/apps/programmes/utils.py
  91. +1 −1 radioco/apps/radioco/migrations/0001__v3_0__mysql_timezone.py
  92. +14 −1 radioco/apps/radioco/static/radioco/css/calendar.css
  93. +2 −2 radioco/apps/radioco/templates/radioco/base.html
  94. +118 −113 radioco/apps/radioco/templates/radioco/index.html
  95. +4 −2 radioco/apps/radioco/test_utils.py
  96. +2 −2 radioco/apps/radioco/tests/tests.py
  97. +7 −8 radioco/apps/radioco/tz_utils.py
  98. +16 −6 radioco/apps/radioco/views.py
  99. +2 −1 radioco/apps/schedules/admin.py
  100. +2 −2 radioco/apps/schedules/migrations/0001_initial.py
  101. +1 −1 radioco/apps/schedules/migrations/0002__v3_0__renaming_calendar_model.py
  102. +1 −1 radioco/apps/schedules/migrations/0003__v3_0__create_excludeddates_model.py
  103. +1 −1 radioco/apps/schedules/migrations/0004__v3_0__adding_rrules.py
  104. +4 −4 radioco/apps/schedules/migrations/0005__v3_0__migrating_schedules_to_unique_calendar.py
  105. +20 −10 radioco/apps/schedules/models.py
  106. +18 −7 radioco/apps/schedules/templates/admin/schedules/calendar.html
  107. +77 −65 radioco/apps/schedules/templates/schedules/schedules_list.html
  108. +16 −16 radioco/apps/schedules/tests/test_recurrences.py
  109. +36 −41 radioco/apps/schedules/tests/test_schedules.py
  110. +5 −5 radioco/apps/schedules/tests/test_timezone.py
  111. +1 −1 radioco/apps/schedules/urls.py
  112. +2 −2 radioco/apps/schedules/utils.py
  113. +2 −2 radioco/apps/schedules/views.py
  114. +3 −3 radioco/apps/users/admin.py
  115. +2 −2 radioco/apps/users/migrations/0001_initial.py
  116. +1 −1 radioco/apps/users/migrations/0002_change_textfield_to_richtextfield.py
  117. +2 −2 radioco/apps/users/migrations/0003_auto_20160104_2029.py
  118. +1 −1 radioco/apps/users/migrations/0004__v3_0__ckeditor_upload_field.py
  119. +1 −1 radioco/apps/users/models.py
  120. +0 −1 radioco/configs/__init__.py
  121. +0 −12 radioco/configs/base/.env
  122. +0 −21 radioco/configs/base/docker-compose.yaml
  123. +0 −22 radioco/configs/base/docker/django.Dockerfile
  124. +0 −2 radioco/configs/base/docker/scripts/launch_server.sh
  125. +0 −3 radioco/configs/base/docker/scripts/setup.sh
  126. +0 −11 radioco/configs/base/manage.py
  127. +0 −12 radioco/configs/base/requirements.txt
  128. +47 −15 radioco/configs/base/settings.py
  129. +8 −5 radioco/configs/base/urls.py
  130. +1 −1 radioco/configs/{staging → base}/wsgi.py
  131. +0 −25 radioco/configs/development/.env
  132. 0 radioco/configs/development/__init__.py
  133. +0 −48 radioco/configs/development/docker-compose.yaml
  134. +0 −33 radioco/configs/development/docker/django.Dockerfile
  135. +0 −5 radioco/configs/development/docker/scripts/launch_sshd.sh
  136. +0 −2 radioco/configs/development/docker/scripts/runserver.sh
  137. +0 −13 radioco/configs/development/docker/scripts/setup.sh
  138. +0 −11 radioco/configs/development/manage.py
  139. +0 −13 radioco/configs/development/requirements.txt
  140. +0 −65 radioco/configs/development/settings.py
  141. 0 radioco/configs/heroku/__init__.py
  142. +0 −11 radioco/configs/heroku/manage.py
  143. +0 −38 radioco/configs/heroku/settings.py
  144. +0 −25 radioco/configs/heroku/wsgi.py
  145. +0 −26 radioco/configs/staging/.env
  146. 0 radioco/configs/staging/__init__.py
  147. +0 −60 radioco/configs/staging/docker-compose.yaml
  148. +0 −23 radioco/configs/staging/docker/django.Dockerfile
  149. +0 −12 radioco/configs/staging/docker/scripts/setup.sh
  150. +0 −2 radioco/configs/staging/docker/scripts/wait_for_postgres_server.sh
  151. +0 −11 radioco/configs/staging/manage.py
  152. +0 −4 radioco/configs/staging/requirements.txt
  153. +0 −54 radioco/configs/staging/settings.py
  154. BIN radioco/locale/es/LC_MESSAGES/django.mo
  155. +35 −25 radioco/locale/es/LC_MESSAGES/django.po
  156. BIN radioco/locale/gl/LC_MESSAGES/django.mo
  157. +35 −25 radioco/locale/gl/LC_MESSAGES/django.po
  158. BIN radioco/locale/tr/LC_MESSAGES/django.mo
  159. +33 −24 radioco/locale/tr/LC_MESSAGES/django.po
  160. +26 −3 requirements.txt
  161. +91 −0 run
  162. +1 −6 tasks/__init__.py
  163. +0 −191 tasks/docker.py
  164. +0 −23 tasks/heroku.py
  165. +3 −3 tasks/locale.py
  166. +0 −28 tasks/radioco.py
  167. +0 −89 tasks/utils.py
2 changes: 1 addition & 1 deletion .bowerrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"allow_root": true,
"directory" : "radioco/apps/radioco/static/bower"
"directory" : "tmp_bower"
}
5 changes: 4 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[paths]
source =
radioco/
/radioco/radioco/
/radioco/radioco/
[run]
source =
radioco
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**/node_modules
**/__pycache__
**/.cache
test_reports/
venv/
env/
**/.pyc
**/.kdbx
**/.ipynb
**/db.sqlite3
**/.vscode
radioco/static/
radioco/apps/radioco/static/bower/
12 changes: 5 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# django collectstatic files
radioco/media/_versions/
radioco/components/
radioco/static/
/radioco/media/_versions/
/radioco/components/
/radioco/static/
/radioco/media/

# source locale
radioco/locale/en/*
@@ -52,6 +53,7 @@ pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
reports/
htmlcov/
nosetests.xml
coverage.xml
@@ -65,7 +67,3 @@ docs/_build/

# Files ending in ~
*~

# Docker tmp files (just in case)
id_rsa.pub
tmp_requirements.txt
10 changes: 10 additions & 0 deletions .sample.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
LANG=C.UTF-8
COMPOSE_PROJECT_NAME=radioco

SECRET_KEY=REPLACE_ME
DJANGO_LOG_LEVEL=ERROR
TIME_ZONE=Europe/Madrid
DISQUS_API_KEY=
DISQUS_WEBSITE_SHORTNAME=

PORT_BACKEND=8000
20 changes: 5 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -6,29 +6,19 @@ services:
- docker

python:
- "2.7"
- "3.6"

branches:
only:
- master
- develop

install:
- pip install -r radioco/configs/base/requirements.txt
- pip install coverage coveralls invoke
- pip install coveralls

script:
- COVERAGE_FILE=.coverage.base.xml coverage run --source="radioco" manage.py test
- inv --echo docker.setup -e base
- inv --echo docker.run_coverage -e base
- inv --echo docker.destroy -e base
- inv --echo docker.setup -e staging
- inv --echo docker.run_coverage -e staging
- inv --echo docker.destroy -e staging
- PORT_POSTGRES=9999 inv --echo docker.setup -e development
- inv --echo docker.run_coverage -e development
- inv --echo docker.destroy -e development
- coverage combine
- cp -v .sample.env .env
- docker-compose run -e COVERAGE_FILE=reports/coverage.xml --rm --volume "$(pwd)/reports:/radioco/reports" django coverage run manage.py test radioco

after_success:
coveralls
cd reports && coveralls
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -37,10 +37,11 @@ Install `Docker engine <https://docs.docker.com/engine/installation/>`_.

Open a terminal and introduce the following commands::

pip install invoke==0.14.0
git clone https://github.com/iago1460/django-radio
cd django-radio
inv quickstart
chmod +x ./run
./run start_dev
./run manage create_example_data


Now that the server’s running (don't close the terminal), visit http://127.0.0.1:8000/
@@ -51,7 +52,7 @@ To access administrator site visit http://127.0.0.1:8000/admin/ using "admin/123
Documentation
*************

Please head over to our `documentation <http://django-radio.readthedocs.org/>`_ for all
Please head over to our `documentation <https://django-radio.readthedocs.io/>`_ for all
the details on how to install, extend and use RadioCo.


16 changes: 16 additions & 0 deletions docker-compose.override.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.4'
services:


# Backend server -------------------------------------------------------------

django:
environment:
- DEBUG=True
volumes:
- ./:/radioco/
ports:
- ${PORT_BACKEND}:8000
command: /bin/sh -c "cd /radioco && ./docker/scripts/launch_dev_server.sh"
#stdin_open: true
#tty: true # ERROR: An HTTP request took too long to complete. https://github.com/docker/compose/issues/3633
31 changes: 31 additions & 0 deletions docker-compose.staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: '3.4'
services:


# Backend server -------------------------------------------------------------

django:
environment:
- DEBUG=False
volumes:
- ./radioco/static/:/radioco/radioco/static/
command: /bin/sh -c "cd /radioco && ./docker/scripts/launch_server.sh"

nginx:
image: nginx:1.13.1-alpine
restart: always
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf:ro
- ./radioco/static:/static:ro
- ./radioco/media:/media:ro
ports:
- ${PORT_BACKEND}:8000
env_file:
- .env
command: /bin/sh -c "nginx -g 'daemon off;'"
links:
- django

memcached:
image: memcached:1.4.37-alpine
command: memcached -m 512m
36 changes: 36 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: '3.4'
services:


# Backend server -------------------------------------------------------------

django:
build:
context: .
dockerfile: docker/django.Dockerfile
environment:
- SECRET_KEY=$SECRET_KEY
- DJANGO_LOG_LEVEL=$DJANGO_LOG_LEVEL
- TIME_ZONE=$TIME_ZONE
- DISQUS_API_KEY=$DISQUS_API_KEY
- DISQUS_WEBSITE_SHORTNAME=$DISQUS_WEBSITE_SHORTNAME
volumes:
- ./radioco/media/:/radioco/radioco/media/
links:
- postgres

postgres:
image: postgres:11.0
restart: always
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
volumes:
- database_data:/var/lib/postgresql/data

# Volumes ---------------------------------------------------------------------

volumes:
database_data:
name: database_data
28 changes: 28 additions & 0 deletions docker/django.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM python:3.6.10-buster

RUN apt-get update && apt-get install -yq --fix-missing --no-install-recommends \
python3-setuptools \
python3-pip \
git-core \
netcat \
nodejs \
npm \
gettext \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# Installing libraries

RUN npm install -g bower

# Install pip dependencies
RUN pip3 install --upgrade pip setuptools virtualenv

COPY .bowerrc bower.json /
RUN bower install

COPY requirements.txt /
RUN pip3 install -r requirements.txt

COPY ./ /radioco/

WORKDIR /radioco/
Original file line number Diff line number Diff line change
@@ -35,10 +35,10 @@ http {
uwsgi_cache_path /tmp/cache2 levels=1:2 keys_zone=api:10m max_size=1g inactive=24h use_temp_path=off;

upstream django {
server staging_django:${PORT_BACKEND};
server django:8000;
}
server {
listen ${PORT_NGINX};
listen 8000;
charset utf-8;

include /etc/nginx/uwsgi_params;
15 changes: 15 additions & 0 deletions docker/scripts/launch_dev_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash -x

script_full_path=$(dirname "$0")
$script_full_path/wait_for.sh postgres 5432

TARGET_DIR="/radioco/radioco/apps/radioco/static/bower"

if [ -d "$TARGET_DIR" ]; then
rm -rf "$TARGET_DIR"
fi

mv -f /tmp_bower "$TARGET_DIR"

python3 manage.py migrate
python3 manage.py runserver 0.0.0.0:8000
9 changes: 9 additions & 0 deletions docker/scripts/launch_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -x

script_full_path=$(dirname "$0")
$script_full_path/wait_for.sh postgres 5432

mv -f /tmp_bower /radioco/radioco/apps/radioco/static/bower
python3 manage.py migrate
python3 manage.py collectstatic --noinput
uwsgi --socket 0.0.0.0:8000 --module radioco.configs.base.wsgi --master --processes 2 --threads 1
27 changes: 27 additions & 0 deletions docker/scripts/wait_for.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

HOST=$1
PORT=$2

if [[ "$HOST" == "" ]]; then
echo "wait_for: Missing host"
exit 1
fi

if [[ "$PORT" == "" ]]; then
echo "wait_for: Missing port"
exit 1
fi

counter=0
echo -n "Waiting for $HOST:$PORT..."
while ! nc -z $HOST $PORT > /dev/null; do
echo -n "."
sleep 1
((counter+=1))
if (( counter > 60 )); then
echo " Failed"
exit 1
fi
done
echo " Ready"
8 changes: 4 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -23,13 +23,13 @@
path = os.path.split(os.path.dirname(__file__))[0]
path = os.path.split(path)[0]
sys.path.insert(0, path)
import django
# import django
import radioco

# sys.path.insert(0, '{0}/radioco'.format(path))

os.environ['DJANGO_SETTINGS_MODULE'] = 'radioco.configs.base.settings'
django.setup()
# os.environ['DJANGO_SETTINGS_MODULE'] = 'radioco.configs.base.settings'
# django.setup()

# -- General configuration ------------------------------------------------

@@ -40,7 +40,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
# 'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.viewcode',
]
Loading