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

1""" 

2crate_anon/crateweb/config/apps.py 

3 

4=============================================================================== 

5 

6 Copyright (C) 2015, University of Cambridge, Department of Psychiatry. 

7 Created by Rudolf Cardinal (rnc1001@cam.ac.uk). 

8 

9 This file is part of CRATE. 

10 

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. 

15 

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. 

20 

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/>. 

23 

24=============================================================================== 

25 

26**Django apps, for crate_anon.crateweb.config.settings.INSTALLED_APPS.** 

27 

28These classes point Django to directories within the CRATE tree. 

29 

30""" 

31 

32from django.apps import AppConfig 

33 

34 

35class ConsentAppConfig(AppConfig): 

36 """ 

37 Django :class:`django.apps.AppConfig` for the consent system. 

38 """ 

39 

40 name = "crate_anon.crateweb.consent" 

41 

42 

43class ResearchAppConfig(AppConfig): 

44 """ 

45 Django :class:`django.apps.AppConfig` for the researcher's views. 

46 """ 

47 

48 name = "crate_anon.crateweb.research" 

49 

50 

51class UserProfileAppConfig(AppConfig): 

52 """ 

53 Django :class:`django.apps.AppConfig` for extended user profiles. 

54 """ 

55 

56 name = "crate_anon.crateweb.userprofile" 

57 

58 

59class CoreAppConfig(AppConfig): 

60 """ 

61 Django :class:`django.apps.AppConfig` for the core app. 

62 """ 

63 

64 name = "crate_anon.crateweb.core" 

65 

66 

67class ApiConfig(AppConfig): 

68 """ 

69 Django :class:`django.apps.AppConfig` for the anonymiser API. 

70 """ 

71 

72 default_auto_field = "django.db.models.BigAutoField" 

73 name = "crate_anon.crateweb.anonymise_api"