Skip to content

Commit

Permalink
Merge pull request #1343 from MatthiasLohr/feature/db-url-path
Browse files Browse the repository at this point in the history
Allow to specify an actual path using DATABASE_URL
  • Loading branch information
vabene1111 committed Jan 17, 2022
2 parents d4242a2 + b3e971f commit f12196d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/settings.py
Expand Up @@ -258,7 +258,7 @@
# Load settings from env files
if os.getenv('DATABASE_URL'):
match = re.match(
r'(?P<schema>\w+):\/\/(?P<user>[\w\d_-]+)(:(?P<password>[^@]+))?@(?P<host>[^:/]+)(:(?P<port>\d+))?(\/(?P<database>[\w\d_-]+))?',
r'(?P<schema>\w+):\/\/(?P<user>[\w\d_-]+)(:(?P<password>[^@]+))?@(?P<host>[^:/]+)(:(?P<port>\d+))?(\/(?P<database>[\w\d\/\._-]+))?',
os.getenv('DATABASE_URL')
)
settings = match.groupdict()
Expand Down

0 comments on commit f12196d

Please sign in to comment.