Re: Python manage.py runserver error

2020-08-26 Thread Ajeet Kumar Gupt
Hi,

Install django in virtual environment.

Thanks

On Wed, Aug 26, 2020, 6:57 AM ROHINI PUNDE  wrote:

> Hi,
> while running "python manage.py runserver"  I got this type of error ,I am
> not understand how to to solve this problem.please help me out.
> find out on this attachment(error.png)
>
>
> --
> 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/CAO9_9ZZRDPCFb4FnGWNLxku8VTa0x3LNKvVtUFm%2BVT%3DJ2uTOvg%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%2BTqRsthSWVK2XBfmafmvy7puQgQD%3DUSfzjDB2%3DA4-n6Pw4%3DDQ%40mail.gmail.com.


Re: Python manage.py runserver error

2020-08-25 Thread ROHINI PUNDE
Thank you so much,
run properly on server.

On Tue, Aug 25, 2020 at 8:22 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> Please create a virtual environment, activate it and install django
> and other packages inside that environment.
> All the best.
>
> On Wed, Aug 26, 2020 at 8:28 AM ROHINI PUNDE 
> wrote:
>
>> Hi,
>> while running "python manage.py runserver"  I got this type of error ,I
>> am not understand how to to solve this problem.please help me out.
>> find out on this attachment(error.png)
>>
>>
>> --
>> 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/CAO9_9ZZRDPCFb4FnGWNLxku8VTa0x3LNKvVtUFm%2BVT%3DJ2uTOvg%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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/CAK5m3167biZ3WQVt4OBjDJX5Z0K%2Br%3DJLOXLP989UsZx1hmPOqg%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/CAO9_9Zbh7-F5b-Q5mnhuPfo3z6%2BktLcNUaOSbAAsCoDy_FjO2w%40mail.gmail.com.


Re: Python manage.py runserver error

2020-08-25 Thread RANGA BHARATH JINKA
Hi,

Please create a virtual environment, activate it and install django and
other packages inside that environment.
All the best.

On Wed, Aug 26, 2020 at 8:28 AM ROHINI PUNDE  wrote:

> Hi,
> while running "python manage.py runserver"  I got this type of error ,I am
> not understand how to to solve this problem.please help me out.
> find out on this attachment(error.png)
>
>
> --
> 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/CAO9_9ZZRDPCFb4FnGWNLxku8VTa0x3LNKvVtUFm%2BVT%3DJ2uTOvg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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/CAK5m3167biZ3WQVt4OBjDJX5Z0K%2Br%3DJLOXLP989UsZx1hmPOqg%40mail.gmail.com.


Python manage.py runserver error

2020-08-25 Thread ROHINI PUNDE
Hi,
while running "python manage.py runserver"  I got this type of error ,I am
not understand how to to solve this problem.please help me out.
find out on this attachment(error.png)

-- 
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/CAO9_9ZZRDPCFb4FnGWNLxku8VTa0x3LNKvVtUFm%2BVT%3DJ2uTOvg%40mail.gmail.com.


Re: python manage.py runserver error

2020-06-19 Thread Robert Rajendra
ModuleNotFoundError: No module named 'hello_world'

This is your error, please make sure that hello_world exists and
imported properly

On Fri, 19 Jun 2020 at 18:52, Archit Keshri  wrote:

>
>
> On Fri, 19 Jun, 2020, 5:31 PM DHRUVA,  wrote:
>
>> Just try adding appname into the installed Apps in the Settings file
>>
>> On Fri, 19 Jun, 2020, 5:27 PM RANGA BHARATH JINKA, <
>> bharathjink...@gmail.com> wrote:
>>
>>> Hi,
>>> You have to go into your django project folder where manage.py file
>>> is located. Test with using "ls" inside your command prompt. All the best.
>>>
>>> On Fri, Jun 19, 2020 at 5:08 PM Tanisha Jain 
>>> wrote:
>>>
 still the problem persists.

 On Fri, 19 Jun 2020 at 07:15, Utsab Bashyal  wrote:

> enter inside your project directory   using command cd project_name in
> termina and run manage.py runserver
>
>
> On Fri, Jun 19, 2020 at 6:52 AM Thomas Furtado <
> thomasfurtad...@gmail.com> wrote:
>
>> Hii, thanks for answering but it didn't work
>> Now it showed: no module named 'django.contrib.statics'
>>
>> Em qui, 18 de jun de 2020 22:03, chaitanya orakala <
>> chaitu.orak...@gmail.com> escreveu:
>>
>>> Hi Thomas,
>>> Please run the following commands to solve this problem, before
>>> running the server.
>>>
>>> python manage.py makemigrations
>>> python manage.py migrate
>>>
>>> and then command
>>> python manage.py runserver
>>>
>>> Hope this helps. Let me know if you have any questions
>>>
>>> On Thu, Jun 18, 2020 at 6:15 PM Thomas Furtado <
>>> thomasfurtad...@gmail.com> wrote:
>>>
 Hi, I've seen you sent this last year and I'm having the same error
 message at my pycharm... Did you solve this?? could you help me with 
 this
 please??

 Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann
 escreveu:
