Coverage for conf/settings/__init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 06:14 +0000

1""" 

2Django settings for the Openverse API. 

3 

4For more information on this file, see 

5https://docs.djangoproject.com/en/4.2/topics/settings/ 

6 

7For the full list of settings and their values, see 

8https://docs.djangoproject.com/en/4.2/ref/settings/ 

9""" 

10 

11from pathlib import Path 

12 

13from decouple import config 

14from split_settings.tools import include 

15 

16 

17# Build paths inside the project like this: BASE_DIR / 'subdir'. 

18BASE_DIR = Path(__file__).resolve().parents[2] 

19 

20# The order of the arguments matters here. Please note 

21# - any setting in a later file will override the same in an earlier file 

22# - `base.py` contains core settings and should always be first 

23# - `openverse.py` contains app-specific settings and should always be last 

24include( 

25 # core settings 

26 "base.py", 

27 "security.py", 

28 "auth.py", 

29 "logging.py", 

30 "signals.py", 

31 "i18n.py", 

32 "static.py", 

33 # services 

34 "databases.py", 

35 "caches.py", 

36 "elasticsearch.py", 

37 "email.py", 

38 # additional packages 

39 "oauth2.py", 

40 "rest_framework.py", 

41 "sentry.py", 

42 "spectacular.py", 

43 "thumbnails.py", 

44 # Openverse-specific settings 

45 "link_validation.py", 

46 "misc.py", 

47 "openverse.py", 

48)