Opened 3 years ago

Closed 3 years ago

#33020 closed Uncategorized (invalid)

Run Time Error — at Version 1

Reported by: Rana Zain Owned by: nobody
Component: Uncategorized Version: 3.2
Severity: Normal Keywords: Django Erroe
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

When I run every project it shows me this error.

Traceback (most recent call last):
  File "E:\Git Project\django-calculator\mainproject\manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py", line 419, in execute_from_command_l
ine
    utility.execute()
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\base.py", line 367, in run_from_argv
    connections.close_all()
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\utils.py", line 208, in close_all
    for alias in self:
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\connection.py", line 73, in __iter__
    return iter(self.settings)
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\functional.py", line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\connection.py", line 45, in settings
    self._settings = self.configure_settings(self._settings)
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\utils.py", line 144, in configure_settings
    databases = super().configure_settings(databases)
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\connection.py", line 50, in configure_settings
    settings = getattr(django_settings, self.settings_name)
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\conf\__init__.py", line 82, in __getattr__
    self._setup(name)
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\conf\__init__.py", line 69, in _setup
    self._wrapped = Settings(settings_module)
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\site-packages\django\conf\__init__.py", line 170, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "C:\Users\iamra\AppData\Local\Programs\Python\Python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'main'

Change History (1)

comment:1 by Tim Graham, 3 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

Please see TicketClosingReasons/UseSupportChannels for ways to get help debugging your issue. If you find that Django is at fault, feel free to reopen with an explanation.

Note: See TracTickets for help on using tickets.
Back to Top