Disallowed User Agents | Force To upgrade

60 views
Skip to first unread message

Ruchit Bhatt

unread,
Jan 6, 2018, 11:39:26 AM1/6/18
to Django users

In my new Django project, i am planning to use CSS Grid for template layout. To make site responsive without using bootstrap.

So here i want to know how can i block or force to upgrade those browser which doesn't support CSS grid ??


For testing purpose i tried this in settings.py but nothing works


DISALLOWED_USER_AGENTS = (re.compile(r'IE\s[0-9]+', re.IGNORECASE), )


is there any better way to do this ? where i can force user to upgrade their browser


Thank you

Andréas Kühne

unread,
Jan 7, 2018, 9:46:30 AM1/7/18
to django...@googlegroups.com
Include something like this:

It'll add a warning on your site that says that they should upgrade their browser to get the best experience.

Regards,

Andréas

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ff9aad10-52ad-43c3-b0ed-eb313fc20b28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason

unread,
Jan 7, 2018, 4:58:33 PM1/7/18
to Django users
Agreed.  Blocking users from accessing the site seems counterproductive.  Just do a feature detection and raise an alert warning if css-grid.  Modernizr will let you do this easily
Reply all
Reply to author
Forward
0 new messages