Вот приходит человек с сертификатом от гик***** и что он думает о кандидате? Он целеустремленный или ленивый?
Довольно странно продавать основы из основ за деньги.
Great, great book. I think this is the perfect book for any biologist to who wants to start learning to code with Python. Right away the author has you writing programs that are actually useful for biologists… I didn’t know a command-line from a hole in the ground when I first opened up this book, and mere days later I was impressing my colleagues with my own DNA analysis programs.
url(r'^(?P<category_slug>[-\w]+)/$', views.BookList, name='BookListByCategory')
category = get_object_or_404(Category, slug=category_slug)
urlpatterns = [
url(r'^contacts/$', views.ContactsPage, name='ContactsPage'),
url(r'^$', views.BookList, name='BookList'),
url(r'^(?P<category_slug>[-\w]+)/$', views.BookList, name='BookListByCategory'),
url(r'^(?P<id>\d+)/(?P<slug>[-\w]+)/$', views.BookDetail, name='BookDetail')
]
<!DOCTYPE html>
<html>
<head>
<style>
.boxes {
max-width: 400px;
}
.box {
display: block;
float: left;
width: 80px;
height: 80px;
margin-right: 20px;
margin-bottom: 20px;
}
.box-blue {
background-color: blue;
}
.box-red {
background-color: red;
}
</style>
<body>
<div class="boxes">
<div class="box box-blue"></div>
<div class="box box-blue"></div>
<div class="box box-blue"></div>
<div class="box box-blue"></div>
<div class="box box-red"></div>
<div class="box box-red"></div>
<div class="box box-red"></div>
<div class="box box-red"></div>
</div>
</body>
</html>
class PersonAdmin(admin.ModelAdmin):
list_filter = ('is_active', 'company')
class EngineerTypeFilter(SimpleListFilter):
title = u'инженеры'
parameter_name = 'engineer'
#engineer__id__exact
def lookups(self, request, model_admin):
return (
(None, u"Активные"),
('rejected', u"Уволенные"),
)
def queryset(self, request, queryset):
if self.value() is None:
records = queryset.filter(is_active=True)
else:
records = queryset.filter(is_active=False)
return records
<a class='btn btn-xs' id='status-button' name="status" href="admin.php?id=755">
в ожидании</a>
var button = $("#status-button");
button.on("click", function () {
// Отправляем AJAX запрос на сервер
$.ajax({
url: button.attr("href"),
type: "POST",
dataType: "json",
success: function (response) {
button.html(response["status-text"]);
}
});
return false;
})
a1[xxx].append(x)
a2[xxx].append(y)
a3[xxx].append(z)
a1.append(x)
a2.append(y)
a3.append(z)
head_id = get_object_or_404(Heading, heading_alies=alies)
head_id = get_object_or_404(Heading, heading_alies=alies)
heading = get_object_or_404(Heading, heading_alies=alies)
slug = models.SlugFiled(unique=True)
url(r'^(?P<slug>[-a-zA-Z0-9_]+)$', 'article_detail', name='article_detail'),
def article_detail(request, slug):
article = get_object_or_404(Article, slug=slug)
...