com/divio/django-cms/issues/5013
> <https://github.com/divio/django-cms/issues/5013>
>
> https://github.com/divio/django-cms/issues?utf8=%E2%9C%93&q=is%3Aissue%20rest%20framework
>
> <https://github.com/divio/django-cms/issues?utf8=%E2%9C%93&q=is%3Aissue%20rest%2
It appears to be a conflict with django cms.
If I have this middleware installed, it fails.
'cms.middleware.toolbar.ToolbarMiddleware',
Any ideas what is going on?
Greg
> On Aug 24, 2016, at 1:49 PM, Greg Gilley wrote:
>
> Okay, I created a small project and it wo
ake life easier for sharing.
>
> ~ Andrew
>
>> Greg Gilley <mailto:ggil...@gmail.com> August 25, 2016 at 1:46 AM
>>
>>
>> The same pattern I’m using works fine for regular django forms, but I will
>> try this (I’m open to anything at this point :-) — jus
ndline
> IS_TESTING = not {'testserver', 'test',
> 'jenkins'}.isdisjoint(set(sys.argv[1:2]))
> # elsewhere in settings
> if IS_TESTING:
> DEFAULT_FILE_STORAGE = ‘inmemorystorage.InMemoryStorage'
Cool. I had not seen that I’ll check it out.
Greg
Okay, knowing that its working for someone is helpful. It’s possible it’s a
problem with my tests.
I get errors back:
response.data= {'name': ['This field is required.'], 'image': ['No file was
submitted.'], 'recipe_as_image': ['No file was submitted.']}
If I print out what the view is getting