#djangorestframework

2025-02-19

Not sure what's happening with Django Rest Framework, but it sounds like "go fuck yourself".

Is there some sort of community-maintained fork, which accepts contributions?

github.com/encode/django-rest-

#django #DjangoRestFramework

We can see the behavior change. The cost is not worthwhile in my judgement.

More to the point I think what @tomchristie is actually suggesting is that they're no longer willing to tolerate either intentional or unintentional social DDOS'ing from internet anons. Somehow this became a dominant theme within OSS development. As it stands REST framework will not be accepting further contributions.
Brian Pepple :fedora: :python:brian@pepple.us
2025-01-23

Spends a little time adding API versioning to a #Django project. :django: :python:

#DjangoRestFramework

Since I won't really be able to hunt for work for the rest of the year, I'm thinking of working on the web frontend for #LiSE, and turn it into a #django module, rather than the current situation where it's a #cherryPy "app"

Are there best practices, or maybe even frameworks similar to the #djangoRestFramework, that would show me how to make LiSE produce its #messagepack for easy consumption by browsers or whatever?

#backend #webdev

2024-09-21

If you use #PyCharm Pro and have a REST API, you *must* check out the Endpoints tool window.

It shows all of your project's endpoints in one place, along with documentation, schema info, etc!

jetbrains.com/help/pycharm/dja

jetbrains.com/help/pycharm/end

#DRF #Django #DjangoRestFramework #REST #API #Flask #PyCharm #JetBrains #WebDevelopment

Ash_CrowAsh_Crow
2024-09-10

Why is the messing with the French translations of formfield error messages?

You just have to add "rest_framework" in the INSTALLED_APPS of your settings.py for the messages to change for no reason.

The error message for invalid email went from "Saisissez une adresse de courriel valide." to "Saisissez une adresse e-mail valide." and the one for an empty mandatory field from "Champ requis." to "Ce champ est obligatoire."
2024-08-05

Система оценивания для проведения экзаменов, срезов в СПО

Привет всем! Сегодня я расскажу вам о моей системе оценивания, которая создана для проведения экзаменов и оценки знаний студентов. Система построена на Django Rest Framework (DRF) для бэкенда и React с MaterialUI для фронтенда. Я добавии множество полезных функций, включая интеграцию с ISPmanager, которые делают систему удобной и эффективной.

habr.com/ru/articles/834008/

#оценка #работ #интеграция #ispmanager #excel #djangorestframework

Nsukami _ | 巣神lemeteore
2024-04-23

Dear , I'm looking for advices and suggestions on how to link , , . for your & your :thaenkin:

How to backup your #linkding bookmarks to a json file from remote (e.g. your local machine) in under 20 lines of code

(Also a blueprint for other #djangorestframework client scripts) #django #selfhost #selfhosting

Python code snippet:

#!/usr/bin/env python3
import requests, json

apiToken="<YOUR-SECRET-API-TOKEN>"
apiUrl="https://<YOUR-LINKDING-HOST>/api/bookmarks/"
allBookmarks=[]

nextPageUrl = apiUrl

while nextPageUrl != None:
    result = requests.get(nextPageUrl, headers={"Authorization":"Token " + apiToken})
    resultParsed = json.loads(result.text)
    allBookmarks += resultParsed["results"]
    nextPageUrl = resultParsed["next"]

with open('backup.json', 'w') as f:
    json.dump(allBookmarks, f)

@raiderrobert

Wrestling with #DjangoRestFramework to make an adapter serializer that uses #pydantic for validation.

DRF embodies all the worst things about Java-style OOP. There are base classes, mixins, attributes that must not be used before you call a specific methods, nothing is documented, and, of course, not annotated. Even drf-stubs project that supposed to annotate DRF is full of Any. And then we also stuck with pydantic v1 where you can't have custom serializers.

What a day.

2023-07-10

Kaplan here! We develop a cloud-native translation management system: Kaplan Cloud. Check out the docs at kaplan.pro and give it a try! #translation #django #djangorestframework #python #introduction

2023-05-24

Django Rest Framework: How to handle arrays and nested objects in a multipart/form-data request? - b0uh.github.io/drf-how-to-hand #django #djangorestframework

Kevin Brown-Silvakevin@brown-silva.social
2023-05-16

I moved servers, so here's an #Introduction:

I'm a #Python / #Java #SoftwareEngineer by day, but after that I interact with a lot of #FOSS and other #OpenSource projects.

I maintain and own #Select2, the #JavaScript library that I joke is keeping #jQuery alive. I'm also a maintainer on #DjangoRestFramework and #Jinja2 but I'll admit I do less with them now that I don't use #Django for work.

I have a lot of #HomeAutomation projects that make heavy use of #HomeAssistant (#ESPHome, #ZigBee).

Brian Pepple :fedora: :python:brian@pepple.us
2023-02-04

Spending a bit of time this morning finishing up a POST #api for a #DjangoRestFramework project, and hitting a 'InMemoryUploadedFile' when uploading an image to AW3. Guessing this error happens fairly often, so hopefully some search-fu will point me in the right direction.

#Django #Python

brunorobertbrunorobert
2023-02-04

I’ve been doing some tests . My goal is to rewrite a API in .

There are so many web and async frameworks, it’s hard to choose!

So far my best attempt was with

Brian Pepple :fedora: :python:brian@pepple.us
2023-01-30

spends the evening reading up on #DjangoRestFramework throttling for users and staff.

#Django

Brian Pepple :fedora: :python:brian@pepple.us
2023-01-20

spends the afternoon writing #DjangoRestFramework validators. #Django

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst