This commit is contained in:
Anna Sudnitsina 2018-03-27 19:23:12 +03:00
parent 5ae2b493d2
commit 9abfd06f9b
2 changed files with 5 additions and 6 deletions

View File

@ -77,7 +77,7 @@ WSGI_APPLICATION = 'imagehost.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
'''
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
@ -96,7 +96,7 @@ DATABASES = {
'PORT': '5432',
}
}
'''
# Password validation
# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators

View File

@ -6,10 +6,11 @@
<div class="images">
{% for image in all %}<a href="{% url 'image_detail' pk=image.pk %}" ><img src= "/media/images{{image.thumb_name }}"></a>{% endfor %}
</div>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
$(function() {resizer(); })
// $(function() {resizer(); })
$(window).load(resizer();)
$(window).resize(function() { resizer(); })
function resizer() {
@ -31,5 +32,3 @@
}
</script>
{% endblock content %}