I'm getting this error: "AttributeError: 'WSGIRequest' object has no attribute 'copy'"
I see that it's because Django's WSGIRequest is being passed in, instead of the TwodWSGIRequest. I've looked over the docs at
http://pythonhosted.org/twod.wsgi/request-objects.html and I'm still not sure how to get Django to use the extended WSGI app. I think part of the problem here is that I have very little experience with Django, so apologies in advance.
The docs say:
"When you use this application, your views receive the request as an instance of TwodWSGIRequest automatically."
OK, great, how do I use the application?
I *think* the answer is below, in the "Using the WSGI application directly" section, in this bit of code:
----
from os import environ
environ['DJANGO_SETTINGS_MODULE'] = "yourpackage.settings"
from twod.wsgi import DjangoApplication
----
That said, as someone with no Django experience, I have no idea where this code should go. The docs state, "you can import it as you would normally do in Django", but I have no idea what I would "normally do in Django". Help?
Thanks,
Kyle