>
> (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python
> manage.py runserver
> Watching for file changes with StatReloader
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File "C:\Python37\lib\threading.py", line 926, in
> _bootstrap_inner
> self.run()
>   File "C:\Python37\lib\threading.py", line 870, in run
> self._target(*self._args, **self._kwargs)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 54, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 77, in raise_last_exception
> raise _exception[1]
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 54, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py",
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py",
> line 91, in populate
> app_config = AppConfig.create(entry)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py",
> line 90, in create
> module = import_module(entry)
>   File "C:\Python37\lib\importlib\__init__.py", line 127, in
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1006, in _gcd_import
>   File "", line 983, in _find_and_load
>   File "", line 965, in
> _find_and_load_unlocked
> ModuleNotFoundError: No module named 'hello_world'
>
> Traceback (most recent call last):
>   File "manage.py", line 21, in 
> main()
>   File "manage.py", line 17, in main
> execute_from_command_line(sys.argv)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
> line 381, in execute_from_command_line
> utility.execute()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
> line 375, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> 

Re: python manage.py runserver error

2020-06-19 Thread Archit Keshri
On Fri, 19 Jun, 2020, 5:31 PM DHRUVA,  wrote:

> Just try adding appname into the installed Apps in the Settings file
>
> On Fri, 19 Jun, 2020, 5:27 PM RANGA BHARATH JINKA, <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>> You have to go into your django project folder where manage.py file
>> is located. Test with using "ls" inside your command prompt. All the best.
>>
>> On Fri, Jun 19, 2020 at 5:08 PM Tanisha Jain 
>> wrote:
>>
>>> still the problem persists.
>>>
>>> On Fri, 19 Jun 2020 at 07:15, Utsab Bashyal  wrote:
>>>
 enter inside your project directory   using command cd project_name in
 termina and run manage.py runserver


 On Fri, Jun 19, 2020 at 6:52 AM Thomas Furtado <
 thomasfurtad...@gmail.com> wrote:

> Hii, thanks for answering but it didn't work
> Now it showed: no module named 'django.contrib.statics'
>
> Em qui, 18 de jun de 2020 22:03, chaitanya orakala <
> chaitu.orak...@gmail.com> escreveu:
>
>> Hi Thomas,
>> Please run the following commands to solve this problem, before
>> running the server.
>>
>> python manage.py makemigrations
>> python manage.py migrate
>>
>> and then command
>> python manage.py runserver
>>
>> Hope this helps. Let me know if you have any questions
>>
>> On Thu, Jun 18, 2020 at 6:15 PM Thomas Furtado <
>> thomasfurtad...@gmail.com> wrote:
>>
>>> Hi, I've seen you sent this last year and I'm having the same error
>>> message at my pycharm... Did you solve this?? could you help me with 
>>> this
>>> please??
>>>
>>> Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann
>>> escreveu:

 (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python
 manage.py runserver
 Watching for file changes with StatReloader
 Exception in thread django-main-thread:
 Traceback (most recent call last):
   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
 self.run()
   File "C:\Python37\lib\threading.py", line 870, in run
 self._target(*self._args, **self._kwargs)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
 line 54, in wrapper
 fn(*args, **kwargs)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 line 109, in inner_run
 autoreload.raise_last_exception()
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
 line 77, in raise_last_exception
 raise _exception[1]
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 line 337, in execute
 autoreload.check_errors(django.setup)()
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
 line 54, in wrapper
 fn(*args, **kwargs)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py",
 line 24, in setup
 apps.populate(settings.INSTALLED_APPS)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py",
 line 91, in populate
 app_config = AppConfig.create(entry)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py",
 line 90, in create
 module = import_module(entry)
   File "C:\Python37\lib\importlib\__init__.py", line 127, in
 import_module
 return _bootstrap._gcd_import(name[level:], package, level)
   File "", line 1006, in _gcd_import
   File "", line 983, in _find_and_load
   File "", line 965, in
 _find_and_load_unlocked
 ModuleNotFoundError: No module named 'hello_world'

 Traceback (most recent call last):
   File "manage.py", line 21, in 
 main()
   File "manage.py", line 17, in main
 execute_from_command_line(sys.argv)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 line 381, in execute_from_command_line
 utility.execute()
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 line 375, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
 line 323, in run_from_argv
 self.execute(*args, **cmd_options)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 line 60, in execute
 

Re: python manage.py runserver error

2020-06-19 Thread DHRUVA
Just try adding appname into the installed Apps in the Settings file

On Fri, 19 Jun, 2020, 5:27 PM RANGA BHARATH JINKA, 
wrote:

> Hi,
> You have to go into your django project folder where manage.py file is
> located. Test with using "ls" inside your command prompt. All the best.
>
> On Fri, Jun 19, 2020 at 5:08 PM Tanisha Jain 
> wrote:
>
>> still the problem persists.
>>
>> On Fri, 19 Jun 2020 at 07:15, Utsab Bashyal  wrote:
>>
>>> enter inside your project directory   using command cd project_name in
>>> termina and run manage.py runserver
>>>
>>>
>>> On Fri, Jun 19, 2020 at 6:52 AM Thomas Furtado <
>>> thomasfurtad...@gmail.com> wrote:
>>>
 Hii, thanks for answering but it didn't work
 Now it showed: no module named 'django.contrib.statics'

 Em qui, 18 de jun de 2020 22:03, chaitanya orakala <
 chaitu.orak...@gmail.com> escreveu:

> Hi Thomas,
> Please run the following commands to solve this problem, before
> running the server.
>
> python manage.py makemigrations
> python manage.py migrate
>
> and then command
> python manage.py runserver
>
> Hope this helps. Let me know if you have any questions
>
> On Thu, Jun 18, 2020 at 6:15 PM Thomas Furtado <
> thomasfurtad...@gmail.com> wrote:
>
>> Hi, I've seen you sent this last year and I'm having the same error
>> message at my pycharm... Did you solve this?? could you help me with this
>> please??
>>
>> Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann
>> escreveu:
>>>
>>> (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python
>>> manage.py runserver
>>> Watching for file changes with StatReloader
>>> Exception in thread django-main-thread:
>>> Traceback (most recent call last):
>>>   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
>>> self.run()
>>>   File "C:\Python37\lib\threading.py", line 870, in run
>>> self._target(*self._args, **self._kwargs)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 54, in wrapper
>>> fn(*args, **kwargs)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>>> line 109, in inner_run
>>> autoreload.raise_last_exception()
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 77, in raise_last_exception
>>> raise _exception[1]
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>>> line 337, in execute
>>> autoreload.check_errors(django.setup)()
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 54, in wrapper
>>> fn(*args, **kwargs)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py",
>>> line 24, in setup
>>> apps.populate(settings.INSTALLED_APPS)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py",
>>> line 91, in populate
>>> app_config = AppConfig.create(entry)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py",
>>> line 90, in create
>>> module = import_module(entry)
>>>   File "C:\Python37\lib\importlib\__init__.py", line 127, in
>>> import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>   File "", line 1006, in _gcd_import
>>>   File "", line 983, in _find_and_load
>>>   File "", line 965, in
>>> _find_and_load_unlocked
>>> ModuleNotFoundError: No module named 'hello_world'
>>>
>>> Traceback (most recent call last):
>>>   File "manage.py", line 21, in 
>>> main()
>>>   File "manage.py", line 17, in main
>>> execute_from_command_line(sys.argv)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>>> line 381, in execute_from_command_line
>>> utility.execute()
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>>> line 375, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>>> line 323, in run_from_argv
>>> self.execute(*args, **cmd_options)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>>> line 60, in execute
>>> super().execute(*args, **options)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>>> line 364, in execute
>>> output = self.handle(*args, **options)
>>>  

Re: python manage.py runserver error

2020-06-19 Thread RANGA BHARATH JINKA
Hi,
You have to go into your django project folder where manage.py file is
located. Test with using "ls" inside your command prompt. All the best.

On Fri, Jun 19, 2020 at 5:08 PM Tanisha Jain 
wrote:

> still the problem persists.
>
> On Fri, 19 Jun 2020 at 07:15, Utsab Bashyal  wrote:
>
>> enter inside your project directory   using command cd project_name in
>> termina and run manage.py runserver
>>
>>
>> On Fri, Jun 19, 2020 at 6:52 AM Thomas Furtado 
>> wrote:
>>
>>> Hii, thanks for answering but it didn't work
>>> Now it showed: no module named 'django.contrib.statics'
>>>
>>> Em qui, 18 de jun de 2020 22:03, chaitanya orakala <
>>> chaitu.orak...@gmail.com> escreveu:
>>>
 Hi Thomas,
 Please run the following commands to solve this problem, before running
 the server.

 python manage.py makemigrations
 python manage.py migrate

 and then command
 python manage.py runserver

 Hope this helps. Let me know if you have any questions

 On Thu, Jun 18, 2020 at 6:15 PM Thomas Furtado <
 thomasfurtad...@gmail.com> wrote:

> Hi, I've seen you sent this last year and I'm having the same error
> message at my pycharm... Did you solve this?? could you help me with this
> please??
>
> Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann escreveu:
>>
>> (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py
>> runserver
>> Watching for file changes with StatReloader
>> Exception in thread django-main-thread:
>> Traceback (most recent call last):
>>   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
>> self.run()
>>   File "C:\Python37\lib\threading.py", line 870, in run
>> self._target(*self._args, **self._kwargs)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 54, in wrapper
>> fn(*args, **kwargs)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>> line 109, in inner_run
>> autoreload.raise_last_exception()
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 77, in raise_last_exception
>> raise _exception[1]
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>> line 337, in execute
>> autoreload.check_errors(django.setup)()
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 54, in wrapper
>> fn(*args, **kwargs)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py",
>> line 24, in setup
>> apps.populate(settings.INSTALLED_APPS)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py",
>> line 91, in populate
>> app_config = AppConfig.create(entry)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py",
>> line 90, in create
>> module = import_module(entry)
>>   File "C:\Python37\lib\importlib\__init__.py", line 127, in
>> import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>   File "", line 1006, in _gcd_import
>>   File "", line 983, in _find_and_load
>>   File "", line 965, in
>> _find_and_load_unlocked
>> ModuleNotFoundError: No module named 'hello_world'
>>
>> Traceback (most recent call last):
>>   File "manage.py", line 21, in 
>> main()
>>   File "manage.py", line 17, in main
>> execute_from_command_line(sys.argv)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>> line 381, in execute_from_command_line
>> utility.execute()
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>> line 375, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>> line 323, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>> line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>> line 364, in execute
>> output = self.handle(*args, **options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>> line 95, in handle
>> self.run(**options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",

Re: python manage.py runserver error

2020-06-19 Thread Tanisha Jain
still the problem persists.

On Fri, 19 Jun 2020 at 07:15, Utsab Bashyal  wrote:

> enter inside your project directory   using command cd project_name in
> termina and run manage.py runserver
>
>
> On Fri, Jun 19, 2020 at 6:52 AM Thomas Furtado 
> wrote:
>
>> Hii, thanks for answering but it didn't work
>> Now it showed: no module named 'django.contrib.statics'
>>
>> Em qui, 18 de jun de 2020 22:03, chaitanya orakala <
>> chaitu.orak...@gmail.com> escreveu:
>>
>>> Hi Thomas,
>>> Please run the following commands to solve this problem, before running
>>> the server.
>>>
>>> python manage.py makemigrations
>>> python manage.py migrate
>>>
>>> and then command
>>> python manage.py runserver
>>>
>>> Hope this helps. Let me know if you have any questions
>>>
>>> On Thu, Jun 18, 2020 at 6:15 PM Thomas Furtado <
>>> thomasfurtad...@gmail.com> wrote:
>>>
 Hi, I've seen you sent this last year and I'm having the same error
 message at my pycharm... Did you solve this?? could you help me with this
 please??

 Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann escreveu:
>
> (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py
> runserver
> Watching for file changes with StatReloader
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
> self.run()
>   File "C:\Python37\lib\threading.py", line 870, in run
> self._target(*self._args, **self._kwargs)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 54, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 77, in raise_last_exception
> raise _exception[1]
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 54, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py",
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py",
> line 91, in populate
> app_config = AppConfig.create(entry)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py",
> line 90, in create
> module = import_module(entry)
>   File "C:\Python37\lib\importlib\__init__.py", line 127, in
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1006, in _gcd_import
>   File "", line 983, in _find_and_load
>   File "", line 965, in
> _find_and_load_unlocked
> ModuleNotFoundError: No module named 'hello_world'
>
> Traceback (most recent call last):
>   File "manage.py", line 21, in 
> main()
>   File "manage.py", line 17, in main
> execute_from_command_line(sys.argv)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
> line 381, in execute_from_command_line
> utility.execute()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
> line 375, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
> line 323, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 60, in execute
> super().execute(*args, **options)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
> line 364, in execute
> output = self.handle(*args, **options)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 95, in handle
> self.run(**options)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 102, in run
> autoreload.run_with_reloader(self.inner_run, **options)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 587, in run_with_reloader
> start_django(reloader, main_func, *args, **kwargs)
>   File
> 

Re: python manage.py runserver error

2020-06-18 Thread Utsab Bashyal
enter inside your project directory   using command cd project_name in
termina and run manage.py runserver


On Fri, Jun 19, 2020 at 6:52 AM Thomas Furtado 
wrote:

> Hii, thanks for answering but it didn't work
> Now it showed: no module named 'django.contrib.statics'
>
> Em qui, 18 de jun de 2020 22:03, chaitanya orakala <
> chaitu.orak...@gmail.com> escreveu:
>
>> Hi Thomas,
>> Please run the following commands to solve this problem, before running
>> the server.
>>
>> python manage.py makemigrations
>> python manage.py migrate
>>
>> and then command
>> python manage.py runserver
>>
>> Hope this helps. Let me know if you have any questions
>>
>> On Thu, Jun 18, 2020 at 6:15 PM Thomas Furtado 
>> wrote:
>>
>>> Hi, I've seen you sent this last year and I'm having the same error
>>> message at my pycharm... Did you solve this?? could you help me with this
>>> please??
>>>
>>> Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann escreveu:

 (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py
 runserver
 Watching for file changes with StatReloader
 Exception in thread django-main-thread:
 Traceback (most recent call last):
   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
 self.run()
   File "C:\Python37\lib\threading.py", line 870, in run
 self._target(*self._args, **self._kwargs)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
 line 54, in wrapper
 fn(*args, **kwargs)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 line 109, in inner_run
 autoreload.raise_last_exception()
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
 line 77, in raise_last_exception
 raise _exception[1]
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 line 337, in execute
 autoreload.check_errors(django.setup)()
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
 line 54, in wrapper
 fn(*args, **kwargs)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py",
 line 24, in setup
 apps.populate(settings.INSTALLED_APPS)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py",
 line 91, in populate
 app_config = AppConfig.create(entry)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py",
 line 90, in create
 module = import_module(entry)
   File "C:\Python37\lib\importlib\__init__.py", line 127, in
 import_module
 return _bootstrap._gcd_import(name[level:], package, level)
   File "", line 1006, in _gcd_import
   File "", line 983, in _find_and_load
   File "", line 965, in
 _find_and_load_unlocked
 ModuleNotFoundError: No module named 'hello_world'

 Traceback (most recent call last):
   File "manage.py", line 21, in 
 main()
   File "manage.py", line 17, in main
 execute_from_command_line(sys.argv)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 line 381, in execute_from_command_line
 utility.execute()
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 line 375, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
 line 323, in run_from_argv
 self.execute(*args, **cmd_options)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 line 60, in execute
 super().execute(*args, **options)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
 line 364, in execute
 output = self.handle(*args, **options)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 line 95, in handle
 self.run(**options)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 line 102, in run
 autoreload.run_with_reloader(self.inner_run, **options)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
 line 587, in run_with_reloader
 start_django(reloader, main_func, *args, **kwargs)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
 line 572, in start_django
 reloader.run(django_main_thread)
   File
 "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
 line 

Re: python manage.py runserver error

2020-06-18 Thread Thomas Furtado
Hii, thanks for answering but it didn't work
Now it showed: no module named 'django.contrib.statics'

Em qui, 18 de jun de 2020 22:03, chaitanya orakala 
escreveu:

> Hi Thomas,
> Please run the following commands to solve this problem, before running
> the server.
>
> python manage.py makemigrations
> python manage.py migrate
>
> and then command
> python manage.py runserver
>
> Hope this helps. Let me know if you have any questions
>
> On Thu, Jun 18, 2020 at 6:15 PM Thomas Furtado 
> wrote:
>
>> Hi, I've seen you sent this last year and I'm having the same error
>> message at my pycharm... Did you solve this?? could you help me with this
>> please??
>>
>> Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann escreveu:
>>>
>>> (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py
>>> runserver
>>> Watching for file changes with StatReloader
>>> Exception in thread django-main-thread:
>>> Traceback (most recent call last):
>>>   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
>>> self.run()
>>>   File "C:\Python37\lib\threading.py", line 870, in run
>>> self._target(*self._args, **self._kwargs)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 54, in wrapper
>>> fn(*args, **kwargs)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>>> line 109, in inner_run
>>> autoreload.raise_last_exception()
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 77, in raise_last_exception
>>> raise _exception[1]
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>>> line 337, in execute
>>> autoreload.check_errors(django.setup)()
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 54, in wrapper
>>> fn(*args, **kwargs)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py",
>>> line 24, in setup
>>> apps.populate(settings.INSTALLED_APPS)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py",
>>> line 91, in populate
>>> app_config = AppConfig.create(entry)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py",
>>> line 90, in create
>>> module = import_module(entry)
>>>   File "C:\Python37\lib\importlib\__init__.py", line 127, in
>>> import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>   File "", line 1006, in _gcd_import
>>>   File "", line 983, in _find_and_load
>>>   File "", line 965, in
>>> _find_and_load_unlocked
>>> ModuleNotFoundError: No module named 'hello_world'
>>>
>>> Traceback (most recent call last):
>>>   File "manage.py", line 21, in 
>>> main()
>>>   File "manage.py", line 17, in main
>>> execute_from_command_line(sys.argv)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>>> line 381, in execute_from_command_line
>>> utility.execute()
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>>> line 375, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>>> line 323, in run_from_argv
>>> self.execute(*args, **cmd_options)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>>> line 60, in execute
>>> super().execute(*args, **options)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>>> line 364, in execute
>>> output = self.handle(*args, **options)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>>> line 95, in handle
>>> self.run(**options)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>>> line 102, in run
>>> autoreload.run_with_reloader(self.inner_run, **options)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 587, in run_with_reloader
>>> start_django(reloader, main_func, *args, **kwargs)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 572, in start_django
>>> reloader.run(django_main_thread)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 290, in run
>>> self.run_loop()
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 296, in run_loop
>>> next(ticker)
>>>   File
>>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>>> line 336, in tick
>>> for filepath, 

Re: python manage.py runserver error

2020-06-18 Thread chaitanya orakala
Hi Thomas,
Please run the following commands to solve this problem, before running the
server.

python manage.py makemigrations
python manage.py migrate

and then command
python manage.py runserver

Hope this helps. Let me know if you have any questions

On Thu, Jun 18, 2020 at 6:15 PM Thomas Furtado 
wrote:

> Hi, I've seen you sent this last year and I'm having the same error
> message at my pycharm... Did you solve this?? could you help me with this
> please??
>
> Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann escreveu:
>>
>> (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py
>> runserver
>> Watching for file changes with StatReloader
>> Exception in thread django-main-thread:
>> Traceback (most recent call last):
>>   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
>> self.run()
>>   File "C:\Python37\lib\threading.py", line 870, in run
>> self._target(*self._args, **self._kwargs)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 54, in wrapper
>> fn(*args, **kwargs)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>> line 109, in inner_run
>> autoreload.raise_last_exception()
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 77, in raise_last_exception
>> raise _exception[1]
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>> line 337, in execute
>> autoreload.check_errors(django.setup)()
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 54, in wrapper
>> fn(*args, **kwargs)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py",
>> line 24, in setup
>> apps.populate(settings.INSTALLED_APPS)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py",
>> line 91, in populate
>> app_config = AppConfig.create(entry)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py",
>> line 90, in create
>> module = import_module(entry)
>>   File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>   File "", line 1006, in _gcd_import
>>   File "", line 983, in _find_and_load
>>   File "", line 965, in
>> _find_and_load_unlocked
>> ModuleNotFoundError: No module named 'hello_world'
>>
>> Traceback (most recent call last):
>>   File "manage.py", line 21, in 
>> main()
>>   File "manage.py", line 17, in main
>> execute_from_command_line(sys.argv)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>> line 381, in execute_from_command_line
>> utility.execute()
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>> line 375, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>> line 323, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>> line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>> line 364, in execute
>> output = self.handle(*args, **options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>> line 95, in handle
>> self.run(**options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>> line 102, in run
>> autoreload.run_with_reloader(self.inner_run, **options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 587, in run_with_reloader
>> start_django(reloader, main_func, *args, **kwargs)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 572, in start_django
>> reloader.run(django_main_thread)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 290, in run
>> self.run_loop()
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 296, in run_loop
>> next(ticker)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 336, in tick
>> for filepath, mtime in self.snapshot_files():
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 352, in snapshot_files
>> for file in self.watched_files():
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 251, 

Re: python manage.py runserver error

2020-06-18 Thread Thomas Furtado
Hi, I've seen you sent this last year and I'm having the same error message 
at my pycharm... Did you solve this?? could you help me with this please??

Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann escreveu:
>
> (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py 
> runserver
> Watching for file changes with StatReloader
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
> self.run()
>   File "C:\Python37\lib\threading.py", line 870, in run
> self._target(*self._args, **self._kwargs)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 54, in wrapper
> fn(*args, **kwargs)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>  
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 77, in raise_last_exception
> raise _exception[1]
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>  
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 54, in wrapper
> fn(*args, **kwargs)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py", 
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py", 
> line 91, in populate
> app_config = AppConfig.create(entry)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py", 
> line 90, in create
> module = import_module(entry)
>   File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1006, in _gcd_import
>   File "", line 983, in _find_and_load
>   File "", line 965, in 
> _find_and_load_unlocked
> ModuleNotFoundError: No module named 'hello_world'
>
> Traceback (most recent call last):
>   File "manage.py", line 21, in 
> main()
>   File "manage.py", line 17, in main
> execute_from_command_line(sys.argv)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>  
> line 381, in execute_from_command_line
> utility.execute()
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>  
> line 375, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>  
> line 323, in run_from_argv
> self.execute(*args, **cmd_options)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>  
> line 60, in execute
> super().execute(*args, **options)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>  
> line 364, in execute
> output = self.handle(*args, **options)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>  
> line 95, in handle
> self.run(**options)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>  
> line 102, in run
> autoreload.run_with_reloader(self.inner_run, **options)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 587, in run_with_reloader
> start_django(reloader, main_func, *args, **kwargs)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 572, in start_django
> reloader.run(django_main_thread)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 290, in run
> self.run_loop()
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 296, in run_loop
> next(ticker)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 336, in tick
> for filepath, mtime in self.snapshot_files():
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 352, in snapshot_files
> for file in self.watched_files():
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 251, in watched_files
> yield from iter_all_python_module_files()
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 103, in iter_all_python_module_files
> return iter_modules_and_files(modules, frozenset(_error_files))
>   File 
> 

Re: python manage.py runserver error

2019-07-14 Thread 'Amitesh Sahay' via Django users
Can you check if you have entered  'hello_world' in your app list in 
settings.py?


Regards,
Amitesh Sahay 

On Saturday, 13 July, 2019, 08:03:35 pm IST, Charlotte Wood 
 wrote:  
 
 Have you listed hello_world in your apps in settings.py?
Is it something that you pip install?
Is it the name of a view that you have imported at the top but maybe deleted?
Now, sometimes heroku will ignore things but I believe this is just your local 
server to which you are referring?
On Sat, Jul 13, 2019, 6:35 AM Jack Bergemann  wrote:

(venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py 
runserverWatching for file changes with StatReloaderException in thread 
django-main-thread:Traceback (most recent call last):  File 
"C:\Python37\lib\threading.py", line 926, in _bootstrap_inner    self.run()  
File "C:\Python37\lib\threading.py", line 870, in run    
self._target(*self._args, **self._kwargs)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 54, in wrapper    fn(*args, **kwargs)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 line 109, in inner_run    autoreload.raise_last_exception()  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 77, in raise_last_exception    raise _exception[1]  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 line 337, in execute    autoreload.check_errors(django.setup)()  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 54, in wrapper    fn(*args, **kwargs)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py", line 
24, in setup    apps.populate(settings.INSTALLED_APPS)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py", 
line 91, in populate    app_config = AppConfig.create(entry)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py", line 
90, in create    module = import_module(entry)  File 
"C:\Python37\lib\importlib\__init__.py", line 127, in import_module    return 
_bootstrap._gcd_import(name[level:], package, level)  File "", line 1006, in _gcd_import  File "", line 983, in _find_and_load  File "", line 965, in 
_find_and_load_unlockedModuleNotFoundError: No module named 'hello_world'
Traceback (most recent call last):  File "manage.py", line 21, in     
main()  File "manage.py", line 17, in main    
execute_from_command_line(sys.argv)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 line 381, in execute_from_command_line    utility.execute()  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 line 375, in execute    
self.fetch_command(subcommand).run_from_argv(self.argv)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
 line 323, in run_from_argv    self.execute(*args, **cmd_options)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 line 60, in execute    super().execute(*args, **options)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
 line 364, in execute    output = self.handle(*args, **options)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 line 95, in handle    self.run(**options)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 line 102, in run    autoreload.run_with_reloader(self.inner_run, **options)  
File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 587, in run_with_reloader    start_django(reloader, main_func, *args, 
**kwargs)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 572, in start_django    reloader.run(django_main_thread)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 290, in run    self.run_loop()  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 296, in run_loop    next(ticker)  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 336, in tick    for filepath, mtime in self.snapshot_files():  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 352, in snapshot_files    for file in self.watched_files():  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 251, in watched_files    yield from iter_all_python_module_files()  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 103, in iter_all_python_module_files    return 
iter_modules_and_files(modules, frozenset(_error_files))  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 

Re: python manage.py runserver error

2019-07-13 Thread Charlotte Wood
Have you listed hello_world in your apps in settings.py?

Is it something that you pip install?

Is it the name of a view that you have imported at the top but maybe
deleted?

Now, sometimes heroku will ignore things but I believe this is just your
local server to which you are referring?

On Sat, Jul 13, 2019, 6:35 AM Jack Bergemann 
wrote:

> (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py
> runserver
> Watching for file changes with StatReloader
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
> self.run()
>   File "C:\Python37\lib\threading.py", line 870, in run
> self._target(*self._args, **self._kwargs)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 54, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 77, in raise_last_exception
> raise _exception[1]
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 54, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py",
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py",
> line 91, in populate
> app_config = AppConfig.create(entry)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py",
> line 90, in create
> module = import_module(entry)
>   File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1006, in _gcd_import
>   File "", line 983, in _find_and_load
>   File "", line 965, in
> _find_and_load_unlocked
> ModuleNotFoundError: No module named 'hello_world'
>
> Traceback (most recent call last):
>   File "manage.py", line 21, in 
> main()
>   File "manage.py", line 17, in main
> execute_from_command_line(sys.argv)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
> line 381, in execute_from_command_line
> utility.execute()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
> line 375, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
> line 323, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 60, in execute
> super().execute(*args, **options)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
> line 364, in execute
> output = self.handle(*args, **options)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 95, in handle
> self.run(**options)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 102, in run
> autoreload.run_with_reloader(self.inner_run, **options)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 587, in run_with_reloader
> start_django(reloader, main_func, *args, **kwargs)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 572, in start_django
> reloader.run(django_main_thread)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 290, in run
> self.run_loop()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 296, in run_loop
> next(ticker)
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 336, in tick
> for filepath, mtime in self.snapshot_files():
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 352, in snapshot_files
> for file in self.watched_files():
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 251, in watched_files
> yield from iter_all_python_module_files()
>   File
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
> line 103, in iter_all_python_module_files
> return iter_modules_and_files(modules, frozenset(_error_files))
>   File
> 

Re: python manage.py runserver error

2019-07-13 Thread Joe Reitman
ModuleNotFoundError: No module named 'hello_world'

This is a big clue. 

On Saturday, July 13, 2019 at 6:35:31 AM UTC-5, Jack Bergemann wrote:
>
> (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py 
> runserver
> Watching for file changes with StatReloader
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
> self.run()
>   File "C:\Python37\lib\threading.py", line 870, in run
> self._target(*self._args, **self._kwargs)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 54, in wrapper
> fn(*args, **kwargs)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>  
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 77, in raise_last_exception
> raise _exception[1]
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>  
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 54, in wrapper
> fn(*args, **kwargs)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py", 
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py", 
> line 91, in populate
> app_config = AppConfig.create(entry)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py", 
> line 90, in create
> module = import_module(entry)
>   File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1006, in _gcd_import
>   File "", line 983, in _find_and_load
>   File "", line 965, in 
> _find_and_load_unlocked
> ModuleNotFoundError: No module named 'hello_world'
>
> Traceback (most recent call last):
>   File "manage.py", line 21, in 
> main()
>   File "manage.py", line 17, in main
> execute_from_command_line(sys.argv)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>  
> line 381, in execute_from_command_line
> utility.execute()
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>  
> line 375, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>  
> line 323, in run_from_argv
> self.execute(*args, **cmd_options)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>  
> line 60, in execute
> super().execute(*args, **options)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>  
> line 364, in execute
> output = self.handle(*args, **options)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>  
> line 95, in handle
> self.run(**options)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>  
> line 102, in run
> autoreload.run_with_reloader(self.inner_run, **options)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 587, in run_with_reloader
> start_django(reloader, main_func, *args, **kwargs)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 572, in start_django
> reloader.run(django_main_thread)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 290, in run
> self.run_loop()
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 296, in run_loop
> next(ticker)
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 336, in tick
> for filepath, mtime in self.snapshot_files():
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 352, in snapshot_files
> for file in self.watched_files():
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 251, in watched_files
> yield from iter_all_python_module_files()
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 103, in iter_all_python_module_files
> return iter_modules_and_files(modules, frozenset(_error_files))
>   File 
> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>  
> line 138, in iter_modules_and_files

python manage.py runserver error

2019-07-13 Thread Jack Bergemann
(venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py 
runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
self.run()
  File "C:\Python37\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 54, in wrapper
fn(*args, **kwargs)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 
line 109, in inner_run
autoreload.raise_last_exception()
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 77, in raise_last_exception
raise _exception[1]
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 
line 337, in execute
autoreload.check_errors(django.setup)()
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 54, in wrapper
fn(*args, **kwargs)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py", 
line 24, in setup
apps.populate(settings.INSTALLED_APPS)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py", 
line 91, in populate
app_config = AppConfig.create(entry)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py", 
line 90, in create
module = import_module(entry)
  File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1006, in _gcd_import
  File "", line 983, in _find_and_load
  File "", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'hello_world'

Traceback (most recent call last):
  File "manage.py", line 21, in 
main()
  File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 
line 381, in execute_from_command_line
utility.execute()
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
 
line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
 
line 323, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 
line 60, in execute
super().execute(*args, **options)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
 
line 364, in execute
output = self.handle(*args, **options)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 
line 95, in handle
self.run(**options)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
 
line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 587, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 572, in start_django
reloader.run(django_main_thread)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 290, in run
self.run_loop()
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 296, in run_loop
next(ticker)
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 336, in tick
for filepath, mtime in self.snapshot_files():
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 352, in snapshot_files
for file in self.watched_files():
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 251, in watched_files
yield from iter_all_python_module_files()
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 103, in iter_all_python_module_files
return iter_modules_and_files(modules, frozenset(_error_files))
  File 
"C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py", 
line 138, in iter_modules_and_files
if not path.exists():
  File "C:\Python37\lib\pathlib.py", line 1346, in exists
self.stat()
  File "C:\Python37\lib\pathlib.py", line 1168, in stat
return self._accessor.stat(self)
OSError: [WinError 123] The filename, directory name, or volume label 
syntax is incorrect: ''

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop 

Re: python manage.py runserver error

2016-06-25 Thread ludovic coues
Django 1.9.7 is compatible with python 2.
Django 1.11 is planned to be last version supporting python 2, the last
version for django 1 and will be on long term support.

Only django 2 will drop support for python 2.

For the original question, the issue seems related to salute. The content
of settings.python and the output of sqlite --version could help. The
command might be named sqlite3

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEuG%2BTZZRPX_vmu-x62vP_J%2BvseDxZvA%2BOOxmCQzwab9O32UHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: python manage.py runserver error

2016-06-24 Thread Luis Zárate
Check running

python manage.py migrate

other thing, are you sure that you have a correct database setup?

El viernes, 24 de junio de 2016, Gary Roach 
escribió:
> Hi Saranyoo
>
> I noticed that you are using python 2.7 with django 1.9.7. I would check
the django docs to see whether the two are compatible. You may want to
switch to Python 3.5.. If you are in the manage.py directory when you fired
off runserver it should have worked.
>
> Gary R.
>
> On 06/23/2016 06:56 PM, Saranyoo Tiaakekalap wrote:
>
> Guys - I am new to django, need some advise .
> I am trying to learn how to use django from official web, while I am
running through step by step .
> Just the beginning of the first step while I try to start server I hit
into issue .
> There is no change in any python after start project .
> Appreciate all the advice .
> [root@jpetetis mysite]# python manage.py runserver
> Performing system checks...
> System check identified no issues (0 silenced).
> Unhandled exception in thread started by 
> Traceback (most recent call last):
>   File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/utils/aut
 oreload.py", line 226, in wrapper
> fn(*args, **kwargs)
>   File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/core/mana
 gement/commands/runserver.py", line 117, in
inner_run
> self.check_migrations()
>   File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/core/mana
 gement/commands/runserver.py", line 163, in
check_migrations
> executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
>   File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat
 ions/executor.py", line 20, in __init__
> self.loader = MigrationLoader(self.connection)
>   File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat
 ions/loader.py", line 49, in __init__
> self.build_graph()
>   File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat
 ions/loader.py", line 176, in build_graph
> self.applied_migrations = recorder.applied_migrations()
>   File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat
 ions/recorder.py", line 65, in applied_migrations
> self.ensure_schema()
>   File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat
 ions/recorder.py", line 56, in ensure_schema
> with self.connection.schema_editor() as editor:
>   File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/backen
 ds/sqlite3/schema.py", line 25, in __enter__
> self._initial_pragma_fk = c.fetchone()[0]
> TypeError: 'NoneType' object has no attribute '__getitem__'
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAF7bBPAP5cqVpqt824ub4kh76podidLKRZnxFrVKtHQzr4D%2BCw%40mail.gmail.com
.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/c44a8ff3-27a7-64f9-5ee2-a80d1001c03d%40verizon.net
.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%2B5VyNUvqGZGqNiGxPsrtNaRrvdxC%2BJZaqAigqvTysEMSv5yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: python manage.py runserver error

2016-06-24 Thread Gary Roach

Hi Saranyoo

I noticed that you are using python 2.7 with django 1.9.7. I would check 
the django docs to see whether the two are compatible. You may want to 
switch to Python 3.5.. If you are in the manage.py directory when you 
fired off runserver it should have worked.


Gary R.

On 06/23/2016 06:56 PM, Saranyoo Tiaakekalap wrote:

Guys - I am new to django, need some advise .
I am trying to learn how to use django from official web, while I am 
running through step by step .


Just the beginning of the first step while I try to start server I hit 
into issue .

There is no change in any python after start project .
Appreciate all the advice .

[root@jpetetis mysite]# python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
Unhandled exception in thread started by 0x2b75ba622500>

Traceback (most recent call last):
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/utils/aut 
   oreload.py", line 226, in wrapper

fn(*args, **kwargs)
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/core/mana 
   gement/commands/runserver.py", line 117, in 
inner_run

self.check_migrations()
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/core/mana 
   gement/commands/runserver.py", line 163, in 
check_migrations

executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat 
   ions/executor.py", line 20, in __init__

self.loader = MigrationLoader(self.connection)
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat 
   ions/loader.py", line 49, in __init__

self.build_graph()
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat 
   ions/loader.py", line 176, in build_graph

self.applied_migrations = recorder.applied_migrations()
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat 
   ions/recorder.py", line 65, in 
applied_migrations

self.ensure_schema()
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat 
   ions/recorder.py", line 56, in ensure_schema

with self.connection.schema_editor() as editor:
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/backen 
   ds/sqlite3/schema.py", line 25, in __enter__

self._initial_pragma_fk = c.fetchone()[0]
TypeError: 'NoneType' object has no attribute '__getitem__'


--
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 post to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF7bBPAP5cqVpqt824ub4kh76podidLKRZnxFrVKtHQzr4D%2BCw%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.



--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c44a8ff3-27a7-64f9-5ee2-a80d1001c03d%40verizon.net.
For more options, visit https://groups.google.com/d/optout.


python manage.py runserver error

2016-06-23 Thread Saranyoo Tiaakekalap
Guys - I am new to django, need some advise .
I am trying to learn how to use django from official web, while I am
running through step by step .

Just the beginning of the first step while I try to start server I hit into
issue .
There is no change in any python after start project .
Appreciate all the advice .

[root@jpetetis mysite]# python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
Unhandled exception in thread started by 
Traceback (most recent call last):
  File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/utils/aut
 oreload.py", line 226, in wrapper
fn(*args, **kwargs)
  File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/core/mana
 gement/commands/runserver.py", line 117, in
inner_run
self.check_migrations()
  File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/core/mana
 gement/commands/runserver.py", line 163, in
check_migrations
executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat
 ions/executor.py", line 20, in __init__
self.loader = MigrationLoader(self.connection)
  File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat
 ions/loader.py", line 49, in __init__
self.build_graph()
  File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat
 ions/loader.py", line 176, in build_graph
self.applied_migrations = recorder.applied_migrations()
  File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat
 ions/recorder.py", line 65, in applied_migrations
self.ensure_schema()
  File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrat
 ions/recorder.py", line 56, in ensure_schema
with self.connection.schema_editor() as editor:
  File
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/backen
 ds/sqlite3/schema.py", line 25, in __enter__
self._initial_pragma_fk = c.fetchone()[0]
TypeError: 'NoneType' object has no attribute '__getitem__'

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF7bBPAP5cqVpqt824ub4kh76podidLKRZnxFrVKtHQzr4D%2BCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


python manage.py runserver error

2016-06-23 Thread Saranyoo Tiaakekalap
Guys - I am new to django , while running through tutorial . I found issue 
when first start running 'python manage.py runserver' . 


After I installed 'django' and create my first project using command 
'django-admin 
startproject mysite' , then follow with 'python manage.py runserver' . 
I encounter error below . 
Can anyone please advise about this ? 

[root@jpetetis mysite]# python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
Unhandled exception in thread started by 
Traceback (most recent call last):
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/utils/autoreload.py",
 
line 226, in wrapper
fn(*args, **kwargs)
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/core/management/commands/runserver.py",
 
line 117, in inner_run
self.check_migrations()
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/core/management/commands/runserver.py",
 
line 163, in check_migrations
executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrations/executor.py",
 
line 20, in __init__
self.loader = MigrationLoader(self.connection)
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrations/loader.py",
 
line 49, in __init__
self.build_graph()
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrations/loader.py",
 
line 176, in build_graph
self.applied_migrations = recorder.applied_migrations()
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrations/recorder.py",
 
line 65, in applied_migrations
self.ensure_schema()
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/migrations/recorder.py",
 
line 56, in ensure_schema
with self.connection.schema_editor() as editor:
  File 
"/usr/lib/python2.7/site-packages/Django-1.9.7-py2.7.egg/django/db/backends/sqlite3/schema.py",
 
line 25, in __enter__
self._initial_pragma_fk = c.fetchone()[0]
TypeError: 'NoneType' object has no attribute '__getitem__'
[root@jpetetis mysite]#
[root@jpetetis mysite]# cd

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/98cac6d9-a164-455c-b353-6c42e84b5fba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: python manage.py runserver error

2013-07-23 Thread Jay Lozier
virtualenv works, this for the link.

On Sunday, July 21, 2013 10:09:59 PM UTC-4, Jay Lozier wrote:
>
> I get the following error when run python manage.py runserver:
>
> OS openSUSE 12.3
> django 1.7
>
>
> boopers@linux-nss6:~/myfirstsite> python manage.py runserver
> Traceback (most recent call last):
> File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
> File "/home/boopers/django-trunk/django/core/management/__init__.py", line 
> 397, in execute_from_command_line
> utility.execute()
> File "/home/boopers/django-trunk/django/core/management/__init__.py", line 
> 390, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File "/home/boopers/django-trunk/django/core/management/__init__.py", line 
> 261, in fetch_command
> app_name = get_commands()[subcommand]
> File "/home/boopers/django-trunk/django/core/management/__init__.py", line 
> 107, in get_commands
> apps = settings.INSTALLED_APPS
> File "/home/boopers/django-trunk/django/conf/__init__.py", line 54, in 
> __getattr__
> self._setup(name)
> File "/home/boopers/django-trunk/django/conf/__init__.py", line 50, in 
> _setup
> self._configure_logging()
> File "/home/boopers/django-trunk/django/conf/__init__.py", line 68, in 
> _configure_logging
> from django.utils.log import DEFAULT_LOGGING
> File "/home/boopers/django-trunk/django/utils/log.py", line 7, in 
> from django.views.debug import ExceptionReporter, 
> get_exception_reporter_filter
> File "/home/boopers/django-trunk/django/views/debug.py", line 10, in 
> 
> from django.http import (HttpResponse, HttpResponseServerError,
> File "/home/boopers/django-trunk/django/http/__init__.py", line 4, in 
> 
> from django.http.response import (HttpResponse, StreamingHttpResponse,
> File "/home/boopers/django-trunk/django/http/response.py", line 16, in 
> 
> from django.utils import six, timezone
> File "/home/boopers/django-trunk/django/utils/timezone.py", line 11, in 
> 
> import pytz
> File "/usr/lib/python2.7/site-packages/pytz/__init__.py", line 35, in 
> 
> from pkg_resources import resource_stream
> File 
> "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py",
>  
> line 3027, in 
> add_activation_listener(lambda dist: dist.activate())
> File 
> "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py",
>  
> line 741, in subscribe
> callback(dist)
> File 
> "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py",
>  
> line 3027, in 
> add_activation_listener(lambda dist: dist.activate())
> File 
> "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py",
>  
> line 2514, in activate
> list(map(declare_namespace, self._get_metadata('namespace_packages.txt')))
> File 
> "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py",
>  
> line 2094, in declare_namespace
> _handle_ns(packageName, path_item)
> File 
> "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py",
>  
> line 2059, in _handle_ns
> raise TypeError("Not a package:", packageName)
> TypeError: ('Not a package:', 'cgi')
>
>
> The sys paths are
>
> /usr/lib/python2.7/site-packages/pymongo-2.5.1-py2.7-linux-x86_64.egg
> /usr/lib/python2.7/site-packages/bottle-0.11.6-py2.7.egg
> /usr/lib/python2.7/site-packages/translationstring-1.1-py2.7.egg
> /usr/lib/python2.7/site-packages/venusian-1.0a8-py2.7.egg
> /usr/lib/python2.7/site-packages/zope.deprecation-4.0.2-py2.7.egg
> /usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg
> /home/boopers/django-trunk
> /usr/lib/python27.zip
> /usr/lib64/python2.7
> /usr/lib64/python2.7/plat-linux2
> /usr/lib64/python2.7/lib-tk
> /usr/lib64/python2.7/lib-old
> /usr/lib64/python2.7/lib-dynload
> /usr/lib64/python2.7/site-packages
> /usr/lib64/python2.7/site-packages/FontTools
> /usr/lib64/python2.7/site-packages/PIL
> /usr/local/lib64/python2.7/site-packages
> /usr/local/lib/python2.7/site-packages
> /usr/lib64/python2.7/site-packages/gst-0.10
> /usr/lib64/python2.7/site-packages/gtk-2.0
> /usr/lib64/python2.7/site-packages/input-pad-1.0
> /usr/lib/python2.7/site-packages
> /usr/lib64/python2.7/site-packages/wx-2.9.4-gtk2
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




python manage.py runserver error

2013-07-22 Thread Jay Lozier
I get the following error when run python manage.py runserver:

OS openSUSE 12.3
django 1.7


boopers@linux-nss6:~/myfirstsite> python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 
397, in execute_from_command_line
utility.execute()
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 
390, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 
261, in fetch_command
app_name = get_commands()[subcommand]
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 
107, in get_commands
apps = settings.INSTALLED_APPS
File "/home/boopers/django-trunk/django/conf/__init__.py", line 54, in 
__getattr__
self._setup(name)
File "/home/boopers/django-trunk/django/conf/__init__.py", line 50, in 
_setup
self._configure_logging()
File "/home/boopers/django-trunk/django/conf/__init__.py", line 68, in 
_configure_logging
from django.utils.log import DEFAULT_LOGGING
File "/home/boopers/django-trunk/django/utils/log.py", line 7, in 
from django.views.debug import ExceptionReporter, 
get_exception_reporter_filter
File "/home/boopers/django-trunk/django/views/debug.py", line 10, in 

from django.http import (HttpResponse, HttpResponseServerError,
File "/home/boopers/django-trunk/django/http/__init__.py", line 4, in 

from django.http.response import (HttpResponse, StreamingHttpResponse,
File "/home/boopers/django-trunk/django/http/response.py", line 16, in 

from django.utils import six, timezone
File "/home/boopers/django-trunk/django/utils/timezone.py", line 11, in 

import pytz
File "/usr/lib/python2.7/site-packages/pytz/__init__.py", line 35, in 

from pkg_resources import resource_stream
File 
"/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", 
line 3027, in 
add_activation_listener(lambda dist: dist.activate())
File 
"/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", 
line 741, in subscribe
callback(dist)
File 
"/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", 
line 3027, in 
add_activation_listener(lambda dist: dist.activate())
File 
"/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", 
line 2514, in activate
list(map(declare_namespace, self._get_metadata('namespace_packages.txt')))
File 
"/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", 
line 2094, in declare_namespace
_handle_ns(packageName, path_item)
File 
"/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", 
line 2059, in _handle_ns
raise TypeError("Not a package:", packageName)
TypeError: ('Not a package:', 'cgi')


The sys paths are

/usr/lib/python2.7/site-packages/pymongo-2.5.1-py2.7-linux-x86_64.egg
/usr/lib/python2.7/site-packages/bottle-0.11.6-py2.7.egg
/usr/lib/python2.7/site-packages/translationstring-1.1-py2.7.egg
/usr/lib/python2.7/site-packages/venusian-1.0a8-py2.7.egg
/usr/lib/python2.7/site-packages/zope.deprecation-4.0.2-py2.7.egg
/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg
/home/boopers/django-trunk
/usr/lib/python27.zip
/usr/lib64/python2.7
/usr/lib64/python2.7/plat-linux2
/usr/lib64/python2.7/lib-tk
/usr/lib64/python2.7/lib-old
/usr/lib64/python2.7/lib-dynload
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/FontTools
/usr/lib64/python2.7/site-packages/PIL
/usr/local/lib64/python2.7/site-packages
/usr/local/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages/gst-0.10
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib64/python2.7/site-packages/input-pad-1.0
/usr/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages/wx-2.9.4-gtk2

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: python manage.py runserver error

2013-07-22 Thread Christian Erhardt
I think you're missing some prerequisites (TypeError: ('Not a package:', 
'cgi')) 

I never use the libraries installed on the system, i always work with 
virtualenvs. A very good kickstart is written down here: 
http://www.jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/

Usually i start everything from a pinax project so i'm not sure if django 
has a requirements.txt. But if it has and you have activated your 
virtualenv (. venv/bin/activate), alle requisites can installed, simply by 
executeing the following command:

pip install -r requirements.txt 

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: os x tiger macports install postgres81 python25 - py25-psycopg2 python manage.py runserver error

2007-12-19 Thread David Reynolds


On 19 Dec 2007, at 8:49 am, Shinmaikeru wrote:

>
> Django newbie here just trying to get an environment going so that I
> can say goodbye to PHP and make python/django my native tongue.
>
> I went through several installs using various images and then
> uninstalls and such before finally installing everything through
> MacPorts. However...
>
> When I run `python manage.py runserver`, I get:
>
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
> site-packages/django/db/backends/postgresql_psycopg2/base.py", line
> 15, in 
> raise ImproperlyConfigured("Error loading psycopg2 module: %s" %
> e)
> django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
> module: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/psycopg2/_psycopg.so, 2): Library not  
> loaded: /
> usr/local/pgsql/lib/libpq.4.dylib
>   Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
> lib/python2.5/site-packages/psycopg2/_psycopg.so
>   Reason: image not found
>
> Then I do `locate libpq.4` and get:
> /opt/local/lib/postgresql81/libpq.4.1.dylib
> /opt/local/lib/postgresql81/libpq.4.dylib
> /opt/local/var/macports/software/postgresql81/8.1.10_0+darwin_8/opt/
> local/lib/postgresql81/libpq.4.1.dylib
> /opt/local/var/macports/software/postgresql81/8.1.10_0+darwin_8/opt/
> local/lib/postgresql81/libpq.4.dylib
>
> So why is the program looking in /usr/local/pgsql/lib/ when the
> library is in /opt/local/lib/postgresql81/ ? All of these programs
> were installed with MacPorts, so shouldn't they know where each other
> reside?

You'll need to also do:

port install py-psycopg2

This will install the library that lets python talk to posgres.

Thanks,

David

-- 
David Reynolds
[EMAIL PROTECTED]



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



os x tiger macports install postgres81 python25 - py25-psycopg2 python manage.py runserver error

2007-12-19 Thread Shinmaikeru

Django newbie here just trying to get an environment going so that I
can say goodbye to PHP and make python/django my native tongue.

I went through several installs using various images and then
uninstalls and such before finally installing everything through
MacPorts. However...

When I run `python manage.py runserver`, I get:

File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/db/backends/postgresql_psycopg2/base.py", line
15, in 
raise ImproperlyConfigured("Error loading psycopg2 module: %s" %
e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
module: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: /
usr/local/pgsql/lib/libpq.4.dylib
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/psycopg2/_psycopg.so
  Reason: image not found

Then I do `locate libpq.4` and get:
/opt/local/lib/postgresql81/libpq.4.1.dylib
/opt/local/lib/postgresql81/libpq.4.dylib
/opt/local/var/macports/software/postgresql81/8.1.10_0+darwin_8/opt/
local/lib/postgresql81/libpq.4.1.dylib
/opt/local/var/macports/software/postgresql81/8.1.10_0+darwin_8/opt/
local/lib/postgresql81/libpq.4.dylib

So why is the program looking in /usr/local/pgsql/lib/ when the
library is in /opt/local/lib/postgresql81/ ? All of these programs
were installed with MacPorts, so shouldn't they know where each other
reside?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---