#33020: Run Time Error
-----------------------------------------+------------------------------
               Reporter:  RanaZain1998   |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  3.2
               Severity:  Normal         |       Keywords:  Django Erroe
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------------
 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'

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33020>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.5b2a5c462565d8ea71f21de8872af618%40djangoproject.com.

Reply via email to