diff --git a/photo21/settings.py b/photo21/settings.py index 01ab079..2d8b229 100644 --- a/photo21/settings.py +++ b/photo21/settings.py @@ -41,6 +41,7 @@ INSTALLED_APPS = [ 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', + 'photologue_custom', 'photologue', 'sortedm2m', ] diff --git a/photologue_custom/__init__.py b/photologue_custom/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/photologue_custom/admin.py b/photologue_custom/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/photologue_custom/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/photologue_custom/apps.py b/photologue_custom/apps.py new file mode 100644 index 0000000..b08e032 --- /dev/null +++ b/photologue_custom/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class PhotologueCustomConfig(AppConfig): + name = 'photologue_custom' diff --git a/photologue_custom/migrations/__init__.py b/photologue_custom/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/photologue_custom/models.py b/photologue_custom/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/photologue_custom/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/photo21/templates/photologue/gallery_archive.html b/photologue_custom/templates/photologue/gallery_archive.html similarity index 100% rename from photo21/templates/photologue/gallery_archive.html rename to photologue_custom/templates/photologue/gallery_archive.html diff --git a/photo21/templates/photologue/gallery_archive_year.html b/photologue_custom/templates/photologue/gallery_archive_year.html similarity index 100% rename from photo21/templates/photologue/gallery_archive_year.html rename to photologue_custom/templates/photologue/gallery_archive_year.html diff --git a/photo21/templates/photologue/gallery_detail.html b/photologue_custom/templates/photologue/gallery_detail.html similarity index 55% rename from photo21/templates/photologue/gallery_detail.html rename to photologue_custom/templates/photologue/gallery_detail.html index ab7108a..95d1e1d 100644 --- a/photo21/templates/photologue/gallery_detail.html +++ b/photologue_custom/templates/photologue/gallery_detail.html @@ -21,18 +21,15 @@ {% endblock %} {% block content %} -
{% trans "Published" %} {{ gallery.date_added }}
- {% if gallery.description %}{{ gallery.description|safe }}
{% endif %} -{% trans "Published" %} {{ gallery.date_added }}
+{% if gallery.description %}{{ gallery.description|safe }}
{% endif %} +{% trans "Published" %} {{ object.date_added }}
+{{ object.caption|safe }}
{% endif %} + +{% trans "This photo is found in the following galleries" %}:
+