diff --git a/README.md b/README.md new file mode 100644 index 0000000..6305521 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# BRECcIA-Mapper (provisional name) + +The canonical source for this project is hosted on [GitHub](https://github.com/Southampton-RSG/breccia-mapper), +please log any issues there. + +BRECcIA-Mapper is a web app to collect and explore data about the relationships between researchers and their stakeholders on large-scale, multi-site research projects. + +TODO motivations, usage, license + +## Technology + +This project is written in Python using the popular [Django](https://www.djangoproject.com/) framework. + +An [Ansible](https://www.ansible.com/) playbook is provided which is designed for deployment on RHEL7 or CentOS7 Linux systems. This installs and configures: +- MySQL +- Nginx +- Django + BRECcIA-Mapper + +TODO deployment instructions \ No newline at end of file diff --git a/breccia_mapper/settings.py b/breccia_mapper/settings.py index 22aa5ee..20a0aa8 100644 --- a/breccia_mapper/settings.py +++ b/breccia_mapper/settings.py @@ -134,6 +134,16 @@ DBBACKUP_STORAGE_OPTIONS = { } +# Django REST Framework +# https://www.django-rest-framework.org/ + +REST_FRAMEWORK = { + 'DEFAULT_PERMISSION_CLASSES': [ + 'rest_framework.permissions.IsAuthenticated', + ], +} + + # Password validation # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators diff --git a/breccia_mapper/templates/base.html b/breccia_mapper/templates/base.html index e840c53..123d2ea 100644 --- a/breccia_mapper/templates/base.html +++ b/breccia_mapper/templates/base.html @@ -73,6 +73,10 @@ Activities + + {% if request.user.is_superuser %}