D
D
DennyD3142018-05-04 12:53:37
Django
DennyD314, 2018-05-04 12:53:37

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

2 answer(s)
E
Elvis, 2018-05-04
@DennyD314

Use Basic authorization.

D
DennyD314, 2018-05-04
@DennyD314

Thank you!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question