#48 still not working completely
This commit is contained in:
parent
e65e901a66
commit
fa3e285330
1
Pipfile
1
Pipfile
@ -11,6 +11,7 @@ pydotplus = "*"
|
|||||||
|
|
||||||
[packages]
|
[packages]
|
||||||
django = "*"
|
django = "*"
|
||||||
|
django-cacheops = "*"
|
||||||
|
|
||||||
[requires]
|
[requires]
|
||||||
python_version = "3.8"
|
python_version = "3.8"
|
||||||
|
6
bak
Normal file
6
bak
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
{% if coin.name %}
|
||||||
|
<p>{{ coin.found_on|date:"d.m.Y" }}: {{ coin.value|floatformat:2 }} € von {{ coin.year }} "{{ coin.name }}" aus {{ coin.country}} von {{ coin.found_by }}</p>
|
||||||
|
{⅝ else %}
|
||||||
|
<p>{{ coin.found_on|date:"d.m.Y" }}: {{ coin.value|floatformat:2 }} € von {{ coin.year }} aus {{ coin.country}} von {{ coin.found_by }}</p>
|
||||||
|
{% endif %}
|
@ -49,7 +49,7 @@ class Country(Model):
|
|||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.name} {self.name_iso} {self.comment}"
|
return f"{self.name}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
{% if countrys %}
|
{% if countrys %}
|
||||||
<p><h5>Gesamtwert {{ coin_sum }}</h5></p>
|
<p><h5>Gesamtwert {{ coin_sum }}</h5></p>
|
||||||
{% include 'coinc/filter_country.html' with countrys=countrys %}
|
{% include 'coinc/filter_country.html' with countrys=countrys %}
|
||||||
<p><h5>Zuletzt hinzugefügt</h5></p>
|
<p><h5>Zuletzt gefunden</h5></p>
|
||||||
{% for coin in recent_coins %}
|
{⅝ for coin in recent_coins %}
|
||||||
<p>{{ coin.found_on|date:"d.m.Y" }}: {{ coin.value|floatformat:2 }} € {{ coin.name }} von {{ coin.found_by }}</p>
|
<p>{{ coin.found_on|date:"d.m.Y" }}: {{ coin.value|floatformat:2 }} € von {{ coin.year }} aus {{ coin.country}} von {{ coin.found_by }}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>Trage zuerst Länder im Adminbereich ein.</p>{% endif %}
|
<p>Trage zuerst Länder im Adminbereich ein.</p>{% endif %}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<span class="badge badge-pill badge-light">Version 210705</span>
|
<span class="badge badge-pill badge-light">Version 210712</span>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -32,6 +32,7 @@ ALLOWED_HOSTS = ['willipink.eu']
|
|||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
'coinc.apps.CoincConfig',
|
'coinc.apps.CoincConfig',
|
||||||
|
'cacheops',
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
@ -149,6 +150,7 @@ CACHES = {
|
|||||||
|
|
||||||
# caching
|
# caching
|
||||||
# CACHE_MIDDLEWARE_ALIAS = 'default'
|
# CACHE_MIDDLEWARE_ALIAS = 'default'
|
||||||
CACHE_MIDDLEWARE_SECONDS = 60*60*24*365
|
# CACHE_MIDDLEWARE_SECONDS = 60*60*24*365
|
||||||
|
|
||||||
CACHEOPS_REDIS = "unix://var/run/redis/redis-server.sock"
|
CACHEOPS_REDIS = "unix://var/run/redis/redis-server.sock"
|
||||||
|
CACHEOPS_DEGRADE_ON_FAILURE = True
|
||||||
|
Binary file not shown.
8
update
8
update
@ -18,14 +18,14 @@ git pull -q origin master >/dev/null
|
|||||||
|
|
||||||
echo -n "... bumping "
|
echo -n "... bumping "
|
||||||
version=$(date +"%y%m%d")
|
version=$(date +"%y%m%d")
|
||||||
sed -i "s/[0-9]\{6\}/$version/g" coinc/templates/footer.html >/dev/null
|
sed -i "s/[0-9]\{6\}/$version/g" coinc/templates/footer.html
|
||||||
|
|
||||||
echo -n "... collecting "
|
echo -n "... collecting "
|
||||||
python3 manage.py collectstatic --settings coinmanager.production_settings --no-input >/dev/null
|
python3 manage.py collectstatic --settings coinmanager.production_settings --no-input
|
||||||
|
|
||||||
echo -n "... owning "
|
echo -n "... owning "
|
||||||
sudo chmod 775 db.sqlite3
|
sudo chmod 775 db.sqlite3
|
||||||
sudo chown -R $user:$web_user $path >/dev/null
|
sudo chown -R $user:$web_user $path
|
||||||
|
|
||||||
echo "... reloading "
|
echo "... reloading "
|
||||||
sudo systemctl restart apache2 >/dev/null
|
sudo systemctl restart apache2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user