Re: Django rest framework Version

2018-01-08 Thread Xavier Ordoquy
Hi, Out of curiosity, is there anything wrong with the latest version ? Regards, Xavier. > Le 9 janv. 2018 à 04:59, Rakhee Menon a écrit : > > Hey!!! > Please can anyone tell whats the stable version of django rest framework to > be used for production. > Thanks in Advance. > > -- > You rec

Re: Non Ascii character in upload file crash in python 3

2016-06-08 Thread Xavier Ordoquy
Hi, Le mercredi 8 juin 2016 10:13:46 UTC+2, luisza14 a écrit : > > I am using supervisor and gunicorn for production run as fondomutual user. > > $ env | grep LANG > LANG=es_CR.UTF-8 > LANGUAGE=es_CR:es > Supervisor doesn't propagate the locales to its supervised processes. You need to set them

Re: Flattening model relationships (in APIs)

2017-02-27 Thread Xavier Ordoquy
Quick question. How will you handle the fields updates ? Like, what if you get an city_name="Bombay" and city_code="DEL" ? If you can set them as read-only, then using the source argument is the way to go. Alternatively, you can define a non model serializer and flatten the data before hand. You

Re: Django rest framework cannot deal with multple objects in model viewset

2017-04-20 Thread Xavier Ordoquy
; > But I am getting an error: > > TypeError at /api/blog/pages/ > > 'ListSerializer' object is not callable > What am I missing here? it’s serializer_class, not serializer_instance. You can’t instantiate the serializer there. In order to deal with multiples items, you bet

Re: how to write APIview to access a specific item by using APIViews only

2017-09-06 Thread Xavier Ordoquy
> Le 6 sept. 2017 à 10:00, Melvyn Sopacua a écrit : > > One of the core design issues with DRF is that everything > is based around a queryset. Even if the set is just one item. This sounds like an easy troll. A lot of code from DRF is based around queryset because DRF can introspect and deduc

Re: Updating data via admin not visible on restful api without admin specified in url until restart server

2017-09-26 Thread Xavier Ordoquy
Hi, You likely have an issue with scope in your code. Something similar to https://stackoverflow.com/questions/15395521/django-form-field-will-not-update-without-server-reset-instantiating-a-clas

Re: DRF without login

2015-08-13 Thread Xavier Ordoquy
> Le 13 août 2015 à 23:06, Prabath Peiris a écrit : > > Hi Hi > I am trying to implement a DRF in existing django project. I installed the > drf and set up APiView (class based) and add the get() to the class. When I > call this get method I get an error as "Exception Value: no such table:

Re: [REQUEST] Please list all the deprecations in the changelogs.

2015-10-12 Thread Xavier Ordoquy
Hi Vasiliy, > Le 12 oct. 2015 à 14:53, Vasiliy Korol a écrit : > > Hi. > I find it useful to turn DeprecationWarnings into exeptions on the > development server in order to ease the future transition to the next Django > LTS release. > After migrating to Django 1.8.5, we received some unexpect

Re: How to develop a frontend web app for using REST services

2015-10-16 Thread Xavier Ordoquy
Hi, I wrote a short blog post about getting most of Django REST framework without using Django models. https://medium.com/@linovia/django-rest-framework-viewset-when-you-don-t-have-a-model-335a0490ba6f You will loose the integration with the Django Models and will need to do a few things by you

Re: How to develop a frontend web app for using REST services

2015-10-19 Thread Xavier Ordoquy
hacking. > Krishnakant. > > > On Friday 16 October 2015 03:39 PM, Xavier Ordoquy wrote: > > Hi, > > I wrote a short blog post about getting most of Django REST framework > without using Django models. > > https://medium.com/@linovia/django-rest-framework-viewse

Re: Django-Restframework adding and accessing a user to a model / adding an owner?

2015-11-07 Thread Xavier Ordoquy
Hi > Le 7 nov. 2015 à 22:00, lnzy3...@gmx.de a écrit : > > > It runs into an error. To me it seems like I cannot combine two models. My > goal is to access all the tasks attached to that user, or to add a task to > the user accessing the API at the moment > So it would be very helpful, when s

Re: Best approach to write unit tests involving rest apis.

2015-12-02 Thread Xavier Ordoquy
Hi, > Le 3 déc. 2015 à 00:12, learn django a écrit : > > My app uses rest framework. > I am writing test cases which involve standard requests like > GET/POST/DELETE/PUT. > What is the best approach to write the test cases ? Django REST framework comes with a test client named APIClient. It wi

Re: Best approach to write unit tests involving rest apis.

2015-12-03 Thread Xavier Ordoquy
> Le 3 déc. 2015 à 08:08, learn django <mailto:siddhesh.dive...@gmail.com>> a écrit : > > On Wednesday, December 2, 2015 at 10:48:52 PM UTC-8, Xavier Ordoquy wrote: > Hi, > > > Le 3 déc. 2015 à 00:12, learn django > > > a écrit : > > > >

Re: Right place to decrypt/decode data from DB before passing it to UI without affect data in DB itself.

2016-02-08 Thread Xavier Ordoquy
Hi, > Le 8 févr. 2016 à 19:00, learn django > a écrit : > > Hi, > > I store some data like email text, headers and from email address in encoded > format in the database. > I want to have a page where I can display all this information in readonly > format.

Re: Django site as SOAP endpoint

2021-01-31 Thread Xavier Ordoquy
Hi Fenrir, You may give Spyne (http://spyne.io/) a try. It is a RPC framework that can handle SOAP requests and has a Django integration. Spyne has a couple of drawbacks - IMHO it tries to do too any things and may be somewhat complex - but it does the job. Hopes this will help, Xavier O. Le d

<    1   2   3