Using Django, is it possible to check if a user has a high resolution device? Server side.

I know it's possible with CSS media queries like so:

```
@media 
only screen and (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
}

```

But I need to know which version of an image (normal or 2x res) to display before the page loads.

Thanks in advance!