Opened 3 years ago

Last modified 3 years ago

#33020 closed Uncategorized

Run Time Error — at Initial Version

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

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 (0)

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