Я верно понимаю, что файл models.py - это файл, где мы создаём бд для нашего проекта?Нет.
Если да, то наверняка можно создавать модель в SQLite studio и затем использовать её в проекте?Там вы можете создать таблицы, но не модели.
An optional sign specifier that forces a sign (- or +) to be used on a number. By default, only the - sign is used on a number if it's negative. This specifier forces positive numbers to have the + sign attached as well, and was added in PHP 4.3.0.www.php.net/sprintf
echo sprintf('%s %d°', 'В городе N', 1); // В городе N +1°
echo sprintf('%s %d°', 'В городе N', -1); // В городе N -1°
echo sprintf('%s %d°', 'В городе N', 0); // В городе N +0°
'%s %-d°'
modal.classList.contains('open')Бессмысленная проверка, remove просто проигнорирует класс, которого нет.
.onclick = function()
из-за одновременных 90 обращений падает сервер
либо блокируются запросы в рамках моей сессии.
(function() {
var displayTests = ["table", "table-caption", "table-cell",
"table-column", "table-column-group", "table-footer-group",
"table-header-group", "table-row", "table-row-group"];
var rules = document.createElement("div").style;
for (var c=0; c<displayTests.length; c++) {
var testValue = displayTests[c];
Modernizr.addTest("display" + testValue, function() {
try {
rules.display = testValue;
return rules.display == testValue;
} catch (e) {
return false;
}
})
}
}());