Skip to content

Commit 9dafc0b

Browse files
committed
Fix setup without site profile model
1 parent d40791e commit 9dafc0b

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

docker-compose.base.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ x-app: &default-app
2121
PROJECT_VERSION: ${PROJECT_VERSION:-vX.Y.Z}
2222
SITE_DOMAIN: ${SITE_DOMAIN:?}
2323
SITE_NAME: ${SITE_NAME:?}
24-
SITE_USES_HTTPS: ${SITE_USES_HTTPS:-false}
2524
SUPERUSER_AUTH_TOKEN: ${SUPERUSER_AUTH_TOKEN:-}
2625
SUPERUSER_EMAIL: ${SUPERUSER_EMAIL:-}
2726
SUPERUSER_USERNAME: ${SUPERUSER_USERNAME:-}

example.env

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,11 @@ SUPERUSER_AUTH_TOKEN="your_superuser_auth_token_here"
5757
# Location of the backup folder.
5858
BACKUP_DIR="/tmp/backups"
5959

60-
# Site information that is stored initially in the database.
60+
# Site information that is synced to the database and used by the sites framework.
6161
SITE_NAME="RADIS"
6262
SITE_DOMAIN=localhost
63-
SITE_USES_HTTPS=false
6463

65-
# Settings for SSL encrpytion (only used in production).
64+
# Settings for SSL encryption (only used in production).
6665
# SSL_HOSTNAME and SSL_IP_ADDRESSES are used to generate self-signed certificates
6766
# with 'invoke generate-certificate-files', but you can also provide both files
6867
# on your own.

radis/core/templates/core/core_layout.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
{% block css %}
44
<link rel="stylesheet" type="text/css" href="{% static 'core/core.css' %}" />
55
{% endblock css %}
6+
{% block meta %}
7+
<meta name="description"
8+
content="RADIS (Radiology Report Archive and Discovery System) is an application to archive, query and collect radiology reports." />
9+
{% endblock meta %}
610
{% block script %}
711
<script src="{% static 'core/core.js' %}"></script>
812
{% endblock script %}

radis/settings/base.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,16 @@
2828
# Fetch version from the environment which is passed through from the latest git version tag
2929
PROJECT_VERSION = env.str("PROJECT_VERSION", default="vX.Y.Z")
3030

31+
# The project URL used in the navbar and footer
32+
PROJECT_URL = "https://github.com/openradx/radis"
33+
3134
# Needed by sites framework
3235
SITE_ID = 1
3336

34-
# The following settings are stored in the Site model on startup initially (see common/apps.py).
35-
# Once set they are stored in the database and can be changed via the admin interface.
37+
# The following settings are synced to the Site model of the sites framework on startup
38+
# (see common/apps.py in adit-radis-shared).
3639
SITE_DOMAIN = env.str("SITE_DOMAIN")
3740
SITE_NAME = env.str("SITE_NAME")
38-
SITE_USES_HTTPS = env.bool("SITE_USES_HTTPS")
39-
SITE_META_KEYWORDS = "RADIS, Radiology, Reports, Medicine, Tool"
40-
SITE_META_DESCRIPTION = "RADIS is an application to archive, query and collect radiology reports"
41-
SITE_PROJECT_URL = "https://github.com/openradx/radis"
4241

4342
SECRET_KEY = env.str("DJANGO_SECRET_KEY")
4443

radis/settings/development.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
DEBUG = True
55

6+
ENVIRONMENT = "development"
7+
68
INTERNAL_IPS = env.list("DJANGO_INTERNAL_IPS")
79

810
REMOTE_DEBUGGING_ENABLED = env.bool("REMOTE_DEBUGGING_ENABLED")

radis/settings/production.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
DEBUG = False
88

9+
ENVIRONMENT = "production"
10+
911
DATABASES["default"]["PASSWORD"] = env.str("POSTGRES_PASSWORD") # noqa: F405
1012

1113
STATIC_ROOT = env.str("DJANGO_STATIC_ROOT")

0 commit comments

Comments
 (0)