Answer the question
In order to leave comments, you need to log in
How to block access to the site for everyone except a group of users?
Hello!
There is a project on DJANGO, there is an industrial and test server.
There was a need to bind the domain to the test server. On the test server, the data is almost identical to the prom (a backup of the prom database is deployed), respectively, the users and passwords are mostly the same. It is necessary to make it so that when a user stumbles upon a test server, he cannot get to the site, that is, for example, he sees an authorization form, enters data and receives 403, while users added to the "Testers" group could get to the site.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question