refonte django #3
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.
|
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 223 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 106 KiB |
After Width: | Height: | Size: 382 KiB |
@ -10,7 +10,7 @@
|
||||
|
||||
<title>Musique fraternité - {% block titre %}{% endblock %}</title>
|
||||
|
||||
{% include "include_head.html" %}
|
||||
{% include "common_files/include_head.html" %}
|
||||
|
||||
{% block extra_head %}
|
||||
{% endblock %}
|
||||
@ -19,14 +19,14 @@
|
||||
|
||||
<body id="page-top">
|
||||
|
||||
{% include "navbar.html" %}
|
||||
{% include "common_files/navbar.html" %}
|
||||
|
||||
{% block contenu %}
|
||||
{% endblock %}
|
||||
|
||||
{% include "footer.html" %}
|
||||
{% include "common_files/footer.html" %}
|
||||
|
||||
{% include "include_foot.html" %}
|
||||
{% include "common_files/include_foot.html" %}
|
||||
|
||||
</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'>
|
||||
|
||||
<!-- 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 -->
|
||||
<!-- 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>
|
||||
<![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>
|
||||
</button>
|
||||
<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>
|
||||
</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 = [
|
||||
'site_statique.apps.SiteStatiqueConfig',
|
||||
'timeline.apps.TimelineConfig',
|
||||
'common_files.apps.CommonFilesConfig',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
@ -54,7 +55,6 @@ ROOT_URLCONF = 'site_musique.urls'
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [os.path.join(BASE_DIR, 'templates')],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
@ -87,10 +87,7 @@ USE_TZ = True
|
||||
# https://docs.djangoproject.com/en/1.11/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, "static"),
|
||||
]
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
||||
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
MEDIA_URL = '/media/'
|
||||
|
@ -11,6 +11,6 @@ import os
|
||||
|
||||
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()
|
||||
|
After Width: | Height: | Size: 228 KiB |
After Width: | Height: | Size: 444 KiB |
After Width: | Height: | Size: 251 KiB |
After Width: | Height: | Size: 973 KiB |
After Width: | Height: | Size: 847 KiB |
After Width: | Height: | Size: 818 KiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 274 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 457 KiB |
After Width: | Height: | Size: 945 KiB |
After Width: | Height: | Size: 147 KiB |
After Width: | Height: | Size: 316 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 263 KiB |
After Width: | Height: | Size: 386 KiB |
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 363 KiB |
After Width: | Height: | Size: 222 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 6.9 KiB |