How to close access to the site except for all user groups?

0 like 0 dislike
32 views
Hello!
There is a project on DJANGO, there are industrial and test server.
There is a need to link the domain to your test server. On the test server, the data is almost identical to a prom (prom deployed backup DB), respectively the users and passwords in the bulk are the same. You need to make stumbled on a test server, the user could not get to the site, that is, for example, saw login form, entered the data and got a 403, while users added to the group "Testers" can get to the site.
by | 32 views

3 Answers

0 like 0 dislike
Use Basic authorization.
by
0 like 0 dislike
Add authorization Apache'm or Nginx. That is, when the entrance will be popping up extra window with request of login and password just give it to them.

Or enter into a class/input function, an additional condition based on the domain of the website.
by
0 like 0 dislike
Thank you!
by

Related questions

0 like 0 dislike
5 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,707 users