File postorius-settings.patch of Package python-postorius

Index: postorius-1.3.7/example_project/settings.py
===================================================================
--- postorius-1.3.7.orig/example_project/settings.py	2022-10-22 07:10:31.000000000 +0200
+++ postorius-1.3.7/example_project/settings.py	2022-11-17 16:05:22.163232646 +0100
@@ -142,7 +142,7 @@ WSGI_APPLICATION = 'wsgi.application'
 DATABASES = {
     'default': {
         'ENGINE': 'django.db.backends.sqlite3',
-        'NAME': os.path.join(BASE_DIR, 'postorius.db'),
+        'NAME': '/var/lib/postorius/data/postorius.db',
     }
 }
 
@@ -190,7 +190,7 @@ USE_TZ = True
 # Don't put anything in this directory yourself; store your static files
 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
 # Example: "/var/www/example.com/static/"
-STATIC_ROOT = os.path.join(BASE_DIR, 'static')
+STATIC_ROOT = '/srv/www/webapps/mailman/postorius/static'
 
 # URL prefix for static files.
 # Example: "http://example.com/static/", "http://static.example.com/"
@@ -269,7 +269,7 @@ LOGGING = {
             'level': 'INFO',
             #'class': 'logging.handlers.RotatingFileHandler',
             'class': 'logging.handlers.WatchedFileHandler',
-            'filename': os.path.join(BASE_DIR, 'logs', 'postorius.log'),
+            'filename': '/var/log/postorius/postorius.log',
             'formatter': 'verbose',
         },
     },
openSUSE Build Service is sponsored by