> There are many ways to approach this problem, so it would be best to explain what you are trying to achieve.
Inside of a Django function or template we need to know if to display a landscape or portrait of a form - based on knowing if the viewer is using a mobile or not. On Wednesday, March 16, 2022 at 9:34:09 PM UTC+1 Antonis Christofides wrote: > Hello, > > there are many ways to approach this problem, so it would be best to > explain what you are trying to achieve. > > Regards, > > Antonis > > Antonis Christofides+30-6979924665 <+30%20697%20992%204665> (mobile) > > > On 16/03/2022 22.28, Django2021 wrote: > > > With Django how is it possible to detect > * if template is being viewed on mobile device? > and/or > * if template is being viewed in portrait or landscape mode? > > Any suggestions appreciated. > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/7be1145e-662e-4d57-afa6-b9d178f7fb0fn%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/7be1145e-662e-4d57-afa6-b9d178f7fb0fn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/83a4a51d-6913-47ce-a5da-f49f4b3d72abn%40googlegroups.com.

