-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup.sh
script attempts to copy file in bakerydemo
which doesn't exist anymore
#54
Comments
Thanks @floels I think that just referencing import dj_database_url
# Override settings here
db_from_env = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(db_from_env) But I think we can just create our own local settings example file to maintain in this repository. If you want to create a PR then go for it. |
Hi @saevarom, Thanks for the quick reply. Ok so just to make sure I understand, we would:
import dj_database_url
# Override settings here
db_from_env = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(db_from_env) at the root of this
docker-wagtail-develop/setup.sh Line 40 in 9ee7679
in
|
Yes, almost, but the full contents of the from bakerydemo.settings.dev import * # noqa
import dj_database_url
# Override settings here
db_from_env = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(db_from_env) I omitted the first line to only show what the difference between the files was |
Hi,
When running the
setup.sh
script locally to set up my local Wagtail development environment, I got the following error in the terminal:Creating local settings file cp: bakerydemo/bakerydemo/settings/local.py.docker-compose-example: No such file or directory
The error comes from the following line of the script:
docker-wagtail-develop/setup.sh
Line 40 in 9ee7679
and indeed
bakerydemo/settings/local.py.docker-compose-example
doesn't exist anymore inbakerydemo
. It was removed in this PR merged three weeks ago.I guess the correct command in
setup.sh
would be:cp bakerydemo/bakerydemo/settings/local.py.example bakerydemo/bakerydemo/settings/local.py
I can make a PR to change it if you confirm.
The text was updated successfully, but these errors were encountered: