amitu / importd

django based mini framework inspired from sinatra. fully compatible with django.
http://amitu.com/importd/
BSD 3-Clause "New" or "Revised" License
511 stars 30 forks source link

request.REQUEST and Django 1.9 #82

Open aliev opened 8 years ago

aliev commented 8 years ago

Error output

AttributeError at /fhurl/
'WSGIRequest' object has no attribute 'REQUEST'
Request Method: GET
Request URL:    http://127.0.0.1:8000/fhurl/
Django Version: 1.9
Exception Type: AttributeError
Exception Value:    
'WSGIRequest' object has no attribute 'REQUEST'
The WSGIRequest.REQUEST property is removed.

https://github.com/amitu/fhurl/blob/master/fhurl.py#L118

Django release notes https://docs.djangoproject.com/en/1.9/releases/1.9/#features-removed-in-1-9

ghost commented 8 years ago

This is more of a fhurl bug, than ImportD bug...

amitu commented 8 years ago

Agreed. Pull request in fhurl welcome :-P.

I do not have time to work on this project right now for a few months.

ghost commented 8 years ago

What about decoupling fhurl from importD :grey_question:

amitu commented 8 years ago

I guess we can do it. fhurl is easy enough as it is. I think it was only used in @d() decorator on class objects.