curl -fsSL https://get.docker.com/ | sh
sudo docker run hello-world
sudo docker ps
| from django.core.mail import get_connection, EmailMultiAlternatives | |
| from django.template.loader import render_to_string | |
| connection = get_connection() | |
| connection.open() | |
| context = {'object': object } | |
| html_string = render_to_string('template.html',context=context, request=request) |
| @echo off | |
| cmd /k "cd /d C:\Users\Admin\Desktop\venv\Scripts & activate & cd /d C:\Users\Admin\Desktop\helloworld & python manage.py runserver" |
| <div class="text-center"> | |
| {% if object_list.has_other_pages %} | |
| <ul class="pagination"> | |
| {% if object_list.has_previous %} | |
| <li> | |
| <a href="?page={{ object_list.previous_page_number }}{% querystring request %}">«</a> | |
| </li> | |
| {% else %} | |
| <li class="disabled"> | |
| <span>«</span> |
| function filter(element, selector) { | |
| var value = $(element).val().toUpperCase(); | |
| $(selector +" li").each(function () { | |
| if ($(this).text().toUpperCase().indexOf(value)> -1) { | |
| $(this).show(); | |
| } else { | |
| $(this).hide(); | |
| } | |
| }); | |
| } |
| var phone_mask = function (val) { | |
| return val.replace(/\D/g, '').length === 11 ? '(00) 00000-0000' : '(00) 0000-00009'; | |
| }, | |
| phone_option = { | |
| onKeyPress: function (val, e, field, options) { | |
| field.mask(phone_mask.apply({}, arguments), options); | |
| } | |
| }; |