From 60e2fdd2c7170db5e2e52f92404a1a04348c1d39 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 21 Jun 2016 23:32:56 +0200 Subject: [PATCH] mv templates, add project app, add top header placeholer --- app/project/__init__.py | 0 app/project/admin.py | 3 +++ app/project/apps.py | 7 +++++++ app/project/migrations/__init__.py | 0 app/project/models.py | 5 +++++ app/project/tests.py | 3 +++ app/project/views.py | 3 +++ app/settings.py | 6 +++--- .../templates/festival/artist_detail.html | 0 .../templates/festival/artist_list.html | 0 .../templates/festival/inc/artist_card.html | 0 .../templates/festival/inc/audio_playlist.html | 0 .../templates/festival/inc/video_card.html | 0 .../templates/festival/video_detail.html | 0 .../templates/festival/video_list.html | 0 15 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 app/project/__init__.py create mode 100644 app/project/admin.py create mode 100644 app/project/apps.py create mode 100644 app/project/migrations/__init__.py create mode 100644 app/project/models.py create mode 100644 app/project/tests.py create mode 100644 app/project/views.py rename app/{festival => templates}/templates/festival/artist_detail.html (100%) rename app/{festival => templates}/templates/festival/artist_list.html (100%) rename app/{festival => templates}/templates/festival/inc/artist_card.html (100%) rename app/{festival => templates}/templates/festival/inc/audio_playlist.html (100%) rename app/{festival => templates}/templates/festival/inc/video_card.html (100%) rename app/{festival => templates}/templates/festival/video_detail.html (100%) rename app/{festival => templates}/templates/festival/video_list.html (100%) diff --git a/app/project/__init__.py b/app/project/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/app/project/admin.py b/app/project/admin.py new file mode 100644 index 00000000..8c38f3f3 --- /dev/null +++ b/app/project/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/app/project/apps.py b/app/project/apps.py new file mode 100644 index 00000000..6b7b7998 --- /dev/null +++ b/app/project/apps.py @@ -0,0 +1,7 @@ +from __future__ import unicode_literals + +from django.apps import AppConfig + + +class ProjectConfig(AppConfig): + name = 'project' diff --git a/app/project/migrations/__init__.py b/app/project/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/app/project/models.py b/app/project/models.py new file mode 100644 index 00000000..bd4b2abe --- /dev/null +++ b/app/project/models.py @@ -0,0 +1,5 @@ +from __future__ import unicode_literals + +from django.db import models + +# Create your models here. diff --git a/app/project/tests.py b/app/project/tests.py new file mode 100644 index 00000000..7ce503c2 --- /dev/null +++ b/app/project/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/app/project/views.py b/app/project/views.py new file mode 100644 index 00000000..91ea44a2 --- /dev/null +++ b/app/project/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/app/settings.py b/app/settings.py index 3cc9822b..4460d6a8 100644 --- a/app/settings.py +++ b/app/settings.py @@ -42,9 +42,9 @@ from django.utils.translation import ugettext_lazy as _ # that doesn't appear in this setting, all pages will appear in it. PAGE_MENU_TEMPLATES = ( - (1, _("Top navigation bar"), "pages/menus/dropdown.html"), - # (2, _("Left-hand tree"), "pages/menus/tree.html"), - (2, _("Footer"), "pages/menus/footer.html"), + (1, _("Top header"), "pages/menus/header.html"), + (2, _("Top navigation bar"), "pages/menus/dropdown.html"), + (3, _("Footer"), "pages/menus/footer.html"), ) # A sequence of fields that will be injected into Mezzanine's (or any diff --git a/app/festival/templates/festival/artist_detail.html b/app/templates/templates/festival/artist_detail.html similarity index 100% rename from app/festival/templates/festival/artist_detail.html rename to app/templates/templates/festival/artist_detail.html diff --git a/app/festival/templates/festival/artist_list.html b/app/templates/templates/festival/artist_list.html similarity index 100% rename from app/festival/templates/festival/artist_list.html rename to app/templates/templates/festival/artist_list.html diff --git a/app/festival/templates/festival/inc/artist_card.html b/app/templates/templates/festival/inc/artist_card.html similarity index 100% rename from app/festival/templates/festival/inc/artist_card.html rename to app/templates/templates/festival/inc/artist_card.html diff --git a/app/festival/templates/festival/inc/audio_playlist.html b/app/templates/templates/festival/inc/audio_playlist.html similarity index 100% rename from app/festival/templates/festival/inc/audio_playlist.html rename to app/templates/templates/festival/inc/audio_playlist.html diff --git a/app/festival/templates/festival/inc/video_card.html b/app/templates/templates/festival/inc/video_card.html similarity index 100% rename from app/festival/templates/festival/inc/video_card.html rename to app/templates/templates/festival/inc/video_card.html diff --git a/app/festival/templates/festival/video_detail.html b/app/templates/templates/festival/video_detail.html similarity index 100% rename from app/festival/templates/festival/video_detail.html rename to app/templates/templates/festival/video_detail.html diff --git a/app/festival/templates/festival/video_list.html b/app/templates/templates/festival/video_list.html similarity index 100% rename from app/festival/templates/festival/video_list.html rename to app/templates/templates/festival/video_list.html -- 2.39.5