First, work on python environment and then continue your job

*Badal Raina*


On Sun, 22 Sep 2019 at 15:39, Ashok Rai <inventor....@gmail.com> wrote:

> You better try using python 3
>
> On Sun, Sep 22, 2019 at 9:55 AM Pawan Jha <pawanjha2802...@gmail.com>
> 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 django-users+unsubscr...@googlegroups.com.
>> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKo87hqPrJwSqNfyE2mXCtww5JGpcN4bfMZ_5EmoYzj4jBLFig%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKo87hqPrJwSqNfyE2mXCtww5JGpcN4bfMZ_5EmoYzj4jBLFig%40mail.gmail.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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BMA24YPb7kfUE%2BcO%2BrZT6GoqwRF1AAM8VdXnrmRS%3D_RF3b%3Dfw%40mail.gmail.com.

Reply via email to