Get a basic blog up and running
[styx.blog] / styx / settings.py
index e647c67..f57fcf7 100644 (file)
@@ -22,7 +22,7 @@ BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
 # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
 
 try:
-    with open('~/.styxrc', 'r') as styxrc:
+    with open(os.path.expanduser('~/.styxrc'), 'r') as styxrc:
         LOCAL_SETTINGS = json.loads(styxrc.read())
 
 except FileNotFoundError:
@@ -52,6 +52,7 @@ INSTALLED_APPS = [
     'django.contrib.sessions',
     'django.contrib.messages',
     'django.contrib.staticfiles',
+    'core',
 ]
 
 MIDDLEWARE = [
@@ -101,6 +102,7 @@ else:
             'ENGINE': 'django.db.backends.postgresql_psycopg2',
             'NAME': 'styx',
             'USER': 'styxuser',
+            'HOST': 'localhost',
             'PASSWORD': LOCAL_SETTINGS['DB_PASSWORD'],
         }
     }