Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread Peter Mwai
> python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 18 unapplied migration(s). Your project may not work properly
until you apply the migrations for app(s): admin, auth, contenttypes,
sessions.
Django version 4.1.3, using settings 'pyshop.settings'
Starting development server at http://127.0.0.1:8000/

On Wed, 16 Nov 2022 at 16:10, Balogun Awwal 
wrote:

>
> What is the output given
> Sent from awwal
>
> On 16 Nov 2022, at 1:23 PM, Peter Mwai  wrote:
>
> 
> After activating the virtual environment it has finally accepted to run
>
> On Wed, 16 Nov 2022 at 13:35, Raúl Luján Delgado 
> wrote:
>
>> Hello Kasper,
>>
>> Probably is a Windows problem, because if you follow the rules of
>> differents tutorials, is easy to run the runserver,
>>
>> Sincerely,
>>
>> Raúl Luján Delgado
>>
>>
>>
>>
>>
>> El mié, 16 nov 2022 a las 6:10, 'Kasper Laudrup' via Django users (<
>> django-users@googlegroups.com>) escribió:
>>
>>> On 15/11/2022 18.49, Peter Mwai wrote:
>>> > Hello experts,
>>> > I was trying to start the server using 'python manage.py runserver'
>>> but
>>> > encountered this error,
>>> >
>>>
>>> You have a bug somewhere in your code. That most likely happened after
>>> you made a change somewhere.
>>>
>>> Look into what you changed, fix the bug and the error should disappear.
>>>
>>> Hope that helps.
>>>
>>> Kind regards,
>>>
>>> Kasper Laudrup
>>>
>>> --
>>> 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/27422127-db9b-b4f0-bca7-204642edaeb0%40stacktrace.dk
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/LjXq_S6L8I0/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/CAN3bF7Gdm%2BTK8nKAgq%3DCv-yXEP2uCJ-cO_1jei5Bb2KH1sxjXw%40mail.gmail.com
>> 
>> .
>>
> --
> 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/CACP2728fRRcZSa9MM5RAgeDA26c5PG9eE1%2B6YHzAHXkgjcUY2Q%40mail.gmail.com
> 
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/LjXq_S6L8I0/unsubscribe.
> To unsubscribe from this group and all its topics, 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/6D5F0B4C-EFA8-409C-A711-194DAE447852%40gmail.com
> 
> .
>

-- 
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/CACP272_h%3DzcCidt7h%3DVWOkZ5G-BNBUZZE6NhtbwqRLjz%2B0oROw%40mail.gmail.com.


Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread Balogun Awwal

What is the output given 
Sent from awwal

> On 16 Nov 2022, at 1:23 PM, Peter Mwai  wrote:
> 
> After activating the virtual environment it has finally accepted to run
> 
>> On Wed, 16 Nov 2022 at 13:35, Raúl Luján Delgado  
>> wrote:
>> Hello Kasper,
>> 
>> Probably is a Windows problem, because if you follow the rules of differents 
>> tutorials, is easy to run the runserver,
>> 
>> Sincerely,
>> 
>> Raúl Luján Delgado
>> 
>> 
>> 
>> 
>> 
>>> El mié, 16 nov 2022 a las 6:10, 'Kasper Laudrup' via Django users 
>>> () escribió:
>>> On 15/11/2022 18.49, Peter Mwai wrote:
>>> > Hello experts,
>>> > I was trying to start the server using 'python manage.py runserver' but 
>>> > encountered this error,
>>> >
>>> 
>>> You have a bug somewhere in your code. That most likely happened after 
>>> you made a change somewhere.
>>> 
>>> Look into what you changed, fix the bug and the error should disappear.
>>> 
>>> Hope that helps.
>>> 
>>> Kind regards,
>>> 
>>> Kasper Laudrup
>>> 
>>> -- 
>>> 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/27422127-db9b-b4f0-bca7-204642edaeb0%40stacktrace.dk.
>> 
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/django-users/LjXq_S6L8I0/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/CAN3bF7Gdm%2BTK8nKAgq%3DCv-yXEP2uCJ-cO_1jei5Bb2KH1sxjXw%40mail.gmail.com.
> 
> -- 
> 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/CACP2728fRRcZSa9MM5RAgeDA26c5PG9eE1%2B6YHzAHXkgjcUY2Q%40mail.gmail.com.

-- 
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/6D5F0B4C-EFA8-409C-A711-194DAE447852%40gmail.com.


Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread Peter Mwai
After activating the virtual environment it has finally accepted to run

On Wed, 16 Nov 2022 at 13:35, Raúl Luján Delgado 
wrote:

> Hello Kasper,
>
> Probably is a Windows problem, because if you follow the rules of
> differents tutorials, is easy to run the runserver,
>
> Sincerely,
>
> Raúl Luján Delgado
>
>
>
>
>
> El mié, 16 nov 2022 a las 6:10, 'Kasper Laudrup' via Django users (<
> django-users@googlegroups.com>) escribió:
>
>> On 15/11/2022 18.49, Peter Mwai wrote:
>> > Hello experts,
>> > I was trying to start the server using 'python manage.py runserver' but
>> > encountered this error,
>> >
>>
>> You have a bug somewhere in your code. That most likely happened after
>> you made a change somewhere.
>>
>> Look into what you changed, fix the bug and the error should disappear.
>>
>> Hope that helps.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> 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/27422127-db9b-b4f0-bca7-204642edaeb0%40stacktrace.dk
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/LjXq_S6L8I0/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAN3bF7Gdm%2BTK8nKAgq%3DCv-yXEP2uCJ-cO_1jei5Bb2KH1sxjXw%40mail.gmail.com
> 
> .
>

