Coverage for crateweb/config/apps.py: 100%
12 statements
« prev ^ index » next coverage.py v7.8.0, created at 2026-01-06 10:22 -0600
« prev ^ index » next coverage.py v7.8.0, created at 2026-01-06 10:22 -0600
1"""
2crate_anon/crateweb/config/apps.py
4===============================================================================
6 Copyright (C) 2015, University of Cambridge, Department of Psychiatry.
7 Created by Rudolf Cardinal (rnc1001@cam.ac.uk).
9 This file is part of CRATE.
11 CRATE is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 CRATE is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with CRATE. If not, see <https://www.gnu.org/licenses/>.
24===============================================================================
26**Django apps, for crate_anon.crateweb.config.settings.INSTALLED_APPS.**
28These classes point Django to directories within the CRATE tree.
30"""
32from django.apps import AppConfig
35class ConsentAppConfig(AppConfig):
36 """
37 Django :class:`django.apps.AppConfig` for the consent system.
38 """
40 name = "crate_anon.crateweb.consent"
43class ResearchAppConfig(AppConfig):
44 """
45 Django :class:`django.apps.AppConfig` for the researcher's views.
46 """
48 name = "crate_anon.crateweb.research"
51class UserProfileAppConfig(AppConfig):
52 """
53 Django :class:`django.apps.AppConfig` for extended user profiles.
54 """
56 name = "crate_anon.crateweb.userprofile"
59class CoreAppConfig(AppConfig):
60 """
61 Django :class:`django.apps.AppConfig` for the core app.
62 """
64 name = "crate_anon.crateweb.core"
67class ApiConfig(AppConfig):
68 """
69 Django :class:`django.apps.AppConfig` for the anonymiser API.
70 """
72 default_auto_field = "django.db.models.BigAutoField"
73 name = "crate_anon.crateweb.anonymise_api"