Skip to content

Tag: django

Syndication Feed View RSS to File

I’m using django as my web frontend for my podcast. I use a CDN for hosting all my media, and lately I have wanted that same CDN to host my RSS Feed, not directly django. The current setup has some basic well known primitives: Some additional context; SubscribeFeed is a Syndication Feed (https://github.…

Django field not passing through serializer

Using the Django REST Framework 2.2, I have a Person model as follows in models.py:: All data is stored in a Firestore database for saving and retrieving data via the REST API. Before new entries are made into the database, a serializer is used to validate incoming POST data. The route /person takes POST requ…

STARTTLS extension not supported by server in django

i am using gmail to do this, and i’m still at development. it just keeps throwing this error. yesterday it was working. sometimes it would also stop and show this error, but throughout today it haven’t been working as expected setting.py views.py Answer This was later fixed by connecting to a new …

How to Update a field in Django

I want to Update only name field if only name is sent from frontend, update only image if only image is sent from frontend, update both if name & image is sent from frontend In Django Answer You can construct a dictionary that only contains the key-value pairs to update and then use .update(…) [Django-doc…