-- 
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/CACP2728fRRcZSa9MM5RAgeDA26c5PG9eE1%2B6YHzAHXkgjcUY2Q%40mail.gmail.com.


Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread 'Kasper Laudrup' via Django users

On 16/11/2022 12.27, Jitendra kumar Patra wrote:

Could you share what type of error you are getting?



I'm not getting any errors. I don't know any more than you. We have to 
wait and see if Peter Mwai finds it relevant to share what is needed for 
any of us to help him.


Kind regards,
Kasper Laudrup

--
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/16bb2392-007e-b1f7-aefb-d80df7c64825%40stacktrace.dk.


Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread 'Kasper Laudrup' via Django users

On 16/11/2022 11.33, Raúl Luján Delgado wrote:

Hello Kasper,

Probably is a Windows problem, because if you follow the rules of 
differents tutorials, is easy to run the runserver,




Could be. Could be any kind of problem really. Your guess is as good as 
mine.


Only Peter Mwai knows but it doesn't seem like he find it necessary to 
share the relevant details so we can only guess.


Kind regards,
Kasper Laudrup

--
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/91069261-4a1d-6a36-ca56-55f13aee56e5%40stacktrace.dk.


Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread Jitendra kumar Patra
Could you share what type of error you are getting?

On Wed, Nov 16, 2022 at 2:39 PM 'Kasper Laudrup' via Django users <
django-users@googlegroups.com> wrote:

> On 15/11/2022 18.49, Peter Mwai wrote:
> > Hello experts,
> > I was trying to start the server using 'python manage.py runserver' but
> > encountered this error,
> >
>
> You have a bug somewhere in your code. That most likely happened after
> you made a change somewhere.
>
> Look into what you changed, fix the bug and the error should disappear.
>
> Hope that helps.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/27422127-db9b-b4f0-bca7-204642edaeb0%40stacktrace.dk
> .
>

-- 
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/CAOAROfn_fqxog0xW9LjuS4jK%2BbP%3DjUshz5gswra-4Z6rF2NiLQ%40mail.gmail.com.


Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread Raúl Luján Delgado
Hello Kasper,

Probably is a Windows problem, because if you follow the rules of
differents tutorials, is easy to run the runserver,

Sincerely,

Raúl Luján Delgado





El mié, 16 nov 2022 a las 6:10, 'Kasper Laudrup' via Django users (<
django-users@googlegroups.com>) escribió:

> On 15/11/2022 18.49, Peter Mwai wrote:
> > Hello experts,
> > I was trying to start the server using 'python manage.py runserver' but
> > encountered this error,
> >
>
> You have a bug somewhere in your code. That most likely happened after
> you made a change somewhere.
>
> Look into what you changed, fix the bug and the error should disappear.
>
> Hope that helps.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/27422127-db9b-b4f0-bca7-204642edaeb0%40stacktrace.dk
> .
>

-- 
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/CAN3bF7Gdm%2BTK8nKAgq%3DCv-yXEP2uCJ-cO_1jei5Bb2KH1sxjXw%40mail.gmail.com.


Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread 'Kasper Laudrup' via Django users

On 15/11/2022 18.49, Peter Mwai wrote:

Hello experts,
I was trying to start the server using 'python manage.py runserver' but 
encountered this error,




You have a bug somewhere in your code. That most likely happened after 
you made a change somewhere.


Look into what you changed, fix the bug and the error should disappear.

Hope that helps.

Kind regards,

Kasper Laudrup

--
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/27422127-db9b-b4f0-bca7-204642edaeb0%40stacktrace.dk.


Re: manage.py runserver error

2019-09-22 Thread Sanjeev Shukla
to check version of django use - >django-admin --version

-- 
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/73f2844c-7d5a-4bdf-80ca-cec882dcd6ca%40googlegroups.com.


Re: manage.py runserver error

2019-09-22 Thread Badal Raina
First, work on python environment and then continue your job


*Badal Raina*


On Sun, 22 Sep 2019 at 15:39, Ashok Rai  wrote:

> You better try using python 3
>
> On Sun, Sep 22, 2019 at 9:55 AM Pawan Jha 
> 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 
>> 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
>> 
>> 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
>> 
>> .
>>
> --
> 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
> 
> .
>

-- 
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.


Re: manage.py runserver error

2019-09-22 Thread oba stephen
Did you use "python manage.py runserver" or just "manage.py runserver"?

On Sun, Sep 22, 2019, 5:09 AM Pawan Jha  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 
> 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
> 
> 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
> 
> .
>

-- 
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/CAAJsLnqegFt%3D0wqq1AGLzEo7qG6TjQAv%2B8iDo478rWG3fYQtXw%40mail.gmail.com.


Re: manage.py runserver error

2019-09-22 Thread Ashok Rai
You better try using python 3

On Sun, Sep 22, 2019 at 9:55 AM Pawan Jha  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 
> 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
> 
> 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
> 
> .
>

-- 
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.


Re: manage.py runserver error

2019-09-22 Thread Abu Yusuf
It's a shame to use python2 still now. Try to start your django project
with virtualenvironment with python-3 version.
Try to follow the standard way to get start. Everything will be fine.

On Sun, Sep 22, 2019 at 10:09 AM Pawan Jha 
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 
> 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
> 
> 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
> 
> .
>

-- 
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/CACNsr2_2dQz9bbBsovQGnw-MgjTt0af-YUh8C1%3D-DVbPBA0ekg%40mail.gmail.com.


Re: manage.py runserver error

2019-09-21 Thread Ayser shuhaib
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  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 
> 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
> 
> 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
> 
> .
>

-- 
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/CAE0AZGJ4PipDuKM7VSSC1CxcTo6wuFVamL4x61Nu2cV2QHRORg%40mail.gmail.com.