Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Group info
Language:
Group categories: Not categorized
More group info »
Discussions
View:  Topic list, Topic summary Topics 1 - 10 of 469  Older »

You cannot post messages because only members can post, and you are not currently a member.
Description: A group for questions and discussions regarding the Django REST framework project.

http://django-rest-framework.org/

 

Mixing global and "per view" based permissions 
  If I want to apply authentication across my entire api I can use the settings below globally REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSE S': ( 'my.authentication_classes.Sig nedOrSessionAuthentication', ), 'DEFAULT_PERMISSION_CLASSES': ( 'my.permission_classes.ForceAu thentication',... more »
By Toran Billups  - May 24 - 1 new of 1 message    

How to best nest info of through model in Serializer 
  ...class Facility(models.Model): name = models.CharField(max_length=25 5, unique=True) icon = models.CharField(max_length=25 5, blank=True) class ProvidesLocationFacility(model s.Model): facility = models.ForeignKey('Facility') location = models.ForeignKey('Location', verbose_name=_('location'))... more »
By Remco Wendt  - May 24 - 1 new of 1 message    

AssertionError: Cannot read more than the available bytes from the HTTP incoming data. 
  I know that this is not related to django–rest–framework, but I guess someone here may have dealt with this issue already. I'm building a simple test case for my app with trying to POST xml–data. And when I'm running the test case I get the above message.
By Patrick Kranzlmueller  - May 24 - 7 new of 7 messages    

custom XML renderer 
  I'm mainly dealing with the terms of nodes (e.g. root or list-items) and I plan to change these names to more declarative ones. I'm having something like this in mind: [link] Has anyone implemented a custom XML renderer? If so, any hints on what's the best practice?... more »
By Patrick Kranzlmueller  - May 24 - 1 new of 1 message    

CreateModelMixin sends everything back to the user 
  Hello together. I just found out that the "create" method of "CreateModelMixin" sends everything back to the client after the instance was created. Why is this the default? It seems to me that it just bloats the network traffic, especially if the user submitted a lot of data. What do you recommend to... more »
By Kai Schlamp  - May 19 - 2 new of 2 messages    

possible bug with POST relation 
  I've restricted get_queryset with a view (ModelViewSet) for the currently logged–in user. When viewing the list, everythings fine when I'm trying to access an object bound to another user (404 not found). However, when doing a POST and trying to add a wrong relation it works ... { "title":"test title",... more »
By Patrick Kranzlmueller  - May 19 - 2 new of 2 messages    

Odd behavior with the @action decorator 
  I'm experiencing some weird behavior with the @action decorator when adding new methods to a viewset. First off, if I don't include parens like: @action() I get the following error: File "/home/cniedzwiedz/Development /finance/trading_agent_web/sta sisapi/views.py", line 124, in SimulationViewSet... more »
By Chris Niedzwiedz  - May 18 - 2 new of 2 messages    

setting language (for error messages) 
  is there an easy way to set a different language for the API (compared with the rest of the site)? because a) I want my API to be in english while the rest is in german and b) some error messages (e.g. date–field) do not seem to be translated at all ... and in order to avoid a language mix I'd prefer to stick with... more »
By Patrick Kranzlmueller  - May 18 - 2 new of 2 messages    

DjangoCon Europe 2013 Sprints 
  I'm currently at the absolutely incredible DjangoCon Europe 2013<[link]> . The coding sprints start tomorrow (saturday), and I've been marking up some of the more friendly tickets with the ★djangocon★ <[link]> ta g. I'm hoping we'll be able to power through some of these.... more »
By Tom Christie  - May 17 - 1 new of 1 message    

Mongo 
  Are there any tutorials online showing how to serialize into mongodb?
By Lucas Simon  - May 16 - 1 new of 1 message    

1 - 10 of 469   « Newer | Older »

XML       Send email to this group: django-rest-framework@googlegroups.com