A simple Django test app with Group/Permissions/Restricted Views.
- Create a virtualenv
- pip install -r requirements.txt
- python manage.py runserver
- Login with user1 and password '12346'
- Go to: http://127.0.0.1:8000/view-1/ it should return 'This is View 1' and http://127.0.0.1:8000/view-2/ should redirect to login page. Login with user 'user2' and password '123456'.
admin / 123456
user1 / 123456
user2 / 123456
You can also run tests with 'python manage.py test' instead of checking the views manually.