diff --git a/postamates/settings.py b/postamates/settings.py index f71c406..cfce8ea 100644 --- a/postamates/settings.py +++ b/postamates/settings.py @@ -143,8 +143,8 @@ CORS_ORIGIN_ALLOW_ALL = True # If this is used then `CORS_ORIGIN_WHITELIST` will CORS_ALLOW_CREDENTIALS = True CORS_ORIGIN_ALLOW = True -DB_URL = 'postgresql://postamates_user:postamates_pass@postamates.spatiality.website:5481/postamates_db' -# DB_URL = f"postgresql://{os.getenv('POSTGRES_USER', 'postgres')}:{os.getenv('POSTGRES_PASSWORD', 'postgres')}@{os.getenv('POSTGRES_HOST', 'postgres')}:{os.getenv('POSTGRES_PORT', 'postgres')}/{os.getenv('POSTGRES_DB', 'postgres')}" +# DB_URL = 'postgresql://postamates_user:postamates_pass@postamates.spatiality.website:5481/postamates_db' +DB_URL = f"postgresql://{os.getenv('POSTGRES_USER', 'postgres')}:{os.getenv('POSTGRES_PASSWORD', 'postgres')}@{os.getenv('POSTGRES_HOST', 'postgres')}:{os.getenv('POSTGRES_PORT', 'postgres')}/{os.getenv('POSTGRES_DB', 'postgres')}" if os.getenv('local') is not None: GDAL_LIBRARY_PATH = '/opt/homebrew/opt/gdal/lib/libgdal.dylib' GEOS_LIBRARY_PATH = '/opt/homebrew/opt/geos/lib/libgeos_c.dylib' \ No newline at end of file diff --git a/service/urls.py b/service/urls.py index ea03f38..1a5f68a 100644 --- a/service/urls.py +++ b/service/urls.py @@ -15,6 +15,7 @@ schema_view = get_schema_view( contact=openapi.Contact(email="contact@snippets.local"), license=openapi.License(name="BSD License"), ), + url='https://postamates.spatiality.website/', public=True, permission_classes=[permissions.AllowAny], )