module templates et static communs
0
common_files/__init__.py
Normal file
3
common_files/admin.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
5
common_files/apps.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class CommonFilesConfig(AppConfig):
|
||||||
|
name = 'common_files'
|
0
common_files/migrations/__init__.py
Normal file
3
common_files/models.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 223 KiB After Width: | Height: | Size: 223 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 382 KiB After Width: | Height: | Size: 382 KiB |
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<title>Musique fraternité - {% block titre %}{% endblock %}</title>
|
<title>Musique fraternité - {% block titre %}{% endblock %}</title>
|
||||||
|
|
||||||
{% include "include_head.html" %}
|
{% include "common_files/include_head.html" %}
|
||||||
|
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -19,14 +19,14 @@
|
|||||||
|
|
||||||
<body id="page-top">
|
<body id="page-top">
|
||||||
|
|
||||||
{% include "navbar.html" %}
|
{% include "common_files/navbar.html" %}
|
||||||
|
|
||||||
{% block contenu %}
|
{% block contenu %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% include "footer.html" %}
|
{% include "common_files/footer.html" %}
|
||||||
|
|
||||||
{% include "include_foot.html" %}
|
{% include "common_files/include_foot.html" %}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
14
common_files/templates/common_files/include_foot.html
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{% load static %}
|
||||||
|
<!-- jQuery -->
|
||||||
|
<script src="{% static "common_files/vendor/jquery.min.js" %}"></script>
|
||||||
|
|
||||||
|
<!-- Bootstrap Core JavaScript -->
|
||||||
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
<!-- Plugin JavaScript -->
|
||||||
|
<script src="{% static "common_files/vendor/jquery.easing.min.js" %}"></script>
|
||||||
|
<script src="{% static "common_files/vendor/scrollreveal.min.js" %}"></script>
|
||||||
|
<script src="{% static "common_files/vendor/appear.min.js" %}"></script>
|
||||||
|
|
||||||
|
<!-- Theme JavaScript -->
|
||||||
|
<script src="{% static "common_files/vendor/creative.min.js" %}"></script>
|
@ -8,7 +8,7 @@
|
|||||||
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
|
||||||
|
|
||||||
<!-- Theme CSS -->
|
<!-- Theme CSS -->
|
||||||
<link href="{% static "vendor/creative.min.css" %}" rel="stylesheet">
|
<link href="{% static "common_files/vendor/creative.min.css" %}" rel="stylesheet">
|
||||||
|
|
||||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||||
@ -17,4 +17,4 @@
|
|||||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<link rel="icon" type="image/jpg" href="{% static "img/favicon.jpg" %}" />
|
<link rel="icon" type="image/jpg" href="{% static "common_files/img/favicon.jpg" %}" />
|
@ -7,7 +7,7 @@
|
|||||||
<span class="sr-only">Toggle navigation</span> Menu <i class="fa fa-bars"></i>
|
<span class="sr-only">Toggle navigation</span> Menu <i class="fa fa-bars"></i>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand page-scroll" href="{% url 'accueil' %}#page-top">
|
<a class="navbar-brand page-scroll" href="{% url 'accueil' %}#page-top">
|
||||||
<img alt="Logo" src="{% static "img/logo.jpg" %}" style="height: 65px;">
|
<img alt="Logo" src="{% static "common_files/img/logo.jpg" %}" style="height: 65px;">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
3
common_files/tests.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
3
common_files/views.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
0
site_musique/settings/__init__.py
Normal file
@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
|
|||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
'site_statique.apps.SiteStatiqueConfig',
|
'site_statique.apps.SiteStatiqueConfig',
|
||||||
'timeline.apps.TimelineConfig',
|
'timeline.apps.TimelineConfig',
|
||||||
|
'common_files.apps.CommonFilesConfig',
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
@ -54,7 +55,6 @@ ROOT_URLCONF = 'site_musique.urls'
|
|||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
'DIRS': [os.path.join(BASE_DIR, 'templates')],
|
|
||||||
'APP_DIRS': True,
|
'APP_DIRS': True,
|
||||||
'OPTIONS': {
|
'OPTIONS': {
|
||||||
'context_processors': [
|
'context_processors': [
|
||||||
@ -87,10 +87,7 @@ USE_TZ = True
|
|||||||
# https://docs.djangoproject.com/en/1.11/howto/static-files/
|
# https://docs.djangoproject.com/en/1.11/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
|
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
||||||
STATICFILES_DIRS = [
|
|
||||||
os.path.join(BASE_DIR, "static"),
|
|
||||||
]
|
|
||||||
|
|
||||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||||
MEDIA_URL = '/media/'
|
MEDIA_URL = '/media/'
|
||||||
|
@ -11,6 +11,6 @@ import os
|
|||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "site_musique.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "site_musique.settings.dev")
|
||||||
|
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
|
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 228 KiB |
Before Width: | Height: | Size: 444 KiB After Width: | Height: | Size: 444 KiB |
Before Width: | Height: | Size: 251 KiB After Width: | Height: | Size: 251 KiB |
Before Width: | Height: | Size: 973 KiB After Width: | Height: | Size: 973 KiB |
Before Width: | Height: | Size: 847 KiB After Width: | Height: | Size: 847 KiB |
Before Width: | Height: | Size: 818 KiB After Width: | Height: | Size: 818 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 274 KiB After Width: | Height: | Size: 274 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 457 KiB After Width: | Height: | Size: 457 KiB |
Before Width: | Height: | Size: 945 KiB After Width: | Height: | Size: 945 KiB |
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 147 KiB |
Before Width: | Height: | Size: 316 KiB After Width: | Height: | Size: 316 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 263 KiB After Width: | Height: | Size: 263 KiB |
Before Width: | Height: | Size: 386 KiB After Width: | Height: | Size: 386 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 363 KiB After Width: | Height: | Size: 363 KiB |
Before Width: | Height: | Size: 222 KiB After Width: | Height: | Size: 222 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |