upd
This commit is contained in:
parent
5ae2b493d2
commit
9abfd06f9b
|
@ -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
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user