mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 15:35:57 +03:00
[GH-ISSUE #395] No module named 'webvirtcloud.settings',when run 'docker build.......'command #246
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#246
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lushtech on GitHub (Dec 7, 2020).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/395
The steps to reproduce the error
1 step: Run git clone
git clone https://github.com/retspen/webvirtcloud.git2 step: Run docker build
sudo docker build -t mywebvirtcloud .The error shows as blow when build running
`Step 11/19 : RUN . venv/bin/activate && python3 manage.py migrate && chown -R www-data:www-data /srv/webvirtcloud
---> Running in 290a72712f56
Traceback (most recent call last):
File "manage.py", line 21, in
main()
......
......
......
ModuleNotFoundError: No module named 'webvirtcloud.settings'
The command '/bin/sh -c . venv/bin/activate && python3 manage.py migrate && chown -R www-data:www-data /srv/webvirtcloud' returned a non-zero code: 1
`
@lushtech commented on GitHub (Dec 7, 2020):
I copy the file webvirtcloud/settings.py.template as settings.py, and set the SECRET_KEY, and the docker build work well.
And then running the container ok base on the image.
My suggestion: add a small section in the READ.md to tell people how to start it simply using docker.
@catborise commented on GitHub (Dec 7, 2020):
There is a wiki page for docker/podman builds. As you Said we should add a reference to it