mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.8K
active users

#DRF

0 posts0 participants0 posts today

With thanks to @browniebroke for preparing the release, and a whole host of contributors, new and old, DRF 3.16 is now available on PyPI:

$ pip install -U djangorestframework

Highlights include updated Python and Django compatibility — it's fully ready for the Django 5.2 LTS upgrade that you have scheduled for next week — and there's a few other niceties in there too. Go get yours now! 🦄

django-rest-framework.org/comm #DRF #Django

www.django-rest-framework.org3.16 Announcement - Django REST frameworkDjango, API, REST, 3.16 Announcement

Dive into the world of web APIs using Python's beloved Django framework and the Django Rest Framework with Felipe de Morias!

Consider purchasing a ticket to his tutorial, "🌐 Building Your First API with Django and Django Rest Framework" where you'll expand your web development skills in a practical, hands-on environment.

2024.djangocon.us/tutorials/bu

DjangoCon US🌐 Building Your First API with Django and Django Rest Framework

Валидируйте это немедленно

Как говорилось в одном сериале: “Все врут”. Поэтому валидация данных является контрактом – этаким камнем в фундаменте бизнес-логики программы. def handler_create_user(r: Request): input_data = r.post() name, email = input_data. get('name'), input_data.get('email') if not name or not email: raise HTTPBadRequest('name & email must have values') return User.create(name=name, email=email, password=uuid4()) Узнали? Не согласны? Если на оба вопроса ответили “да” или просто хотите почитать размышления про валидацию в целом (и в Python в частности), то добро пожаловать под кат.

habr.com/ru/articles/800837/

ХабрВалидируйте это немедленноДавайте ещё раз взглянем на этот код (теперь уж с нормальной подсветкой): def handler_create_user(r: Request): input_data = r.post() first_name, email = input_data.get('firstName'),...

In der #Gauchachschlucht kamen wir heute an einem Wanderunfall vorbei. Um die Verunfallte kümmerte sich ein #Heli der #DRF. Macht man sich meist keinen Kopf drüber, aber in dem Moment wurde mir bewusst: würde ich dort liegen, sie würden mich rausholen. Toll, dass es sowas gibt und die Helfer an solchen Tagen zur Verfügung stehen, während wir unserem Freizeitvergnügen nachgehen. Dachte, denen schmeiß ich gleich mal ein paar Groschen in den Hut...

Spent the day looking into data and it's got me thinking.

If you run a service that provides an API, what methods can you employ to detect bots?

Datadome can protect against bot[net] attacks, and maybe some use of scripts is ok for people to query data. But what about something in the middle, where someone's scripting something to look like the browser, but they're maybe not playing fair.