For questions concerning use of the model class from the web framework Django.
I want to call a function from my model at a template such as: class ChannelStatus(models.Model): .............................. .............................. def get_…
python django django-models django-templatesIn django - is there a default timestamp field for all objects? That is, do I have to explicitly declare …
django django-models django-viewsI want to trigger a special action in the save() method of a Django model object when I'm saving a …
django django-modelsThis is a very beginner question. But I'm stumped. How do I reference a Django settings variable in my model.…
django django-models django-settingsHow do I serialize a many-to-many field into list of something, and return them through rest framework? In my example …
python django django-models django-rest-framework django-serializerWhen you have a model field with a choices option you tend to have some magic values associated with human …
python django django-modelsI'm coding a REST API with Django REST framework. The API will be the backend of a social mobile app. …
django python-2.7 django-models django-rest-frameworkI was following the first app tutorial from the official Django docs and got this error when trying to save …
python django python-3.x django-modelsI have a django model: class Book(models.Model): [..] and I want to have the model name as string: 'Book'. …
django django-modelsI've created a simple django 1.4 project and am trying to issue syncdb to create the (postgres) db schema. I'm getting …
django django-models django-admin