[GH-ISSUE #623] Error import webvirtmgr.settings #474

Closed
opened 2026-02-27 16:39:23 +03:00 by kerem · 2 comments
Owner

Originally created by @mathiasaulo on GitHub (Sep 16, 2016).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/623

Operation System: CentOS
Server VM: KVM

When placed ./manage.py collectstatic command appears the error below

./manage.py collectstatic
Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/site-packages/django/core/management/init.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/site-packages/django/core/management/init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/site-packages/django/core/management/init.py", line 261, in fetch_command
commands = get_commands()
File "/usr/lib/python2.7/site-packages/django/core/management/init.py", line 107, in get_commands
apps = settings.INSTALLED_APPS
File "/usr/lib/python2.7/site-packages/django/conf/init.py", line 54, in getattr
self._setup(name)
File "/usr/lib/python2.7/site-packages/django/conf/init.py", line 49, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/python2.7/site-packages/django/conf/init.py", line 132, in init
% (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'webvirtmgr.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named webvirtmgr.settings

this is error

I need you help.. thanks

Originally created by @mathiasaulo on GitHub (Sep 16, 2016). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/623 Operation System: CentOS Server VM: KVM When placed ./manage.py collectstatic command appears the error below ./manage.py collectstatic Traceback (most recent call last): File "./manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/lib/python2.7/site-packages/django/core/management/**init**.py", line 399, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/site-packages/django/core/management/**init**.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/site-packages/django/core/management/**init**.py", line 261, in fetch_command commands = get_commands() File "/usr/lib/python2.7/site-packages/django/core/management/**init**.py", line 107, in get_commands apps = settings.INSTALLED_APPS File "/usr/lib/python2.7/site-packages/django/conf/**init**.py", line 54, in **getattr** self._setup(name) File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 49, in _setup self._wrapped = Settings(settings_module) File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 132, in **init** % (self.SETTINGS_MODULE, e) ImportError: Could not import settings 'webvirtmgr.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named webvirtmgr.settings this is error I need you help.. thanks
kerem closed this issue 2026-02-27 16:39:23 +03:00
Author
Owner

@Azendale commented on GitHub (Oct 9, 2016):

Sorry for the delayed response. It seems like a couple of things could be happening:

  • You could be in the wrong directory. Do a pwd and an ls and share them to give us an idea what directory you were in when this error occurred.
  • Are you using a virtual environment for python? Have you run something like <myvirtualenvironmentname>/bin/activate
<!-- gh-comment-id:252502908 --> @Azendale commented on GitHub (Oct 9, 2016): Sorry for the delayed response. It seems like a couple of things could be happening: - You could be in the wrong directory. Do a `pwd` and an `ls` and share them to give us an idea what directory you were in when this error occurred. - Are you using a virtual environment for python? Have you run something like `<myvirtualenvironmentname>/bin/activate`
Author
Owner

@mathiasaulo commented on GitHub (Oct 27, 2016):

Thanks, virtual environment python with error, redid installation process, some upgrade in the packages and works.

Thanks your patience. =)

<!-- gh-comment-id:256761091 --> @mathiasaulo commented on GitHub (Oct 27, 2016): Thanks, virtual environment python with error, redid installation process, some upgrade in the packages and works. Thanks your patience. =)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#474
No description provided.