Open alanjds opened 9 years ago
Hey, that's a very useful addition. Thanks! However in order to merge this, we would need some basic tests for this. Would you like to step up and write some tests for this? That would really make a difference. Once this PR has tests, I will merge it and release a new version containing the changes.
Ouch... I appreciate projects with tests, but I have no experience on coding Unittests, just Doctests. I can do it, but waiting for me will take some time.
Ok, don't hesitate to ask questions if you don't get along. :)
We got a client complaining about mobile pages showing up for desktop browsers. Turned up that he uses a Varnish-backed server, and django-mobile serves pages based on
User-Agent
ifMobileDetectionMiddleware
is used.It should set the
Vary: User-Agent
header.