Web · library
Django
The batteries-included framework on your own computer: URLs and views, templates, models and queries, forms — ending with a blog with comments. Each task is a one-file Django project with an in-memory database. CodinGame-style tasks: a ready app with a broken part to fix.
6 topics · 16 challengesChallenges solved0 of 16
- 01ContinueУстановкаPython, редактор кода, библиотека django и мост CodeWithMe0 / 1
- 02Адреса и представленияпроект в одном файле, settings.configure, path и <int:pk>, HttpResponse, JsonResponse, Http404, request.GET, runserver0 / 3
- 03Шаблоны DjangoTemplate и Context, {% for %} … {% empty %}, фильтры truncatewords, default, date, length, свой фильтр через template.Library0 / 3
- 04Модели и запросыmodels.Model и поля, создание таблиц, objects.create, filter, exclude, order_by, срезы, поиски __gte и __year, values и annotate0 / 3
- 05Связи между моделямиForeignKey и related_name, on_delete, post.comments.all(), поиск через связь post__author, annotate(Count) по связи, filter по аннотации0 / 3
- 06Формы и блог с комментариямиforms.Form и поля с ограничениями, is_valid и cleaned_data, clean_<поле> и ValidationError, ModelForm, POST → redirect — итоговый блог0 / 3