Native Android Application
+ +Podcast Applications
++ You can also subscribe to each AudioBook individually as a podcast feed using a podcast client. + Copy and paste the link for the associated feed into a podcast client. +
+diff --git a/about/__init__.py b/about/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/about/admin.py b/about/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/about/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/about/apps.py b/about/apps.py new file mode 100644 index 0000000..d0190e6 --- /dev/null +++ b/about/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class AboutConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'about' diff --git a/about/migrations/__init__.py b/about/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/about/models.py b/about/models.py new file mode 100644 index 0000000..0b4331b --- /dev/null +++ b/about/models.py @@ -0,0 +1,3 @@ +# from django.db import models + +# Create your models here. diff --git a/about/templates/about/apps.html b/about/templates/about/apps.html new file mode 100644 index 0000000..fd5baae --- /dev/null +++ b/about/templates/about/apps.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} + +{% block content %} + {% include "base_navbar.html" %} + {% include "base_heading.html" %} +
+ You can also subscribe to each AudioBook individually as a podcast feed using a podcast client. + Copy and paste the link for the associated feed into a podcast client. +
+{{ i.created_on }}
license/attribution diff --git a/audio/templates/audio/index.html b/audio/templates/audio/index.html index 843f971..60c7555 100644 --- a/audio/templates/audio/index.html +++ b/audio/templates/audio/index.html @@ -47,7 +47,8 @@ {% else %} - + + {% endif %} license/attribution diff --git a/audio/views.py b/audio/views.py index 1af291e..4eeeed7 100644 --- a/audio/views.py +++ b/audio/views.py @@ -34,8 +34,9 @@ def episode(request, pk, slug): return render( request, 'audio/index.html', { - 'episodes': (episode, ), 'IMAGES_URL': IMAGES_URL, 'is_episode': True, - 'MP3_URL': MP3_URL, 'title': episode.title, 'heading': episode.title, + 'episodes': (episode, ), 'IMAGES_URL': IMAGES_URL, + 'is_episode': True, 'MP3_URL': MP3_URL, + 'title': episode.title, 'heading': episode.title, 'ogtitle': episode.title, 'ogurl': og_url, 'ogmp3': episode.mp3, 'feed': episode.feed, 'twitter_image': episode.image, }) @@ -53,9 +54,10 @@ def feed_list_api(request): feeds = Feed.objects.all().order_by('created_on') result = [] for feed in feeds: + x = reverse('audio:rss', kwargs={'slug': feed.slug}) result.append({ 'title': feed.title, 'read_by': feed.user.username, - 'rss_feed': f'{get_current_site(request)}' + reverse('audio:rss', kwargs={'slug': feed.slug}) + 'rss_feed': f'{get_current_site(request)}' + x }) return JsonResponse(result, safe=False) diff --git a/tp/settings.py b/tp/settings.py index 1126674..701a48a 100644 --- a/tp/settings.py +++ b/tp/settings.py @@ -33,6 +33,7 @@ INSTALLED_APPS = [ 'crispy_forms', 'audio.apps.AudioConfig', 'accounts.apps.AccountsConfig', + 'about.apps.AboutConfig', 'storages', ] diff --git a/tp/templates/base.html b/tp/templates/base.html index a4ae3d0..4cd38e8 100644 --- a/tp/templates/base.html +++ b/tp/templates/base.html @@ -16,6 +16,7 @@ {% url 'audio:new_feed' as new_feed_url %} {% url 'audio:feeds' as feeds_url %} {% url 'accounts:register' as register_url %} + {% url 'about:apps' as apps_url %} {% if request.path == home_url %} Home @@ -37,6 +38,8 @@ Feeds {% elif request.path == register_url %} Register + {% elif request.path == apps_url %} + Applications {% endif %} {{ title }} diff --git a/tp/templates/base_heading.html b/tp/templates/base_heading.html index 8f7e13f..215d637 100644 --- a/tp/templates/base_heading.html +++ b/tp/templates/base_heading.html @@ -1,18 +1,9 @@