From: Frédéric Perrin
Date: Wed, 28 Sep 2016 20:49:00 +0000 (+0100)
Subject: Rename code from 'quotations' to 'quotes'
X-Git-Url: http://gitweb.fperrin.net/?p=djsite.git;a=commitdiff_plain;h=979f7e231fdda726b78bb00914d4a5e22a1d81b7
Rename code from 'quotations' to 'quotes'
---
diff --git a/djsite/urls.py b/djsite/urls.py
index b325b2a..761ea47 100644
--- a/djsite/urls.py
+++ b/djsite/urls.py
@@ -18,5 +18,5 @@ from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
- url(r'^quotes/', include('quotes.urls')),
+ url(r'^quotes/', include('quotes.urls', namespace='quotes')),
]
diff --git a/quotes/static/quotations/style.css b/quotes/static/quotes/style.css
similarity index 100%
rename from quotes/static/quotations/style.css
rename to quotes/static/quotes/style.css
diff --git a/quotes/templates/quotations/many.html b/quotes/templates/quotations/many.html
deleted file mode 100644
index 63d4f03..0000000
--- a/quotes/templates/quotations/many.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{% extends 'quotations/base.html' %}
-
-{% block body %}
-
-{% for quote in quotes %}
- {% include "quotations/display.html" with quote=quote %}
-{% endfor %}
-
-{% endblock %}
diff --git a/quotes/templates/quotations/onequote.html b/quotes/templates/quotations/onequote.html
deleted file mode 100644
index 0102dcc..0000000
--- a/quotes/templates/quotations/onequote.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% extends 'quotations/base.html' %}
-
-{% block body %}
-
-{% include "quotations/display.html" with quote=quote %}
-
-{% endblock %}
diff --git a/quotes/templates/quotations/author.html b/quotes/templates/quotes/author.html
similarity index 62%
rename from quotes/templates/quotations/author.html
rename to quotes/templates/quotes/author.html
index 38b36c7..1fa09c8 100644
--- a/quotes/templates/quotations/author.html
+++ b/quotes/templates/quotes/author.html
@@ -1,4 +1,4 @@
-{% extends 'quotations/base.html' %}
+{% extends 'quotes/base.html' %}
{% block body %}
@@ -8,7 +8,7 @@
All the quotes for {{ author.name }}:
{% for quote in author.quote_set.all %}
- {% include "quotations/display.html" with quote=quote %}
+ {% include "quotes/display.html" with quote=quote %}
{% endfor %}
diff --git a/quotes/templates/quotations/base.html b/quotes/templates/quotes/base.html
similarity index 88%
rename from quotes/templates/quotations/base.html
rename to quotes/templates/quotes/base.html
index b11766b..fe72a43 100644
--- a/quotes/templates/quotations/base.html
+++ b/quotes/templates/quotes/base.html
@@ -1,7 +1,7 @@
{% load staticfiles %}
-
+
{% block body %}
diff --git a/quotes/templates/quotations/display.html b/quotes/templates/quotes/display.html
similarity index 65%
rename from quotes/templates/quotations/display.html
rename to quotes/templates/quotes/display.html
index 62d36d9..108dc92 100644
--- a/quotes/templates/quotations/display.html
+++ b/quotes/templates/quotes/display.html
@@ -4,7 +4,7 @@