Django checks if JavaScript is enabled

Is there a way in Django (preferably in a view) to check if JavaScript is enabled?

I need to render a very different page if the user has JavaScript than if they hadn’t.

thank

+3
source share
2 answers

I need to render a very different page if the user has JavaScript than if they hadn’t.

No, you really don't do this. You need to make your page work without Javascript, but then improve it for those people who have Javascript enabled. There should be no reason to display a completely different page.

, , . - , Javascript, , script, . , , . , .

+11

. .

() , , JS .

+2

Source: https://habr.com/ru/post/1733679/


All Articles