I think the problem is incompatibility between django version and python
version.

Install python 3.7 with the latest version of Django
Then try.

On Sun, 22 Sep 2019 at 06:10, Pawan Jha <[email protected]> wrote:

> When I run the Command "manage.py runserver" on the command
> prompt(WINDOWS), I get the following error:
> Traceback (most recent call last):
>   File "C:\Documents and Settings\harsh\Desktop\Django\mysite\manage.py",
> line 22, in <module>
>     execute_from_command_line(sys.argv)
>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
> line 364, in execute_from_command_line
>     utility.execute()
>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
> line 308, in execute
>     settings.INSTALLED_APPS
>   File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 56,
> in __getattr__
>     self._setup(name)
>   File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 41,
> in _setup
>     self._wrapped = Settings(settings_module)
>   File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 110,
> in __init__
>     mod = importlib.import_module(self.SETTINGS_MODULE)
>   File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
>     __import__(name)
> ImportError: Import by filename is not supported.
>
> Please Help Me!!!
>
>
> The same happens when i try to run "python -m django --version":
> Traceback (most recent call last):
>   File "C:\Python27\lib\runpy.py", line 174, in _run_module_as_main
>     "__main__", fname, loader, pkg_name)
>   File "C:\Python27\lib\runpy.py", line 72, in _run_code
>     exec code in run_globals
>   File "C:\Python27\lib\site-packages\django\__main__.py", line 9, in
> <module>
>     management.execute_from_command_line()
>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
> line 364, in execute_from_command_line
>     utility.execute()
>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
> line 308, in execute
>     settings.INSTALLED_APPS
>   File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 56,
> in __getattr__
>     self._setup(name)
>   File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 41,
> in _setup
>     self._wrapped = Settings(settings_module)
>   File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 110,
> in __init__
>     mod = importlib.import_module(self.SETTINGS_MODULE)
>   File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
>     __import__(name)
> ImportError: Import by filename is not supported.
>
> Please help Me!!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" 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-users/1db889b0-e7d7-4c50-a019-3dc660372061%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/1db889b0-e7d7-4c50-a019-3dc660372061%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users/CAE0AZGJ4PipDuKM7VSSC1CxcTo6wuFVamL4x61Nu2cV2QHRORg%40mail.gmail.com.

Reply via email to