Browse Source

added more verbose login informations to config.py

/\/ \-/ ❭❬ 1 year ago
parent
commit
a7eaec2331
1 changed files with 8 additions and 3 deletions
  1. 8
    3
      config.py

+ 8
- 3
config.py View File

@@ -1,3 +1,8 @@
1
+#!/usr/bin/env python3 
2
+
3
+# The main configuration file of radiorhino
4
+# TODO : use a real configuration manager for some of the settings
5
+
1 6
 import os
2 7
 basedir = os.path.abspath(os.path.dirname(__file__))
3 8
 
@@ -25,7 +30,7 @@ class DevelopmentConfig(Config):
25 30
     # SQLite :
26 31
     #SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or 'sqlite:///' + os.path.join(basedir, 'data-dev.sqlite')
27 32
     # PostgreSQL :
28
-    SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or 'postgresql://user:password@localhost/rhino'
33
+    SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or 'postgresql://rhino:rhinorhino@localhost/rhino'
29 34
 
30 35
 class TestingConfig(Config):
31 36
     TESTING = True
@@ -34,7 +39,7 @@ class TestingConfig(Config):
34 39
     MAIL_USE_TLS = True
35 40
     MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
36 41
     MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
37
-    SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or 'postgresql://user:password@localhost/rhino'
42
+    SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or 'postgresql://rhino:rhinorhino@localhost/rhino'
38 43
     SQLALCHEMY_TRACK_MODIFICATIONS = False
39 44
 
40 45
 class ProductionConfig(Config):
@@ -43,7 +48,7 @@ class ProductionConfig(Config):
43 48
     MAIL_USE_TLS = True
44 49
     MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
45 50
     MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
46
-    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'postgresql+psycopg2://user:password@localhost/rhino'
51
+    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'postgresql+psycopg2://rhino:rhinorhino@localhost/rhino'
47 52
     SQLALCHEMY_TRACK_MODIFICATIONS = False
48 53
 
49 54
 config = {

Loading…
Cancel
Save