Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Cleanup the ci settings

Roland Geiderb6b9914bebd3
diff --git a/settings/ci.py b/settings/ci.py
index af4dbb364..ce32c8e3e 100644
--- a/settings/ci.py
+++ b/settings/ci.py
@@ -12,17 +12,16 @@
#
# You should have received a copy of the GNU Affero General Public License
-# ruff: noqa: F405
+# ruff: noqa: F405, F403
# Third Party
import environ
# wger
-from .settings_global import * # noqa: F403
+from .settings_global import *
env = environ.Env()
-# Use 'DEBUG = True' to get more details for server errors
DEBUG = True
# Application settings
@@ -36,62 +35,30 @@ WGER_SETTINGS['EXERCISE_CACHE_TTL'] = 3600 # in seconds
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': '/Users/roland/Entwicklung/wger/server/database.sqlite',
- 'USER': '',
- 'PASSWORD': '',
- 'HOST': '',
- 'PORT': '',
+ 'NAME': 'database.sqlite',
}
-} # yapf: disable
+}
-# List of administrations
ADMINS = (('Your name', '[email protected]'),)
MANAGERS = ADMINS
-# SERVER_EMAIL = '[email protected]'
-# The email address that error messages (and only error messages, such as
-# internal server errors) come from, such as those sent to ADMINS and MANAGERS.
-
-# Timezone for this installation. Consult settings_global.py for more information
TIME_ZONE = 'Europe/Berlin'
-
-# Make this unique, and don't share it with anybody.
SECRET_KEY = '61fxc$k%9nj!be-_up9%xzm(z)9l7$h33b1!@bf9581=c-03%p'
-# Your reCaptcha keys
RECAPTCHA_PUBLIC_KEY = ''
RECAPTCHA_PRIVATE_KEY = ''
USE_RECAPTCHA = False
-# The site's URL (e.g. http://www.my-local-gym.com or http://localhost:8000)
-# This is needed for uploaded files and images (exercise images, etc.) to be
-# properly served.
SITE_URL = 'http://localhost:8000'
-# Path to uploaded files
-# Absolute filesystem path to the directory that will hold user-uploaded files.
MEDIA_ROOT = env.str('DJANGO_MEDIA_ROOT', '/tmp/')
MEDIA_URL = '/media/'
-# Allow all hosts to access the application.
ALLOWED_HOSTS = [
'*',
]
-# This might be a good idea if you set up redis
-# SESSION_ENGINE = "django.contrib.sessions.backends.cache"
-
-# Configure a real backend in production
-# See: https://docs.djangoproject.com/en/dev/topics/email/#email-backends
-if DEBUG:
- EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
-
+EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
DEFAULT_FROM_EMAIL = WGER_SETTINGS['EMAIL_FROM']
-
-# The site's domain as used by the email verification workflow
EMAIL_PAGE_DOMAIN = SITE_URL
-
-#
-# https://django-axes.readthedocs.io/en/latest/
-#
AXES_ENABLED = False