I need a url to be opened in a IE browser specifically. I know the following code is wrong but I don't know what else to try. How can I achieve that through python?
template
<a href="{% url 'browser:ie' %}" target="_blank"> Open in IE </a>
urls.py
url(r'^open-ie$', views.open_in_ie, name='ie'),
views.py
import webbrowser
def open_in_ie(request):
ie = webbrowser.get(webbrowser.iexplore)
return ie.open('https://some-link.com')
Again, I know this is wrong and it tries to open the ie browser at a server level. Any advices? Thank you!