Daniel Sears

Results 6 comments of Daniel Sears

Hmm... it looks like the build is broken because I'm using DRF 3.10 which no longer supports Python 2.7.

How about something more direct? ``` from pkgutil import iter_modules if "rest_framework" in (name for loader, name, ispkg in iter_modules()): has_drf = True from rest_framework.generics import CreateAPIView, ListAPIView else: has_drf...

I've run into a problem with getting DRF working with Rules. I have a test project in https://github.com/highpost/rules_test with a bunch of tests that I use to help make sure...

This is more complex than I thought. I believe that get_permission_object() is failing because it uses WSGIRequest and DRF requires rest_framework.request.Request. See the following: https://stackoverflow.com/a/51747714/1953757 https://github.com/encode/django-rest-framework/issues/918 Getting this straightened out...

This appears to be a [limitation of XML](http://lxml.de/FAQ.html#why-can-t-lxml-parse-my-xml-from-unicode-strings). So you may want to add your example of how to handle Unicode strings to the documentation.

I had this problem and tracked it down to some lines in my .bashrc file. I'm running Ubuntu 20.04: ``` # If this is an xterm set the title to...