When is provide custom ip like python manage.py runserver cannot login or signup

2021-08-30 Thread Aditya Bohra

Please help on localhost or 127.0.0.1:8000 everything is working fine but 
when i provide ip and port authentication is doesn't work

-- 
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/0d90757d-8897-440c-8e79-a8e808163584n%40googlegroups.com.


Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-07-08 Thread Joseph Borge
sqlite-3.34.0
>> make && make install
>>
>> 2. Add sqlite3 lib to lib search path:
>>
>> export LD_LIBRARY_PATH=/home/felix/.local/sqlite/default/lib
>> export LD_RUN_PATH=/home/felix/.local/sqlite/default/lib
>>
>> 3. Compile Python 3.9.1
>> C_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/ 
>> CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/ 
>> LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure 
>> --prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizations
>> make && make install
>>
>> 4. Create a venv and install django and start a demo project
>> cd /tmp
>> /home/felix/.local/python/python-3.9.1/bin/python3 -m venv venv
>> source venv/bin/activate
>> pip install django
>> djagno-admin startproject demo
>> cd demo
>>
>> 4 Check sqlite3 lib version (seems to be OK, sqlite_version is 3.34.0)
>> (venv) [felix@localhost blueprint]$ python manage.py shell
>> Python 3.9.0 (default, Jan 20 2021, 12:53:25) 
>> [GCC 10.2.0] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>> (InteractiveConsole)
>> >>> import sqlite3
>> >>> sqlite3.sqlite_version
>> '3.34.0'
>> >>> sqlite3.version
>> '2.6.0'
>> >>> 
>>
>> 5. Run the demo project (cannot find the new sqlite version ? strange.):
>> (venv) [felix@localhost blueprint]$ python manage.py runserver
>> Watching for file changes with StatReloader
>> Performing system checks...
>>
>> System check identified no issues (0 silenced).
>> Exception in thread django-main-thread:
>> Traceback (most recent call last):
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
>>  
>> line 219, in ensure_connection
>> self.connect()
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
>>  
>> line 26, in inner
>> return func(*args, **kwargs)
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
>>  
>> line 200, in connect
>> self.connection = self.get_new_connection(conn_params)
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
>>  
>> line 26, in inner
>> return func(*args, **kwargs)
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py",
>>  
>> line 215, in get_new_connection
>> create_deterministic_function('django_date_extract', 2, 
>> _sqlite_datetime_extract)
>> sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or 
>> higher
>>
>> The above exception was the direct cause of the following exception:
>>
>> Traceback (most recent call last):
>>   File 
>> "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", line 
>> 950, in _bootstrap_inner
>> self.run()
>>   File 
>> "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", line 
>> 888, in run
>> self._target(*self._args, **self._kwargs)
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/autoreload.py",
>>  
>> line 53, in wrapper
>> fn(*args, **kwargs)
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/core/management/commands/runserver.py",
>>  
>> line 121, in inner_run
>> self.check_migrations()
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/core/management/base.py",
>>  
>> line 459, in check_migrations
>> executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/migrations/executor.py",
>>  
>> line 18, in __init__
>> self.loader = MigrationLoader(self.connection)
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/migrations/loader.py",
>>  
>> line 53, in __init__
>> self.build_graph()
>>   File 
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/migrati

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread panfei
It finally proved a compilation issue, this is the right way to compile
Python 3.9:

1033 C_INCLUDE_PATH=/home/felix/.local/sqlite/default/include/
CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/default/include/
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure
--prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizations
1034 C_INCLUDE_PATH=/home/felix/.local/sqlite/default/include/
CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/default/include/
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib make
1035 make clean
1036 C_INCLUDE_PATH=/home/felix/.local/sqlite/default/include/
CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/default/include/
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure
--prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizations
1037 C_INCLUDE_PATH=/home/felix/.local/sqlite/default/include/
CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/default/include/
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib make
1038 C_INCLUDE_PATH=/home/felix/.local/sqlite/default/include/
CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/default/include/
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib make install
1039 /home/felix/.local/python/python-3.9.1/bin/python3
1040 history
[felix@localhost Python-3.9.1]$
/home/felix/.local/python/python-3.9.1/bin/python3
Python 3.9.1 (default, Jan 21 2021, 10:58:50)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> conn = sqlite3.connect(':memory:')
>>> conn.create_function('f', 2, lambda *args: None, deterministic=True)
>>>

Every step should specify the same environment variables.

'Amitesh Sahay' via Django users 
于2021年1月20日周三 下午10:06写道:

> Please read the release notes of the Django version you are using. It will
> be a life saver as well.
>
> Regards,
> Amitesh
>
>
> On Wednesday, 20 January, 2021, 07:35:14 pm IST, Amitesh Sahay <
> amitesh.sa...@yahoo.com> wrote:
>
>
> So, this seems to be a version compatibility issue, a a work around you
> can use some other database(mysql, oracle, etc). This cud save ur day and
> time as well.
>
> Regards,
> Amitesh
>
> On Wednesday, 20 January, 2021, 07:32:59 pm IST, panfei 
> wrote:
>
>
> I have tried, it works in Python 3.6 environment. but I still want to find
> a way (maybe a workaround) to solve this problem.
>
> 'Amitesh Sahay' via Django users 
> 于2021年1月20日周三 下午9:48写道:
>
> Try older version of Python interpreter and see if that works. May be
> consider using 3.6
>
> Regards,
> Amitesh
>
>
> On Wednesday, 20 January, 2021, 05:55:32 pm IST, panfei 
> wrote:
>
>
> I found that, it may not be a Django-related issue, It's more likely a
> Python level issue, but do anyone know how to avoid this problem?:
>
> (venv) [felix@localhost blueprint]$ python
> Python 3.9.1 (default, Jan 20 2021, 14:32:50)
> [GCC 10.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sqlite3
> >>> conn = sqlite3.connect(':memory:')
> >>> conn.create_function('f', 2, lambda *args: None, deterministic=True)
> Traceback (most recent call last):
>   File "", line 1, in 
> sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or
> higher
> >>> sqlite3.sqlite_version
> '3.34.0'
> >>> sqlite3.version
> '2.6.0'
> >>>
>
>
> panfei  于2021年1月20日周三 下午8:03写道:
>
>
> System environment:
>
> Cent OS 7
> Sqlite3 3.34.0 (Compile from source)
> Python 3.9.1 (Compile from source)
> Django 3.1.5 (Pip install)
>
>
> 1. Compile sqlite3:
> ./configure --prefix=/home/felix/.local/sqlite/sqlite-3.34.0
> make && make install
>
> 2. Add sqlite3 lib to lib search path:
>
> export LD_LIBRARY_PATH=/home/felix/.local/sqlite/default/lib
> export LD_RUN_PATH=/home/felix/.local/sqlite/default/lib
>
> 3. Compile Python 3.9.1
> C_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
> CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
> LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure
> --prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizations
> make && make install
>
> 4. Create a venv and install django and start a demo project
> cd /tmp
> /home/felix/.local/python/python-3.9.1/bin/python3 -m venv venv
> source venv/bin/activate
> pip install django
> djagno-admin startproject demo
> cd demo
>
> 4 Check sqlite3 lib version (seems to be OK, sqlite_version is 3.34.0)
> (venv) [felix@localhost blueprint]$ python manage.py shell
> Python 3.9.0 (default, Jan 20 2021, 12:53:25)
>

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread panfei
Thanks for all the suggestions.

'Amitesh Sahay' via Django users 
于2021年1月20日周三 下午10:06写道:

> Please read the release notes of the Django version you are using. It will
> be a life saver as well.
>
> Regards,
> Amitesh
>
>
> On Wednesday, 20 January, 2021, 07:35:14 pm IST, Amitesh Sahay <
> amitesh.sa...@yahoo.com> wrote:
>
>
> So, this seems to be a version compatibility issue, a a work around you
> can use some other database(mysql, oracle, etc). This cud save ur day and
> time as well.
>
> Regards,
> Amitesh
>
> On Wednesday, 20 January, 2021, 07:32:59 pm IST, panfei 
> wrote:
>
>
> I have tried, it works in Python 3.6 environment. but I still want to find
> a way (maybe a workaround) to solve this problem.
>
> 'Amitesh Sahay' via Django users 
> 于2021年1月20日周三 下午9:48写道:
>
> Try older version of Python interpreter and see if that works. May be
> consider using 3.6
>
> Regards,
> Amitesh
>
>
> On Wednesday, 20 January, 2021, 05:55:32 pm IST, panfei 
> wrote:
>
>
> I found that, it may not be a Django-related issue, It's more likely a
> Python level issue, but do anyone know how to avoid this problem?:
>
> (venv) [felix@localhost blueprint]$ python
> Python 3.9.1 (default, Jan 20 2021, 14:32:50)
> [GCC 10.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sqlite3
> >>> conn = sqlite3.connect(':memory:')
> >>> conn.create_function('f', 2, lambda *args: None, deterministic=True)
> Traceback (most recent call last):
>   File "", line 1, in 
> sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or
> higher
> >>> sqlite3.sqlite_version
> '3.34.0'
> >>> sqlite3.version
> '2.6.0'
> >>>
>
>
> panfei  于2021年1月20日周三 下午8:03写道:
>
>
> System environment:
>
> Cent OS 7
> Sqlite3 3.34.0 (Compile from source)
> Python 3.9.1 (Compile from source)
> Django 3.1.5 (Pip install)
>
>
> 1. Compile sqlite3:
> ./configure --prefix=/home/felix/.local/sqlite/sqlite-3.34.0
> make && make install
>
> 2. Add sqlite3 lib to lib search path:
>
> export LD_LIBRARY_PATH=/home/felix/.local/sqlite/default/lib
> export LD_RUN_PATH=/home/felix/.local/sqlite/default/lib
>
> 3. Compile Python 3.9.1
> C_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
> CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
> LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure
> --prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizations
> make && make install
>
> 4. Create a venv and install django and start a demo project
> cd /tmp
> /home/felix/.local/python/python-3.9.1/bin/python3 -m venv venv
> source venv/bin/activate
> pip install django
> djagno-admin startproject demo
> cd demo
>
> 4 Check sqlite3 lib version (seems to be OK, sqlite_version is 3.34.0)
> (venv) [felix@localhost blueprint]$ python manage.py shell
> Python 3.9.0 (default, Jan 20 2021, 12:53:25)
> [GCC 10.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> import sqlite3
> >>> sqlite3.sqlite_version
> '3.34.0'
> >>> sqlite3.version
> '2.6.0'
> >>>
>
> 5. Run the demo project (cannot find the new sqlite version ? strange.):
> (venv) [felix@localhost blueprint]$ python manage.py runserver
> Watching for file changes with StatReloader
> Performing system checks...
>
> System check identified no issues (0 silenced).
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
> line 219, in ensure_connection
> self.connect()
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
> line 26, in inner
> return func(*args, **kwargs)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
> line 200, in connect
> self.connection = self.get_new_connection(conn_params)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
> line 26, in inner
> return func(*args, **kwargs)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py",
> line 215, in get_new_connection
> create_deterministic_function('djang

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread 'Amitesh Sahay' via Django users
Please read the release notes of the Django version you are using. It will be a 
life saver as well.


Regards,
Amitesh  

On Wednesday, 20 January, 2021, 07:35:14 pm IST, Amitesh Sahay 
 wrote:  
 
 So, this seems to be a version compatibility issue, a a work around you can 
use some other database(mysql, oracle, etc). This cud save ur day and time as 
well.


Regards,
Amitesh 
On Wednesday, 20 January, 2021, 07:32:59 pm IST, panfei  
wrote:  
 
 I have tried, it works in Python 3.6 environment. but I still want to find a 
way (maybe a workaround) to solve this problem.

'Amitesh Sahay' via Django users  于2021年1月20日周三 
下午9:48写道:

Try older version of Python interpreter and see if that works. May be  consider 
using 3.6


Regards,
Amitesh  

On Wednesday, 20 January, 2021, 05:55:32 pm IST, panfei  
wrote:  
 
 I found that, it may not be a Django-related issue, It's more likely a Python 
level issue, but do anyone know how to avoid this problem?:
(venv) [felix@localhost blueprint]$ python
Python 3.9.1 (default, Jan 20 2021, 14:32:50) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> conn = sqlite3.connect(':memory:')
>>> conn.create_function('f', 2, lambda *args: None, deterministic=True)
Traceback (most recent call last):
  File "", line 1, in 
sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or higher
>>> sqlite3.sqlite_version
'3.34.0'
>>> sqlite3.version
'2.6.0'
>>> 


panfei  于2021年1月20日周三 下午8:03写道:


System environment:
Cent OS 7
Sqlite3 3.34.0 (Compile from source)Python 3.9.1 (Compile from source)
Django 3.1.5 (Pip install)


1. Compile sqlite3:./configure 
--prefix=/home/felix/.local/sqlite/sqlite-3.34.0make && make install
2. Add sqlite3 lib to lib search path:
export LD_LIBRARY_PATH=/home/felix/.local/sqlite/default/libexport 
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib
3. Compile Python 
3.9.1C_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/ 
CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/ 
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure 
--prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizationsmake && 
make install
4. Create a venv and install django and start a demo projectcd /tmp
/home/felix/.local/python/python-3.9.1/bin/python3 -m venv venvsource 
venv/bin/activatepip install djangodjagno-admin startproject democd demo
4 Check sqlite3 lib version (seems to be OK, sqlite_version is 3.34.0)
(venv) [felix@localhost blueprint]$ python manage.py shell
Python 3.9.0 (default, Jan 20 2021, 12:53:25) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.34.0'
>>> sqlite3.version
'2.6.0'
>>> 

5. Run the demo project (cannot find the new sqlite version ? strange.):(venv) 
[felix@localhost blueprint]$ python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
Exception in thread django-main-thread:
Traceback (most recent call last):
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
 line 219, in ensure_connection
    self.connect()
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
 line 26, in inner
    return func(*args, **kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
 line 200, in connect
    self.connection = self.get_new_connection(conn_params)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
 line 26, in inner
    return func(*args, **kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py",
 line 215, in get_new_connection
    create_deterministic_function('django_date_extract', 2, 
_sqlite_datetime_extract)
sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or higher

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", 
line 950, in _bootstrap_inner
    self.run()
  File "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", 
line 888, in run
    self._target(*self._args, **self._kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/autoreload.py",
 line 53, in wrapper
    fn(*args, **kwargs)
  File 
"/home/felix/PycharmProjects/blue

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread 'Amitesh Sahay' via Django users
So, this seems to be a version compatibility issue, a a work around you can use 
some other database(mysql, oracle, etc). This cud save ur day and time as well.


Regards,
Amitesh 
On Wednesday, 20 January, 2021, 07:32:59 pm IST, panfei  
wrote:  
 
 I have tried, it works in Python 3.6 environment. but I still want to find a 
way (maybe a workaround) to solve this problem.

'Amitesh Sahay' via Django users  于2021年1月20日周三 
下午9:48写道:

Try older version of Python interpreter and see if that works. May be  consider 
using 3.6


Regards,
Amitesh  

On Wednesday, 20 January, 2021, 05:55:32 pm IST, panfei  
wrote:  
 
 I found that, it may not be a Django-related issue, It's more likely a Python 
level issue, but do anyone know how to avoid this problem?:
(venv) [felix@localhost blueprint]$ python
Python 3.9.1 (default, Jan 20 2021, 14:32:50) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> conn = sqlite3.connect(':memory:')
>>> conn.create_function('f', 2, lambda *args: None, deterministic=True)
Traceback (most recent call last):
  File "", line 1, in 
sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or higher
>>> sqlite3.sqlite_version
'3.34.0'
>>> sqlite3.version
'2.6.0'
>>> 


panfei  于2021年1月20日周三 下午8:03写道:


System environment:
Cent OS 7
Sqlite3 3.34.0 (Compile from source)Python 3.9.1 (Compile from source)
Django 3.1.5 (Pip install)


1. Compile sqlite3:./configure 
--prefix=/home/felix/.local/sqlite/sqlite-3.34.0make && make install
2. Add sqlite3 lib to lib search path:
export LD_LIBRARY_PATH=/home/felix/.local/sqlite/default/libexport 
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib
3. Compile Python 
3.9.1C_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/ 
CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/ 
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure 
--prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizationsmake && 
make install
4. Create a venv and install django and start a demo projectcd /tmp
/home/felix/.local/python/python-3.9.1/bin/python3 -m venv venvsource 
venv/bin/activatepip install djangodjagno-admin startproject democd demo
4 Check sqlite3 lib version (seems to be OK, sqlite_version is 3.34.0)
(venv) [felix@localhost blueprint]$ python manage.py shell
Python 3.9.0 (default, Jan 20 2021, 12:53:25) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.34.0'
>>> sqlite3.version
'2.6.0'
>>> 

5. Run the demo project (cannot find the new sqlite version ? strange.):(venv) 
[felix@localhost blueprint]$ python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
Exception in thread django-main-thread:
Traceback (most recent call last):
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
 line 219, in ensure_connection
    self.connect()
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
 line 26, in inner
    return func(*args, **kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
 line 200, in connect
    self.connection = self.get_new_connection(conn_params)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
 line 26, in inner
    return func(*args, **kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py",
 line 215, in get_new_connection
    create_deterministic_function('django_date_extract', 2, 
_sqlite_datetime_extract)
sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or higher

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", 
line 950, in _bootstrap_inner
    self.run()
  File "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", 
line 888, in run
    self._target(*self._args, **self._kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/autoreload.py",
 line 53, in wrapper
    fn(*args, **kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/core/management/commands/runserver.py",
 line 121, in inner_run
    self.check_migrations()
  File 
"/home/felix/PycharmProjects/blueprint/venv/l

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread panfei
The exception is raised from inside the C implementation in Python when
checking sqlite3 version check.
In Django:

@async_unsafe
def get_new_connection(self, conn_params):
conn = Database.connect(**conn_params)
if PY38:
create_deterministic_function = functools.partial(
conn.create_function,
deterministic=True,
)
else:
create_deterministic_function = conn.create_function

if PY38 (means python version greater or equal to 3.8) is True, the new
created function will call conn.create_function with deterministic=True, so
the exception happens.

panfei  于2021年1月20日周三 下午9:54写道:

> I have tried, it works in Python 3.6 environment. but I still want to find
> a way (maybe a workaround) to solve this problem.
>
> 'Amitesh Sahay' via Django users 
> 于2021年1月20日周三 下午9:48写道:
>
>> Try older version of Python interpreter and see if that works. May be
>> consider using 3.6
>>
>> Regards,
>> Amitesh
>>
>>
>> On Wednesday, 20 January, 2021, 05:55:32 pm IST, panfei <
>> cnwe...@gmail.com> wrote:
>>
>>
>> I found that, it may not be a Django-related issue, It's more likely a
>> Python level issue, but do anyone know how to avoid this problem?:
>>
>> (venv) [felix@localhost blueprint]$ python
>> Python 3.9.1 (default, Jan 20 2021, 14:32:50)
>> [GCC 10.2.0] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import sqlite3
>> >>> conn = sqlite3.connect(':memory:')
>> >>> conn.create_function('f', 2, lambda *args: None, deterministic=True)
>> Traceback (most recent call last):
>>   File "", line 1, in 
>> sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or
>> higher
>> >>> sqlite3.sqlite_version
>> '3.34.0'
>> >>> sqlite3.version
>> '2.6.0'
>> >>>
>>
>>
>> panfei  于2021年1月20日周三 下午8:03写道:
>>
>>
>> System environment:
>>
>> Cent OS 7
>> Sqlite3 3.34.0 (Compile from source)
>> Python 3.9.1 (Compile from source)
>> Django 3.1.5 (Pip install)
>>
>>
>> 1. Compile sqlite3:
>> ./configure --prefix=/home/felix/.local/sqlite/sqlite-3.34.0
>> make && make install
>>
>> 2. Add sqlite3 lib to lib search path:
>>
>> export LD_LIBRARY_PATH=/home/felix/.local/sqlite/default/lib
>> export LD_RUN_PATH=/home/felix/.local/sqlite/default/lib
>>
>> 3. Compile Python 3.9.1
>> C_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
>> CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
>> LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure
>> --prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizations
>> make && make install
>>
>> 4. Create a venv and install django and start a demo project
>> cd /tmp
>> /home/felix/.local/python/python-3.9.1/bin/python3 -m venv venv
>> source venv/bin/activate
>> pip install django
>> djagno-admin startproject demo
>> cd demo
>>
>> 4 Check sqlite3 lib version (seems to be OK, sqlite_version is 3.34.0)
>> (venv) [felix@localhost blueprint]$ python manage.py shell
>> Python 3.9.0 (default, Jan 20 2021, 12:53:25)
>> [GCC 10.2.0] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>> (InteractiveConsole)
>> >>> import sqlite3
>> >>> sqlite3.sqlite_version
>> '3.34.0'
>> >>> sqlite3.version
>> '2.6.0'
>> >>>
>>
>> 5. Run the demo project (cannot find the new sqlite version ? strange.):
>> (venv) [felix@localhost blueprint]$ python manage.py runserver
>> Watching for file changes with StatReloader
>> Performing system checks...
>>
>> System check identified no issues (0 silenced).
>> Exception in thread django-main-thread:
>> Traceback (most recent call last):
>>   File
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
>> line 219, in ensure_connection
>> self.connect()
>>   File
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
>> line 26, in inner
>> return func(*args, **kwargs)
>>   File
>> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
>> line 200, in connect
>> self.connection = self.get_new_connection(conn_params)
&

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread panfei
I have tried, it works in Python 3.6 environment. but I still want to find
a way (maybe a workaround) to solve this problem.

'Amitesh Sahay' via Django users 
于2021年1月20日周三 下午9:48写道:

> Try older version of Python interpreter and see if that works. May be
> consider using 3.6
>
> Regards,
> Amitesh
>
>
> On Wednesday, 20 January, 2021, 05:55:32 pm IST, panfei 
> wrote:
>
>
> I found that, it may not be a Django-related issue, It's more likely a
> Python level issue, but do anyone know how to avoid this problem?:
>
> (venv) [felix@localhost blueprint]$ python
> Python 3.9.1 (default, Jan 20 2021, 14:32:50)
> [GCC 10.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sqlite3
> >>> conn = sqlite3.connect(':memory:')
> >>> conn.create_function('f', 2, lambda *args: None, deterministic=True)
> Traceback (most recent call last):
>   File "", line 1, in 
> sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or
> higher
> >>> sqlite3.sqlite_version
> '3.34.0'
> >>> sqlite3.version
> '2.6.0'
> >>>
>
>
> panfei  于2021年1月20日周三 下午8:03写道:
>
>
> System environment:
>
> Cent OS 7
> Sqlite3 3.34.0 (Compile from source)
> Python 3.9.1 (Compile from source)
> Django 3.1.5 (Pip install)
>
>
> 1. Compile sqlite3:
> ./configure --prefix=/home/felix/.local/sqlite/sqlite-3.34.0
> make && make install
>
> 2. Add sqlite3 lib to lib search path:
>
> export LD_LIBRARY_PATH=/home/felix/.local/sqlite/default/lib
> export LD_RUN_PATH=/home/felix/.local/sqlite/default/lib
>
> 3. Compile Python 3.9.1
> C_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
> CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
> LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure
> --prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizations
> make && make install
>
> 4. Create a venv and install django and start a demo project
> cd /tmp
> /home/felix/.local/python/python-3.9.1/bin/python3 -m venv venv
> source venv/bin/activate
> pip install django
> djagno-admin startproject demo
> cd demo
>
> 4 Check sqlite3 lib version (seems to be OK, sqlite_version is 3.34.0)
> (venv) [felix@localhost blueprint]$ python manage.py shell
> Python 3.9.0 (default, Jan 20 2021, 12:53:25)
> [GCC 10.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> import sqlite3
> >>> sqlite3.sqlite_version
> '3.34.0'
> >>> sqlite3.version
> '2.6.0'
> >>>
>
> 5. Run the demo project (cannot find the new sqlite version ? strange.):
> (venv) [felix@localhost blueprint]$ python manage.py runserver
> Watching for file changes with StatReloader
> Performing system checks...
>
> System check identified no issues (0 silenced).
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
> line 219, in ensure_connection
> self.connect()
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
> line 26, in inner
> return func(*args, **kwargs)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
> line 200, in connect
> self.connection = self.get_new_connection(conn_params)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
> line 26, in inner
> return func(*args, **kwargs)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py",
> line 215, in get_new_connection
> create_deterministic_function('django_date_extract', 2,
> _sqlite_datetime_extract)
> sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or
> higher
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File
> "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", line
> 950, in _bootstrap_inner
> self.run()
>   File
> "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", line
> 888, in run
> self._target(*self._args, **self._kwargs)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread 'Amitesh Sahay' via Django users
Try older version of Python interpreter and see if that works. May be  consider 
using 3.6


Regards,
Amitesh  

On Wednesday, 20 January, 2021, 05:55:32 pm IST, panfei  
wrote:  
 
 I found that, it may not be a Django-related issue, It's more likely a Python 
level issue, but do anyone know how to avoid this problem?:
(venv) [felix@localhost blueprint]$ python
Python 3.9.1 (default, Jan 20 2021, 14:32:50) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> conn = sqlite3.connect(':memory:')
>>> conn.create_function('f', 2, lambda *args: None, deterministic=True)
Traceback (most recent call last):
  File "", line 1, in 
sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or higher
>>> sqlite3.sqlite_version
'3.34.0'
>>> sqlite3.version
'2.6.0'
>>> 


panfei  于2021年1月20日周三 下午8:03写道:


System environment:
Cent OS 7
Sqlite3 3.34.0 (Compile from source)Python 3.9.1 (Compile from source)
Django 3.1.5 (Pip install)


1. Compile sqlite3:./configure 
--prefix=/home/felix/.local/sqlite/sqlite-3.34.0make && make install
2. Add sqlite3 lib to lib search path:
export LD_LIBRARY_PATH=/home/felix/.local/sqlite/default/libexport 
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib
3. Compile Python 
3.9.1C_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/ 
CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/ 
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure 
--prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizationsmake && 
make install
4. Create a venv and install django and start a demo projectcd /tmp
/home/felix/.local/python/python-3.9.1/bin/python3 -m venv venvsource 
venv/bin/activatepip install djangodjagno-admin startproject democd demo
4 Check sqlite3 lib version (seems to be OK, sqlite_version is 3.34.0)
(venv) [felix@localhost blueprint]$ python manage.py shell
Python 3.9.0 (default, Jan 20 2021, 12:53:25) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.34.0'
>>> sqlite3.version
'2.6.0'
>>> 

5. Run the demo project (cannot find the new sqlite version ? strange.):(venv) 
[felix@localhost blueprint]$ python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
Exception in thread django-main-thread:
Traceback (most recent call last):
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
 line 219, in ensure_connection
    self.connect()
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
 line 26, in inner
    return func(*args, **kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
 line 200, in connect
    self.connection = self.get_new_connection(conn_params)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
 line 26, in inner
    return func(*args, **kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py",
 line 215, in get_new_connection
    create_deterministic_function('django_date_extract', 2, 
_sqlite_datetime_extract)
sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or higher

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", 
line 950, in _bootstrap_inner
    self.run()
  File "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", 
line 888, in run
    self._target(*self._args, **self._kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/autoreload.py",
 line 53, in wrapper
    fn(*args, **kwargs)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/core/management/commands/runserver.py",
 line 121, in inner_run
    self.check_migrations()
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/core/management/base.py",
 line 459, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/migrations/executor.py",
 line 18, in __init__
    self.loader = MigrationLoader(self.connection)
  File 
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/mi

Re: python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread panfei
I found that, it may not be a Django-related issue, It's more likely a
Python level issue, but do anyone know how to avoid this problem?:

(venv) [felix@localhost blueprint]$ python
Python 3.9.1 (default, Jan 20 2021, 14:32:50)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> conn = sqlite3.connect(':memory:')
>>> conn.create_function('f', 2, lambda *args: None, deterministic=True)
Traceback (most recent call last):
  File "", line 1, in 
sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or
higher
>>> sqlite3.sqlite_version
'3.34.0'
>>> sqlite3.version
'2.6.0'
>>>


panfei  于2021年1月20日周三 下午8:03写道:

>
> System environment:
>
> Cent OS 7
> Sqlite3 3.34.0 (Compile from source)
> Python 3.9.1 (Compile from source)
> Django 3.1.5 (Pip install)
>
>
> 1. Compile sqlite3:
> ./configure --prefix=/home/felix/.local/sqlite/sqlite-3.34.0
> make && make install
>
> 2. Add sqlite3 lib to lib search path:
>
> export LD_LIBRARY_PATH=/home/felix/.local/sqlite/default/lib
> export LD_RUN_PATH=/home/felix/.local/sqlite/default/lib
>
> 3. Compile Python 3.9.1
> C_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
> CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
> LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure
> --prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizations
> make && make install
>
> 4. Create a venv and install django and start a demo project
> cd /tmp
> /home/felix/.local/python/python-3.9.1/bin/python3 -m venv venv
> source venv/bin/activate
> pip install django
> djagno-admin startproject demo
> cd demo
>
> 4 Check sqlite3 lib version (seems to be OK, sqlite_version is 3.34.0)
> (venv) [felix@localhost blueprint]$ python manage.py shell
> Python 3.9.0 (default, Jan 20 2021, 12:53:25)
> [GCC 10.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> import sqlite3
> >>> sqlite3.sqlite_version
> '3.34.0'
> >>> sqlite3.version
> '2.6.0'
> >>>
>
> 5. Run the demo project (cannot find the new sqlite version ? strange.):
> (venv) [felix@localhost blueprint]$ python manage.py runserver
> Watching for file changes with StatReloader
> Performing system checks...
>
> System check identified no issues (0 silenced).
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
> line 219, in ensure_connection
> self.connect()
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
> line 26, in inner
> return func(*args, **kwargs)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
> line 200, in connect
> self.connection = self.get_new_connection(conn_params)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
> line 26, in inner
> return func(*args, **kwargs)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py",
> line 215, in get_new_connection
> create_deterministic_function('django_date_extract', 2,
> _sqlite_datetime_extract)
> sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or
> higher
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File
> "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", line
> 950, in _bootstrap_inner
> self.run()
>   File
> "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py", line
> 888, in run
> self._target(*self._args, **self._kwargs)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/autoreload.py",
> line 53, in wrapper
> fn(*args, **kwargs)
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/core/management/commands/runserver.py",
> line 121, in inner_run
> self.check_migrations()
>   File
> "/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/core/management/base.py",
> line 459, in check_migrations
> executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
>

python manage.py runserver can not use newly compiled sqlite3 lib on CentOS 7

2021-01-20 Thread panfei
System environment:

Cent OS 7
Sqlite3 3.34.0 (Compile from source)
Python 3.9.1 (Compile from source)
Django 3.1.5 (Pip install)


1. Compile sqlite3:
./configure --prefix=/home/felix/.local/sqlite/sqlite-3.34.0
make && make install

2. Add sqlite3 lib to lib search path:

export LD_LIBRARY_PATH=/home/felix/.local/sqlite/default/lib
export LD_RUN_PATH=/home/felix/.local/sqlite/default/lib

3. Compile Python 3.9.1
C_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
CPLUS_INCLUDE_PATH=/home/felix/.local/sqlite/sqlite-3.34.0/include/
LD_RUN_PATH=/home/felix/.local/sqlite/default/lib ./configure
--prefix=/home/felix/.local/python/python-3.9.1 --enable-optimizations
make && make install

4. Create a venv and install django and start a demo project
cd /tmp
/home/felix/.local/python/python-3.9.1/bin/python3 -m venv venv
source venv/bin/activate
pip install django
djagno-admin startproject demo
cd demo

4 Check sqlite3 lib version (seems to be OK, sqlite_version is 3.34.0)
(venv) [felix@localhost blueprint]$ python manage.py shell
Python 3.9.0 (default, Jan 20 2021, 12:53:25)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.34.0'
>>> sqlite3.version
'2.6.0'
>>>

5. Run the demo project (cannot find the new sqlite version ? strange.):
(venv) [felix@localhost blueprint]$ python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
Exception in thread django-main-thread:
Traceback (most recent call last):
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
line 219, in ensure_connection
self.connect()
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
line 26, in inner
return func(*args, **kwargs)
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
line 200, in connect
self.connection = self.get_new_connection(conn_params)
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
line 26, in inner
return func(*args, **kwargs)
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py",
line 215, in get_new_connection
create_deterministic_function('django_date_extract', 2,
_sqlite_datetime_extract)
sqlite3.NotSupportedError: deterministic=True requires SQLite 3.8.3 or
higher

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py",
line 950, in _bootstrap_inner
self.run()
  File "/home/felix/.local/python/python-3.9.0/lib/python3.9/threading.py",
line 888, in run
self._target(*self._args, **self._kwargs)
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/autoreload.py",
line 53, in wrapper
fn(*args, **kwargs)
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/core/management/commands/runserver.py",
line 121, in inner_run
self.check_migrations()
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/core/management/base.py",
line 459, in check_migrations
executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/migrations/executor.py",
line 18, in __init__
self.loader = MigrationLoader(self.connection)
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/migrations/loader.py",
line 53, in __init__
self.build_graph()
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/migrations/loader.py",
line 216, in build_graph
self.applied_migrations = recorder.applied_migrations()
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/migrations/recorder.py",
line 77, in applied_migrations
if self.has_table():
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/migrations/recorder.py",
line 55, in has_table
with self.connection.cursor() as cursor:
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/utils/asyncio.py",
line 26, in inner
return func(*args, **kwargs)
  File
"/home/felix/PycharmProjects/blueprint/venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
line 259, in cursor
return self._cursor()
  File
"

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
> <https://groups.google.com/d/msgid/django-users/CAO9_9ZZRDPCFb4FnGWNLxku8VTa0x3LNKvVtUFm%2BVT%3DJ2uTOvg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%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
>> <https://groups.google.com/d/msgid/django-users/CAO9_9ZZRDPCFb4FnGWNLxku8VTa0x3LNKvVtUFm%2BVT%3DJ2uTOvg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> 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
> <https://groups.google.com/d/msgid/django-users/CAK5m3167biZ3WQVt4OBjDJX5Z0K%2Br%3DJLOXLP989UsZx1hmPOqg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/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
> <https://groups.google.com/d/msgid/django-users/CAO9_9ZZRDPCFb4FnGWNLxku8VTa0x3LNKvVtUFm%2BVT%3DJ2uTOvg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
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: Error in manage.py when I do python manage.py runserver

2020-07-22 Thread Jagtar Singh Lakhyan
Use python3 & install if Not installed then run python3 manage.py runserver


On Wed, Jul 22, 2020 at 8:08 PM Kovy Jacob  wrote:

> It gives me a syntax error
>
> Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver
> 0.0.0.0:8000
> File "manage.py", line 16
> ) from exc:
> ^
> SyntaxError: invalid syntax
>
> I didn’t edit manage.py yet, I literally just started the project. I was
> thinking maybe its a) a version error, or b) I know that I get syntax
> errors on code that was written in sublime text or a different IDE when I
> run it on IDLE, so maybe its that.
>
> --
> 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/A7892FFC-BEE5-4DE3-99C1-6C4E8CD98C68%40gmail.com
> .
>


-- 

*jagtar singh*founder & CEO
LinkedIn  <https://www.linkedin.com/in/jagtarsinghlakhyan/>
Twitter <https://twitter.com/jagtarslakhyan>

web 1: Network <https://iitians.xyz/>
web 2: WMS <http://wms.iitians.com/moodle/>
web 3: Conference <https://conference.iitians.xyz/>

Android App 1: Network
<https://play.google.com/store/apps/details?id=xyz.iitians>
Android App 2: WMS
<https://play.google.com/store/apps/details?id=xyz.iitians.wms>
Android App 3: Conference
<https://play.google.com/store/apps/details?id=xyz.iitians.conference>

Instagram <https://www.instagram.com/iitiansgroup/>
LinkedIn
<https://www.linkedin.com/school/iitian's-advanced-school-of-competition-pvt-ltd-/>
LinkedIn2 <https://www.linkedin.com/company/iitians-group/>
Twitter <https://twitter.com/IITIANSGROUP>
*IITIAN'S ADVANCED SCHOOL OF COMPETITION PVT. LTD.
<https://www.facebook.com/IITiansASC/>*

<https://iitians.xyz/>

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


Error in manage.py when I do python manage.py runserver

2020-07-22 Thread Kovy Jacob
It gives me a syntax error

Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver 0.0.0.0:8000
File "manage.py", line 16
) from exc:
^
SyntaxError: invalid syntax

I didn’t edit manage.py yet, I literally just started the project. I was 
thinking maybe its a) a version error, or b) I know that I get syntax errors on 
code that was written in sublime text or a different IDE when I run it on IDLE, 
so maybe its that.

-- 
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/A7892FFC-BEE5-4DE3-99C1-6C4E8CD98C68%40gmail.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

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\

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)
>>>>>&

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'
>>&

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()
>>>>> 

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

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, i

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\util

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
> 

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

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\r

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

Re: python manage.py runserver is throwing error in windows

2019-01-16 Thread Nigel Copley
You'll need to fix the syntax error %s=%s' % (k, v) for k, v wherever it is
in your code

On Wed, 16 Jan 2019, 13:20 Imran,  wrote:

> Hi,
>
> I have installed Django 1.11.7 in my windows 7 machine. I am getting the
> following error when i run python manage.py runserver. Is there a
> workaround to fix it?
>
> Unhandled exception in thread started by  check_errors..wrapper
>  at 0x033EA9C0>
> Traceback (most recent call last):
>   File
> "C:\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line
> 228, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Python\Python37-32\lib\site-packages\django\core\management\commands\runserver.py",
> line 117, in inner_run
> autoreload.raise_last_exception()
>   File
> "C:\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py",
> line 251, in raise_last_exception
> six.reraise(*_exception)
>   File "C:\Python\Python37-32\lib\site-packages\django\utils\six.py", line
> 685, in reraise
> raise value.with_traceback(tb)
>   File
> "C:\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line
> 228, in wrapper
> fn(*args, **kwargs)
>   File "C:\Python\Python37-32\lib\site-packages\django\__init__.py", line
> 27, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File "C:\Python\Python37-32\lib\site-packages\django\apps\registry.py",
> line 85, in populate
> app_config = AppConfig.create(entry)
>   File "C:\Python\Python37-32\lib\site-packages\django\apps\config.py",
> line 94, in create
> module = import_module(entry)
>   File "C:\Python\Python37-32\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 967, in
> _find_and_load_unlocked
>   File "", line 677, in _load_unlocked
>   File "", line 728, in exec_module
>   File "", line 219, in
> _call_with_frames_removed
>   File
> "C:\Python\Python37-32\lib\site-packages\django\contrib\admin\__init__.py",
> line 4, in 
> from django.contrib.admin.filters import (
>   File
> "C:\Python\Python37-32\lib\site-packages\django\contrib\admin\filters.py",
> line 10, in 
> from django.contrib.admin.options import IncorrectLookupParameters
>   File
> "C:\Python\Python37-32\lib\site-packages\django\contrib\admin\options.py",
> line 12, in 
> from django.contrib.admin import helpers, widgets
>   File
> "C:\Python\Python37-32\lib\site-packages\django\contrib\admin\widgets.py",
> line 151
> '%s=%s' % (k, v) for k, v in params.items(),
> ^
> SyntaxError: Generator expression must be parenthesized
>
> --
> 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/bdded2a4-f7fc-4fb3-9b97-4e6acbcee621%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/bdded2a4-f7fc-4fb3-9b97-4e6acbcee621%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/CAFtSCBiM5QXN7_dxDfQnFfNerW7yzg_7J7axEgO28deBZ0m6Zg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


python manage.py runserver is throwing error in windows

2019-01-16 Thread Imran
Hi,

I have installed Django 1.11.7 in my windows 7 machine. I am getting the 
following error when i run python manage.py runserver. Is there a 
workaround to fix it?

Unhandled exception in thread started by .wrapper
 at 0x033EA9C0>
Traceback (most recent call last):
  File 
"C:\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line 
228, in wrapper
fn(*args, **kwargs)
  File 
"C:\Python\Python37-32\lib\site-packages\django\core\management\commands\runserver.py",
 
line 117, in inner_run
autoreload.raise_last_exception()
  File 
"C:\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", 
line 251, in raise_last_exception
six.reraise(*_exception)
  File "C:\Python\Python37-32\lib\site-packages\django\utils\six.py", line 
685, in reraise
raise value.with_traceback(tb)
  File 
"C:\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line 
228, in wrapper
fn(*args, **kwargs)
  File "C:\Python\Python37-32\lib\site-packages\django\__init__.py", line 
27, in setup
apps.populate(settings.INSTALLED_APPS)
  File "C:\Python\Python37-32\lib\site-packages\django\apps\registry.py", 
line 85, in populate
app_config = AppConfig.create(entry)
  File "C:\Python\Python37-32\lib\site-packages\django\apps\config.py", 
line 94, in create
module = import_module(entry)
  File "C:\Python\Python37-32\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 967, in _find_and_load_unlocked
  File "", line 677, in _load_unlocked
  File "", line 728, in exec_module
  File "", line 219, in 
_call_with_frames_removed
  File 
"C:\Python\Python37-32\lib\site-packages\django\contrib\admin\__init__.py", 
line 4, in 
from django.contrib.admin.filters import (
  File 
"C:\Python\Python37-32\lib\site-packages\django\contrib\admin\filters.py", 
line 10, in 
from django.contrib.admin.options import IncorrectLookupParameters
  File 
"C:\Python\Python37-32\lib\site-packages\django\contrib\admin\options.py", 
line 12, in 
from django.contrib.admin import helpers, widgets
  File 
"C:\Python\Python37-32\lib\site-packages\django\contrib\admin\widgets.py", 
line 151
'%s=%s' % (k, v) for k, v in params.items(),
^
SyntaxError: Generator expression must be parenthesized

-- 
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/bdded2a4-f7fc-4fb3-9b97-4e6acbcee621%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: No puedo instalar las librerías path y url para ejecutar python manage.py runserver

2018-11-29 Thread heriberto ochoa
Tienes instalado el compilador de c++ de microsoft para python, la falta de
el puede arrojar ese error

El jue., 29 de nov. de 2018 1:08 p. m., Ing.Daniel Bojorge <
debs.fo...@gmail.com> escribió:

> Estimado, te sugeriría que actualices la versión de Python a la más
> actual. También (asumiendo que c:\python34 es la ruta de instalación de
> python) , para iniciar un proyecto sería en otra carpeta.  También trata de
> usar entornos virtuales.
>
> Podrías aclarar esas dudas?
>
>
> Dios L@s Bendiga
>
> Saludos,
>
>
>
> [image: --]
>
> daniel.bojorge
> [image: http://]about.me/daniel.bojorge
> 
>  *Curso Desarrollo Web con Python Usando Django 2.1 para Principiantes y
> Avanzados* 
> Mi Blog 
> Nicaragua
>
> "Si ustedes permanecen unidos a mí, y si permanecen fieles a mis
> enseñanzas, pidan lo que quieran y se les dará.
> (Juan 15:7 DHH)
> Bendito el varón que se fía en el SEÑOR, y cuya confianza es el SEÑOR.
> (Jeremías 17:7 RV2000)
>
>
>
> El jue., 29 nov. 2018 a las 12:45, Franklin Guadir ()
> escribió:
>
>> Soy nuevo en este tema y tal ves mi pregunta es absurda pero este
>> problema no me deja avanzar si ustedes me pueden ayudar quedaría
>> inmensamente agradecido.
>>
>> C: \ Python34> ruta de instalación de pip
>> Camino de recogida
>>   No se pudo encontrar una versión que satisfaga la ruta del requisito
>> (de versiones:)
>> No se ha encontrado una distribución coincidente para la ruta
>>
>>
>> ---
>>
>> C: \ Python34> pip install url
>> Recogiendo url
>>   Uso de
>> https://files.pythonhosted.org/packages/58/1d/492737ab1ed4ed33ed5bc00a54e92b6ad26aa793cceed097a7af389c22b3/url-0.4.2.tar.gz
>> en caché
>> Requisito ya cumplido: seis en c: \ python34 \ lib \ site-packages (from
>> url) (1.11.0)
>> Instalación de paquetes recogidos: url
>>   Ejecutando setup.py install for url ... error
>> Salida completa del comando C: \ Python34 \ python.exe -u -c
>> "importar setuptools, tokenize; __ file __ = 'C: \\ Users \\ DELL \\
>> AppData \\ Local \\ Temp \\ pip-install-61wf4mtz \ \ url \\ setup.py '; f =
>> getattr (tokenize,' open ', open) (__ file __); code = f.read (). replace
>> (' \ r \ n ',' \ n '); f. close (); exec (compile (code, __file__, 'exec'))
>> install --record C: \ Users \ DELL \ AppData \ Local \ Temp \
>> pip-record-v00wyuwm \ install-record.txt --single- versión-gestionada
>> externamente - compilar
>> Construyendo desde C ++
>> ejecutando instalar
>> ejecución en ejecución
>> corriendo build_py
>> creación de construir
>> creando build \ lib.win-amd64-3.4
>> creando build \ lib.win-amd64-3.4 \ url
>> copiando url \ __ init__.py -> build \ lib.win-amd64-3.4 \ url
>> creando build \ lib.win-amd64-3.4 \ url \ psl
>> copiando url \ psl \ 2016-08-16.psl -> build \ lib.win-amd64-3.4 \
>> url \ psl
>> corriendo build_ext
>> extensión del edificio 'url.url'
>> error: no se puede encontrar vcvarsall.bat
>>
>> 
>> Comando "C: \ Python34 \ python.exe -u -c -c" importar setuptools,
>> tokenize; __ file __ = 'C: \\ Users \\ DELL \\ AppData \\ Local \\ Temp \\
>> pip-install-61wf4mtz \\ url \\ setup.py '; f = getattr (tokenize,' open ',
>> open) (__ file __); code = f.read (). replace (' \ r \ n ',' \ n ');
>> f.close ( ); exec (compile (code, __file__, 'exec')) install --record C: \
>> Users \ DELL \ AppData \ Local \ Temp \ pip-record-v00wyuwm \
>> install-record.txt --single-version- la "compilación administrada
>> externamente" falló con el código de error 1 en C: \ Users \ DELL \ AppData
>> \ Local \ Temp \ pip-install-61wf4mtz \ url \
>>
>> --
>> 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/65d67a20-a46e-4f6e-914c-b27491567658%40googlegroups.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 

Re: No puedo instalar las librerías path y url para ejecutar python manage.py runserver

2018-11-29 Thread Ing.Daniel Bojorge
Estimado, te sugeriría que actualices la versión de Python a la más actual.
También (asumiendo que c:\python34 es la ruta de instalación de python) ,
para iniciar un proyecto sería en otra carpeta.  También trata de usar
entornos virtuales.

Podrías aclarar esas dudas?


Dios L@s Bendiga

Saludos,



[image: --]

daniel.bojorge
[image: http://]about.me/daniel.bojorge

 *Curso Desarrollo Web con Python Usando Django 2.1 para Principiantes y
Avanzados* 
Mi Blog 
Nicaragua

"Si ustedes permanecen unidos a mí, y si permanecen fieles a mis
enseñanzas, pidan lo que quieran y se les dará.
(Juan 15:7 DHH)
Bendito el varón que se fía en el SEÑOR, y cuya confianza es el SEÑOR.
(Jeremías 17:7 RV2000)



El jue., 29 nov. 2018 a las 12:45, Franklin Guadir ()
escribió:

> Soy nuevo en este tema y tal ves mi pregunta es absurda pero este problema
> no me deja avanzar si ustedes me pueden ayudar quedaría inmensamente
> agradecido.
>
> C: \ Python34> ruta de instalación de pip
> Camino de recogida
>   No se pudo encontrar una versión que satisfaga la ruta del requisito (de
> versiones:)
> No se ha encontrado una distribución coincidente para la ruta
>
>
> ---
>
> C: \ Python34> pip install url
> Recogiendo url
>   Uso de
> https://files.pythonhosted.org/packages/58/1d/492737ab1ed4ed33ed5bc00a54e92b6ad26aa793cceed097a7af389c22b3/url-0.4.2.tar.gz
> en caché
> Requisito ya cumplido: seis en c: \ python34 \ lib \ site-packages (from
> url) (1.11.0)
> Instalación de paquetes recogidos: url
>   Ejecutando setup.py install for url ... error
> Salida completa del comando C: \ Python34 \ python.exe -u -c "importar
> setuptools, tokenize; __ file __ = 'C: \\ Users \\ DELL \\ AppData \\ Local
> \\ Temp \\ pip-install-61wf4mtz \ \ url \\ setup.py '; f = getattr
> (tokenize,' open ', open) (__ file __); code = f.read (). replace (' \ r \
> n ',' \ n '); f. close (); exec (compile (code, __file__, 'exec')) install
> --record C: \ Users \ DELL \ AppData \ Local \ Temp \ pip-record-v00wyuwm \
> install-record.txt --single- versión-gestionada externamente - compilar
> Construyendo desde C ++
> ejecutando instalar
> ejecución en ejecución
> corriendo build_py
> creación de construir
> creando build \ lib.win-amd64-3.4
> creando build \ lib.win-amd64-3.4 \ url
> copiando url \ __ init__.py -> build \ lib.win-amd64-3.4 \ url
> creando build \ lib.win-amd64-3.4 \ url \ psl
> copiando url \ psl \ 2016-08-16.psl -> build \ lib.win-amd64-3.4 \ url
> \ psl
> corriendo build_ext
> extensión del edificio 'url.url'
> error: no se puede encontrar vcvarsall.bat
>
> 
> Comando "C: \ Python34 \ python.exe -u -c -c" importar setuptools,
> tokenize; __ file __ = 'C: \\ Users \\ DELL \\ AppData \\ Local \\ Temp \\
> pip-install-61wf4mtz \\ url \\ setup.py '; f = getattr (tokenize,' open ',
> open) (__ file __); code = f.read (). replace (' \ r \ n ',' \ n ');
> f.close ( ); exec (compile (code, __file__, 'exec')) install --record C: \
> Users \ DELL \ AppData \ Local \ Temp \ pip-record-v00wyuwm \
> install-record.txt --single-version- la "compilación administrada
> externamente" falló con el código de error 1 en C: \ Users \ DELL \ AppData
> \ Local \ Temp \ pip-install-61wf4mtz \ url \
>
> --
> 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/65d67a20-a46e-4f6e-914c-b27491567658%40googlegroups.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/CAMQeQjYvAn0gmX_Y-%3DdiCpin%2BNMv9nrkPWHp9goeD0i8Ti%2B0Uw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


No puedo instalar las librerías path y url para ejecutar python manage.py runserver

2018-11-29 Thread Franklin Guadir
Soy nuevo en este tema y tal ves mi pregunta es absurda pero este problema 
no me deja avanzar si ustedes me pueden ayudar quedaría inmensamente 
agradecido. 

C: \ Python34> ruta de instalación de pip
Camino de recogida
  No se pudo encontrar una versión que satisfaga la ruta del requisito (de 
versiones:)
No se ha encontrado una distribución coincidente para la ruta

---

C: \ Python34> pip install url
Recogiendo url
  Uso de 
https://files.pythonhosted.org/packages/58/1d/492737ab1ed4ed33ed5bc00a54e92b6ad26aa793cceed097a7af389c22b3/url-0.4.2.tar.gz
 
en caché
Requisito ya cumplido: seis en c: \ python34 \ lib \ site-packages (from 
url) (1.11.0)
Instalación de paquetes recogidos: url
  Ejecutando setup.py install for url ... error
Salida completa del comando C: \ Python34 \ python.exe -u -c "importar 
setuptools, tokenize; __ file __ = 'C: \\ Users \\ DELL \\ AppData \\ Local 
\\ Temp \\ pip-install-61wf4mtz \ \ url \\ setup.py '; f = getattr 
(tokenize,' open ', open) (__ file __); code = f.read (). replace (' \ r \ 
n ',' \ n '); f. close (); exec (compile (code, __file__, 'exec')) install 
--record C: \ Users \ DELL \ AppData \ Local \ Temp \ pip-record-v00wyuwm \ 
install-record.txt --single- versión-gestionada externamente - compilar
Construyendo desde C ++
ejecutando instalar
ejecución en ejecución
corriendo build_py
creación de construir
creando build \ lib.win-amd64-3.4
creando build \ lib.win-amd64-3.4 \ url
copiando url \ __ init__.py -> build \ lib.win-amd64-3.4 \ url
creando build \ lib.win-amd64-3.4 \ url \ psl
copiando url \ psl \ 2016-08-16.psl -> build \ lib.win-amd64-3.4 \ url 
\ psl
corriendo build_ext
extensión del edificio 'url.url'
error: no se puede encontrar vcvarsall.bat


Comando "C: \ Python34 \ python.exe -u -c -c" importar setuptools, 
tokenize; __ file __ = 'C: \\ Users \\ DELL \\ AppData \\ Local \\ Temp \\ 
pip-install-61wf4mtz \\ url \\ setup.py '; f = getattr (tokenize,' open ', 
open) (__ file __); code = f.read (). replace (' \ r \ n ',' \ n '); 
f.close ( ); exec (compile (code, __file__, 'exec')) install --record C: \ 
Users \ DELL \ AppData \ Local \ Temp \ pip-record-v00wyuwm \ 
install-record.txt --single-version- la "compilación administrada 
externamente" falló con el código de error 1 en C: \ Users \ DELL \ AppData 
\ Local \ Temp \ pip-install-61wf4mtz \ url \

-- 
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/65d67a20-a46e-4f6e-914c-b27491567658%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: python manage.py runserver

2018-11-21 Thread Yavin Aalto Arba
Mohamed, if you have some time I can do a webex session with you to check
it out.

On Thu, Nov 22, 2018, 5:24 AM Alfredo Sumague  did you run it inside your project directory?
>
> On Wed, Nov 21, 2018 at 11:47 AM Mohamed Hashi 
> wrote:
>
>> i install wrap
>> but till now python manage.py runserver isnt running with me
>> guys any help plz
>>
>> ‫في الأربعاء، 21 نوفمبر 2018 في 7:16 م تمت كتابة ما يلي بواسطة ‪Shubham
>> Rewale‬‏ <‪rewale...@gmail.com‬‏>:‬
>>
>>> Also install wrapped if you haven't already
>>>
>>> On Wed, 21 Nov 2018, 7:08 p.m. رهام صادقی >>
>>>> Hi,
>>>> use the following command and see if it works...
>>>> ./manage.py runserver
>>>>
>>>> ‫‪Ayser shuhaib‬‏ <‪embedded.mana...@gmail.com‬‏> در تاریخ سه‌شنبه ۲۰
>>>> نوامبر ۲۰۱۸ ساعت ۲۲:۳۴ نوشت:‬
>>>>
>>>>> What is the message that you get when you run Python manage.py
>>>>> runserver
>>>>>
>>>>> On Tue, 20 Nov 2018 at 20:58, Mohamed Hashi 
>>>>> wrote:
>>>>>
>>>>>> i wrote pip install virtualenv
>>>>>> and installed
>>>>>> buy when i do all the steps to start django web
>>>>>> and i came for python manage.py runserver isnt work
>>>>>> so and help bro
>>>>>>
>>>>>> ‫في الجمعة، 16 نوفمبر 2018 في 12:53 ص تمت كتابة ما يلي بواسطة
>>>>>> ‪Mamadou Harouna Diallo‬‏ <‪dev.haro...@gmail.com‬‏>:‬
>>>>>>
>>>>>>> Are you active your virtuel env if you are use it ?
>>>>>>> Or verify if you are in the folder where manage.py is ?
>>>>>>>
>>>>>>> Le jeu. 15 nov. 2018 18:14,  a écrit :
>>>>>>>
>>>>>>>> python manage.py runserver isnt running with me
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "Django users" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>> send an email to django-users+unsubscr...@googlegroups.com.
>>>>>>>> To post to this group, send email to django-users@googlegroups.com.
>>>>>>>>

Re: python manage.py runserver

2018-11-21 Thread Alfredo Sumague
did you run it inside your project directory?

On Wed, Nov 21, 2018 at 11:47 AM Mohamed Hashi 
wrote:

> i install wrap
> but till now python manage.py runserver isnt running with me
> guys any help plz
>
> ‫في الأربعاء، 21 نوفمبر 2018 في 7:16 م تمت كتابة ما يلي بواسطة ‪Shubham
> Rewale‬‏ <‪rewale...@gmail.com‬‏>:‬
>
>> Also install wrapped if you haven't already
>>
>> On Wed, 21 Nov 2018, 7:08 p.m. رهام صادقی >
>>> Hi,
>>> use the following command and see if it works...
>>> ./manage.py runserver
>>>
>>> ‫‪Ayser shuhaib‬‏ <‪embedded.mana...@gmail.com‬‏> در تاریخ سه‌شنبه ۲۰
>>> نوامبر ۲۰۱۸ ساعت ۲۲:۳۴ نوشت:‬
>>>
>>>> What is the message that you get when you run Python manage.py runserver
>>>>
>>>> On Tue, 20 Nov 2018 at 20:58, Mohamed Hashi 
>>>> wrote:
>>>>
>>>>> i wrote pip install virtualenv
>>>>> and installed
>>>>> buy when i do all the steps to start django web
>>>>> and i came for python manage.py runserver isnt work
>>>>> so and help bro
>>>>>
>>>>> ‫في الجمعة، 16 نوفمبر 2018 في 12:53 ص تمت كتابة ما يلي بواسطة ‪Mamadou
>>>>> Harouna Diallo‬‏ <‪dev.haro...@gmail.com‬‏>:‬
>>>>>
>>>>>> Are you active your virtuel env if you are use it ?
>>>>>> Or verify if you are in the folder where manage.py is ?
>>>>>>
>>>>>> Le jeu. 15 nov. 2018 18:14,  a écrit :
>>>>>>
>>>>>>> python manage.py runserver isnt running with me
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Django users" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to django-users+unsubscr...@googlegroups.com.
>>>>>>> To 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/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com?utm_medium=email_source=footer>
>>>>>>> .
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>> --
>>&

Re: python manage.py runserver

2018-11-21 Thread Mohamed Hashi
i install wrap
but till now python manage.py runserver isnt running with me
guys any help plz

‫في الأربعاء، 21 نوفمبر 2018 في 7:16 م تمت كتابة ما يلي بواسطة ‪Shubham
Rewale‬‏ <‪rewale...@gmail.com‬‏>:‬

> Also install wrapped if you haven't already
>
> On Wed, 21 Nov 2018, 7:08 p.m. رهام صادقی 
>> Hi,
>> use the following command and see if it works...
>> ./manage.py runserver
>>
>> ‫‪Ayser shuhaib‬‏ <‪embedded.mana...@gmail.com‬‏> در تاریخ سه‌شنبه ۲۰
>> نوامبر ۲۰۱۸ ساعت ۲۲:۳۴ نوشت:‬
>>
>>> What is the message that you get when you run Python manage.py runserver
>>>
>>> On Tue, 20 Nov 2018 at 20:58, Mohamed Hashi 
>>> wrote:
>>>
>>>> i wrote pip install virtualenv
>>>> and installed
>>>> buy when i do all the steps to start django web
>>>> and i came for python manage.py runserver isnt work
>>>> so and help bro
>>>>
>>>> ‫في الجمعة، 16 نوفمبر 2018 في 12:53 ص تمت كتابة ما يلي بواسطة ‪Mamadou
>>>> Harouna Diallo‬‏ <‪dev.haro...@gmail.com‬‏>:‬
>>>>
>>>>> Are you active your virtuel env if you are use it ?
>>>>> Or verify if you are in the folder where manage.py is ?
>>>>>
>>>>> Le jeu. 15 nov. 2018 18:14,  a écrit :
>>>>>
>>>>>> python manage.py runserver isnt running with me
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Django users" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to django-users+unsubscr...@googlegroups.com.
>>>>>> To 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/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/django-users/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>> 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/djan

Re: python manage.py runserver

2018-11-21 Thread Shubham Rewale
Also install wrapped if you haven't already

On Wed, 21 Nov 2018, 7:08 p.m. رهام صادقی  Hi,
> use the following command and see if it works...
> ./manage.py runserver
>
> ‫‪Ayser shuhaib‬‏ <‪embedded.mana...@gmail.com‬‏> در تاریخ سه‌شنبه ۲۰
> نوامبر ۲۰۱۸ ساعت ۲۲:۳۴ نوشت:‬
>
>> What is the message that you get when you run Python manage.py runserver
>>
>> On Tue, 20 Nov 2018 at 20:58, Mohamed Hashi 
>> wrote:
>>
>>> i wrote pip install virtualenv
>>> and installed
>>> buy when i do all the steps to start django web
>>> and i came for python manage.py runserver isnt work
>>> so and help bro
>>>
>>> ‫في الجمعة، 16 نوفمبر 2018 في 12:53 ص تمت كتابة ما يلي بواسطة ‪Mamadou
>>> Harouna Diallo‬‏ <‪dev.haro...@gmail.com‬‏>:‬
>>>
>>>> Are you active your virtuel env if you are use it ?
>>>> Or verify if you are in the folder where manage.py is ?
>>>>
>>>> Le jeu. 15 nov. 2018 18:14,  a écrit :
>>>>
>>>>> python manage.py runserver isnt running with me
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Django users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>>> To 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/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>> 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/CAO73PDqCX0Tghqz0nY-3p3wfZogRnt06HLN4AoE5zosp6efLQw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAO73PDqCX0Tghqz0nY-3p3wfZogRnt06HLN4AoE5zosp6efLQw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>> 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

Re: python manage.py runserver

2018-11-21 Thread رهام صادقی
Hi,
use the following command and see if it works...
./manage.py runserver

‫‪Ayser shuhaib‬‏ <‪embedded.mana...@gmail.com‬‏> در تاریخ سه‌شنبه ۲۰
نوامبر ۲۰۱۸ ساعت ۲۲:۳۴ نوشت:‬

> What is the message that you get when you run Python manage.py runserver
>
> On Tue, 20 Nov 2018 at 20:58, Mohamed Hashi 
> wrote:
>
>> i wrote pip install virtualenv
>> and installed
>> buy when i do all the steps to start django web
>> and i came for python manage.py runserver isnt work
>> so and help bro
>>
>> ‫في الجمعة، 16 نوفمبر 2018 في 12:53 ص تمت كتابة ما يلي بواسطة ‪Mamadou
>> Harouna Diallo‬‏ <‪dev.haro...@gmail.com‬‏>:‬
>>
>>> Are you active your virtuel env if you are use it ?
>>> Or verify if you are in the folder where manage.py is ?
>>>
>>> Le jeu. 15 nov. 2018 18:14,  a écrit :
>>>
>>>> python manage.py runserver isnt running with me
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To 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/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>> 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/CAO73PDqCX0Tghqz0nY-3p3wfZogRnt06HLN4AoE5zosp6efLQw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAO73PDqCX0Tghqz0nY-3p3wfZogRnt06HLN4AoE5zosp6efLQw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>> 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/CAOiYw3tYEJy%3Dz9Yg0FG6R7%2B5VAcYAe9PcV_zS1YqPss%2BnxMqeA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAOiYw3tYEJy%3Dz9Yg0FG6R7%2B5VAcYAe9PcV_zS1YqPss%2BnxMqeA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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/CAE0AZGJ4uEvZv_Q-DK_c1UUZ7juFupP1MVA%2BZQ9rELKb4Ntm7g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAE0AZGJ4uEvZv_Q-DK_c1UUZ7juFupP1MVA%2BZQ9rELKb4Ntm7g%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/CAJjGCEML7YXGPjL2qwZff4Czfg5ZKm2%2Bym87XV6DwpC8z070eQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: python manage.py runserver

2018-11-20 Thread Ayser shuhaib
What is the message that you get when you run Python manage.py runserver

On Tue, 20 Nov 2018 at 20:58, Mohamed Hashi  wrote:

> i wrote pip install virtualenv
> and installed
> buy when i do all the steps to start django web
> and i came for python manage.py runserver isnt work
> so and help bro
>
> ‫في الجمعة، 16 نوفمبر 2018 في 12:53 ص تمت كتابة ما يلي بواسطة ‪Mamadou
> Harouna Diallo‬‏ <‪dev.haro...@gmail.com‬‏>:‬
>
>> Are you active your virtuel env if you are use it ?
>> Or verify if you are in the folder where manage.py is ?
>>
>> Le jeu. 15 nov. 2018 18:14,  a écrit :
>>
>>> python manage.py runserver isnt running with me
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To 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/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> 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/CAO73PDqCX0Tghqz0nY-3p3wfZogRnt06HLN4AoE5zosp6efLQw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAO73PDqCX0Tghqz0nY-3p3wfZogRnt06HLN4AoE5zosp6efLQw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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/CAOiYw3tYEJy%3Dz9Yg0FG6R7%2B5VAcYAe9PcV_zS1YqPss%2BnxMqeA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAOiYw3tYEJy%3Dz9Yg0FG6R7%2B5VAcYAe9PcV_zS1YqPss%2BnxMqeA%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/CAE0AZGJ4uEvZv_Q-DK_c1UUZ7juFupP1MVA%2BZQ9rELKb4Ntm7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: python manage.py runserver

2018-11-20 Thread Mohamed Hashi
i wrote pip install virtualenv
and installed
buy when i do all the steps to start django web
and i came for python manage.py runserver isnt work
so and help bro

‫في الجمعة، 16 نوفمبر 2018 في 12:53 ص تمت كتابة ما يلي بواسطة ‪Mamadou
Harouna Diallo‬‏ <‪dev.haro...@gmail.com‬‏>:‬

> Are you active your virtuel env if you are use it ?
> Or verify if you are in the folder where manage.py is ?
>
> Le jeu. 15 nov. 2018 18:14,  a écrit :
>
>> python manage.py runserver isnt running with me
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To 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/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> 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/CAO73PDqCX0Tghqz0nY-3p3wfZogRnt06HLN4AoE5zosp6efLQw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAO73PDqCX0Tghqz0nY-3p3wfZogRnt06HLN4AoE5zosp6efLQw%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/CAOiYw3tYEJy%3Dz9Yg0FG6R7%2B5VAcYAe9PcV_zS1YqPss%2BnxMqeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: python manage.py runserver

2018-11-15 Thread Mamadou Harouna Diallo
Are you active your virtuel env if you are use it ?
Or verify if you are in the folder where manage.py is ?

Le jeu. 15 nov. 2018 18:14,  a écrit :

> python manage.py runserver isnt running with me
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To 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/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/CAO73PDqCX0Tghqz0nY-3p3wfZogRnt06HLN4AoE5zosp6efLQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: python manage.py runserver

2018-11-15 Thread Benjamin SOULAS
could you give us the context? what the error is?

Le jeu. 15 nov. 2018 19:14,  a écrit :

> python manage.py runserver isnt running with me
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To 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/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/CABG7fFXxoMPaHWaGGnGHPCE-CL%2BBra1yNzUp7VhNTwu1AFSr%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


python manage.py runserver

2018-11-15 Thread fysaljackson
python manage.py runserver isnt running with me








































































-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To 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/430cec4b-0301-44af-9654-a03eafec4fd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread Avitab Ayan Sarmah
Thank you Kirby I found the error and now my code is running fine. Thanks
again

On Tue 8 May, 2018, 10:26 PM C. Kirby, <mist...@gmail.com> wrote:

> Seriously?
>
> path(' Should be
> path('/', views.DetailView.as_view(), name='detail'),
>
> You have posted several time in the last two days and every issue you have
> had has been a typo. People on this board are happy to help with django
> issues, but you should be really using an IDE that will catch at least some
> of these typos. PyCharm is a good one
>
> On Tuesday, May 8, 2018 at 12:52:15 PM UTC-4, Avitab Ayan Sarmah wrote:
>>
>> Please mention where exactly I missed >
>>
>>
>> On Tue 8 May, 2018, 10:19 PM C. Kirby, <mis...@gmail.com> wrote:
>>
>>> You are missing a closing '>' in your detail url
>>>
>>> On Tuesday, May 8, 2018 at 12:42:20 PM UTC-4, Avitab Ayan Sarmah wrote:
>>>>
>>>> polls/urls.py:
>>>>
>>>> from django.urls import path
>>>>
>>>> from . import views
>>>>
>>>> app_name = 'polls'
>>>> urlpatterns = [
>>>> # ex: /polls/
>>>> path('', views.IndexView.as_view(), name='index'),
>>>> path('>>> path('/results/', views.ResultsView.as_view(), name='results'),
>>>> path('/vote/', views.vote, name='vote'),
>>>> ]
>>>>
>>>>
>>>> On Tuesday, May 8, 2018 at 10:09:44 PM UTC+5:30, Julio Biason wrote:
>>>>>
>>>>> Your problem is your urls.py:
>>>>>
>>>>> django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with
>>>>> arguments '(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
>>>>>
>>>>> You are looking for a URL named "details" which accepts 1 number and
>>>>> Django does not know it.
>>>>>
>>>>> On Tue, May 8, 2018 at 1:34 PM, Avitab Ayan Sarmah <avita...@gmail.com
>>>>> > wrote:
>>>>>
>>>>>> Exceptions:
>>>>>>
>>>>>> PS C:\Users\AVITABAYAN\mysite> python manage.py runserver
>>>>>> Performing system checks...
>>>>>>
>>>>>> System check identified no issues (0 silenced).
>>>>>> May 08, 2018 - 22:00:28
>>>>>> Django version 2.0.1, using settings 'mysite.settings'
>>>>>> Starting development server at http://127.0.0.1:8000/
>>>>>> Quit the server with CTRL-BREAK.
>>>>>> Internal Server Error: /
>>>>>> Traceback (most recent call last):
>>>>>>   File
>>>>>> "c:\python36\lib\site-packages\django\core\handlers\exception.py", line 
>>>>>> 35,
>>>>>> in inner
>>>>>> response = get_response(request)
>>>>>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py",
>>>>>> line 158, in _get_response
>>>>>> response = self.process_exception_by_middleware(e, request)
>>>>>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py",
>>>>>> line 156, in _get_response
>>>>>> response = response.render()
>>>>>>   File "c:\python36\lib\site-packages\django\template\response.py",
>>>>>> line 106, in render
>>>>>> self.content = self.rendered_content
>>>>>>   File "c:\python36\lib\site-packages\django\template\response.py",
>>>>>> line 83, in rendered_content
>>>>>> content = template.render(context, self._request)
>>>>>>   File
>>>>>> "c:\python36\lib\site-packages\django\template\backends\django.py", line
>>>>>> 61, in render
>>>>>> return self.template.render(context)
>>>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line
>>>>>> 175, in render
>>>>>> return self._render(context)
>>>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line
>>>>>> 167, in _render
>>>>>> return self.nodelist.render(context)
>>>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line
>>>>>> 943, in render
>>>>>> bit = node.render_annotated(context)
>>>>>>   File "c:\python36\lib\site-packag

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread C. Kirby
Seriously?

path('/', views.DetailView.as_view(), name='detail'),

You have posted several time in the last two days and every issue you have 
had has been a typo. People on this board are happy to help with django 
issues, but you should be really using an IDE that will catch at least some 
of these typos. PyCharm is a good one

On Tuesday, May 8, 2018 at 12:52:15 PM UTC-4, Avitab Ayan Sarmah wrote:
>
> Please mention where exactly I missed >
>
>
> On Tue 8 May, 2018, 10:19 PM C. Kirby, <mis...@gmail.com > 
> wrote:
>
>> You are missing a closing '>' in your detail url
>>
>> On Tuesday, May 8, 2018 at 12:42:20 PM UTC-4, Avitab Ayan Sarmah wrote:
>>>
>>> polls/urls.py:
>>>
>>> from django.urls import path
>>>
>>> from . import views
>>>
>>> app_name = 'polls'
>>> urlpatterns = [
>>> # ex: /polls/
>>> path('', views.IndexView.as_view(), name='index'),
>>> path('>> path('/results/', views.ResultsView.as_view(), name='results'),
>>> path('/vote/', views.vote, name='vote'),
>>> ]
>>>
>>>
>>> On Tuesday, May 8, 2018 at 10:09:44 PM UTC+5:30, Julio Biason wrote:
>>>>
>>>> Your problem is your urls.py:
>>>>
>>>> django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with 
>>>> arguments '(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
>>>>
>>>> You are looking for a URL named "details" which accepts 1 number and 
>>>> Django does not know it.
>>>>
>>>> On Tue, May 8, 2018 at 1:34 PM, Avitab Ayan Sarmah <avita...@gmail.com> 
>>>> wrote:
>>>>
>>>>> Exceptions:
>>>>>
>>>>> PS C:\Users\AVITABAYAN\mysite> python manage.py runserver
>>>>> Performing system checks...
>>>>>
>>>>> System check identified no issues (0 silenced).
>>>>> May 08, 2018 - 22:00:28
>>>>> Django version 2.0.1, using settings 'mysite.settings'
>>>>> Starting development server at http://127.0.0.1:8000/
>>>>> Quit the server with CTRL-BREAK.
>>>>> Internal Server Error: /
>>>>> Traceback (most recent call last):
>>>>>   File 
>>>>> "c:\python36\lib\site-packages\django\core\handlers\exception.py", line 
>>>>> 35, 
>>>>> in inner
>>>>> response = get_response(request)
>>>>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", 
>>>>> line 158, in _get_response
>>>>> response = self.process_exception_by_middleware(e, request)
>>>>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", 
>>>>> line 156, in _get_response
>>>>> response = response.render()
>>>>>   File "c:\python36\lib\site-packages\django\template\response.py", 
>>>>> line 106, in render
>>>>> self.content = self.rendered_content
>>>>>   File "c:\python36\lib\site-packages\django\template\response.py", 
>>>>> line 83, in rendered_content
>>>>> content = template.render(context, self._request)
>>>>>   File 
>>>>> "c:\python36\lib\site-packages\django\template\backends\django.py", line 
>>>>> 61, in render
>>>>> return self.template.render(context)
>>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>>> 175, in render
>>>>> return self._render(context)
>>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>>> 167, in _render
>>>>> return self.nodelist.render(context)
>>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>>> 943, in render
>>>>> bit = node.render_annotated(context)
>>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>>> 910, in render_annotated
>>>>> return self.render(context)
>>>>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py", 
>>>>> line 314, in render
>>>>> return nodelist.render(context)
>>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>>> 943, in render
>>>>> bit = node.render_annotated(

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread Avitab Ayan Sarmah
please mention where exactly i am missing >?

On Tuesday, May 8, 2018 at 10:18:43 PM UTC+5:30, C. Kirby wrote:
>
> You are missing a closing '>' in your detail url
>
> On Tuesday, May 8, 2018 at 12:42:20 PM UTC-4, Avitab Ayan Sarmah wrote:
>>
>> polls/urls.py:
>>
>> from django.urls import path
>>
>> from . import views
>>
>> app_name = 'polls'
>> urlpatterns = [
>> # ex: /polls/
>> path('', views.IndexView.as_view(), name='index'),
>> path('> path('/results/', views.ResultsView.as_view(), name='results'),
>> path('/vote/', views.vote, name='vote'),
>> ]
>>
>>
>> On Tuesday, May 8, 2018 at 10:09:44 PM UTC+5:30, Julio Biason wrote:
>>>
>>> Your problem is your urls.py:
>>>
>>> django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with 
>>> arguments '(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
>>>
>>> You are looking for a URL named "details" which accepts 1 number and 
>>> Django does not know it.
>>>
>>> On Tue, May 8, 2018 at 1:34 PM, Avitab Ayan Sarmah <avita...@gmail.com> 
>>> wrote:
>>>
>>>> Exceptions:
>>>>
>>>> PS C:\Users\AVITABAYAN\mysite> python manage.py runserver
>>>> Performing system checks...
>>>>
>>>> System check identified no issues (0 silenced).
>>>> May 08, 2018 - 22:00:28
>>>> Django version 2.0.1, using settings 'mysite.settings'
>>>> Starting development server at http://127.0.0.1:8000/
>>>> Quit the server with CTRL-BREAK.
>>>> Internal Server Error: /
>>>> Traceback (most recent call last):
>>>>   File 
>>>> "c:\python36\lib\site-packages\django\core\handlers\exception.py", line 
>>>> 35, 
>>>> in inner
>>>> response = get_response(request)
>>>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", 
>>>> line 158, in _get_response
>>>> response = self.process_exception_by_middleware(e, request)
>>>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", 
>>>> line 156, in _get_response
>>>> response = response.render()
>>>>   File "c:\python36\lib\site-packages\django\template\response.py", 
>>>> line 106, in render
>>>> self.content = self.rendered_content
>>>>   File "c:\python36\lib\site-packages\django\template\response.py", 
>>>> line 83, in rendered_content
>>>> content = template.render(context, self._request)
>>>>   File 
>>>> "c:\python36\lib\site-packages\django\template\backends\django.py", line 
>>>> 61, in render
>>>> return self.template.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>> 175, in render
>>>> return self._render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>> 167, in _render
>>>> return self.nodelist.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>> 943, in render
>>>> bit = node.render_annotated(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>> 910, in render_annotated
>>>> return self.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py", 
>>>> line 314, in render
>>>> return nodelist.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>> 943, in render
>>>> bit = node.render_annotated(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>> 910, in render_annotated
>>>> return self.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py", 
>>>> line 211, in render
>>>> nodelist.append(node.render_annotated(context))
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>>> 910, in render_annotated
>>>> return self.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py", 
>>>> line 447, in render
>>>> url = reverse(v

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread Avitab Ayan Sarmah
Please mention where exactly I missed >


On Tue 8 May, 2018, 10:19 PM C. Kirby, <mist...@gmail.com> wrote:

> You are missing a closing '>' in your detail url
>
> On Tuesday, May 8, 2018 at 12:42:20 PM UTC-4, Avitab Ayan Sarmah wrote:
>>
>> polls/urls.py:
>>
>> from django.urls import path
>>
>> from . import views
>>
>> app_name = 'polls'
>> urlpatterns = [
>> # ex: /polls/
>> path('', views.IndexView.as_view(), name='index'),
>> path('> path('/results/', views.ResultsView.as_view(), name='results'),
>> path('/vote/', views.vote, name='vote'),
>> ]
>>
>>
>> On Tuesday, May 8, 2018 at 10:09:44 PM UTC+5:30, Julio Biason wrote:
>>>
>>> Your problem is your urls.py:
>>>
>>> django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with
>>> arguments '(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
>>>
>>> You are looking for a URL named "details" which accepts 1 number and
>>> Django does not know it.
>>>
>>> On Tue, May 8, 2018 at 1:34 PM, Avitab Ayan Sarmah <avita...@gmail.com>
>>> wrote:
>>>
>>>> Exceptions:
>>>>
>>>> PS C:\Users\AVITABAYAN\mysite> python manage.py runserver
>>>> Performing system checks...
>>>>
>>>> System check identified no issues (0 silenced).
>>>> May 08, 2018 - 22:00:28
>>>> Django version 2.0.1, using settings 'mysite.settings'
>>>> Starting development server at http://127.0.0.1:8000/
>>>> Quit the server with CTRL-BREAK.
>>>> Internal Server Error: /
>>>> Traceback (most recent call last):
>>>>   File
>>>> "c:\python36\lib\site-packages\django\core\handlers\exception.py", line 35,
>>>> in inner
>>>> response = get_response(request)
>>>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py",
>>>> line 158, in _get_response
>>>> response = self.process_exception_by_middleware(e, request)
>>>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py",
>>>> line 156, in _get_response
>>>> response = response.render()
>>>>   File "c:\python36\lib\site-packages\django\template\response.py",
>>>> line 106, in render
>>>> self.content = self.rendered_content
>>>>   File "c:\python36\lib\site-packages\django\template\response.py",
>>>> line 83, in rendered_content
>>>> content = template.render(context, self._request)
>>>>   File
>>>> "c:\python36\lib\site-packages\django\template\backends\django.py", line
>>>> 61, in render
>>>> return self.template.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line
>>>> 175, in render
>>>> return self._render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line
>>>> 167, in _render
>>>> return self.nodelist.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line
>>>> 943, in render
>>>> bit = node.render_annotated(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line
>>>> 910, in render_annotated
>>>> return self.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py",
>>>> line 314, in render
>>>> return nodelist.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line
>>>> 943, in render
>>>> bit = node.render_annotated(context)
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line
>>>> 910, in render_annotated
>>>> return self.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py",
>>>> line 211, in render
>>>> nodelist.append(node.render_annotated(context))
>>>>   File "c:\python36\lib\site-packages\django\template\base.py", line
>>>> 910, in render_annotated
>>>> return self.render(context)
>>>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py",
>>>> line 447, in render
>>>> url = reverse(view_name, args=args, kwargs=kwargs,
>>>

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread C. Kirby
You are missing a closing '>' in your detail url

On Tuesday, May 8, 2018 at 12:42:20 PM UTC-4, Avitab Ayan Sarmah wrote:
>
> polls/urls.py:
>
> from django.urls import path
>
> from . import views
>
> app_name = 'polls'
> urlpatterns = [
> # ex: /polls/
> path('', views.IndexView.as_view(), name='index'),
> path(' path('/results/', views.ResultsView.as_view(), name='results'),
> path('/vote/', views.vote, name='vote'),
> ]
>
>
> On Tuesday, May 8, 2018 at 10:09:44 PM UTC+5:30, Julio Biason wrote:
>>
>> Your problem is your urls.py:
>>
>> django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with 
>> arguments '(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
>>
>> You are looking for a URL named "details" which accepts 1 number and 
>> Django does not know it.
>>
>> On Tue, May 8, 2018 at 1:34 PM, Avitab Ayan Sarmah <avita...@gmail.com> 
>> wrote:
>>
>>> Exceptions:
>>>
>>> PS C:\Users\AVITABAYAN\mysite> python manage.py runserver
>>> Performing system checks...
>>>
>>> System check identified no issues (0 silenced).
>>> May 08, 2018 - 22:00:28
>>> Django version 2.0.1, using settings 'mysite.settings'
>>> Starting development server at http://127.0.0.1:8000/
>>> Quit the server with CTRL-BREAK.
>>> Internal Server Error: /
>>> Traceback (most recent call last):
>>>   File 
>>> "c:\python36\lib\site-packages\django\core\handlers\exception.py", line 35, 
>>> in inner
>>> response = get_response(request)
>>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", 
>>> line 158, in _get_response
>>> response = self.process_exception_by_middleware(e, request)
>>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", 
>>> line 156, in _get_response
>>> response = response.render()
>>>   File "c:\python36\lib\site-packages\django\template\response.py", line 
>>> 106, in render
>>> self.content = self.rendered_content
>>>   File "c:\python36\lib\site-packages\django\template\response.py", line 
>>> 83, in rendered_content
>>> content = template.render(context, self._request)
>>>   File 
>>> "c:\python36\lib\site-packages\django\template\backends\django.py", line 
>>> 61, in render
>>> return self.template.render(context)
>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>> 175, in render
>>> return self._render(context)
>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>> 167, in _render
>>> return self.nodelist.render(context)
>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>> 943, in render
>>> bit = node.render_annotated(context)
>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>> 910, in render_annotated
>>> return self.render(context)
>>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py", 
>>> line 314, in render
>>> return nodelist.render(context)
>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>> 943, in render
>>> bit = node.render_annotated(context)
>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>> 910, in render_annotated
>>> return self.render(context)
>>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py", 
>>> line 211, in render
>>> nodelist.append(node.render_annotated(context))
>>>   File "c:\python36\lib\site-packages\django\template\base.py", line 
>>> 910, in render_annotated
>>> return self.render(context)
>>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py", 
>>> line 447, in render
>>> url = reverse(view_name, args=args, kwargs=kwargs, 
>>> current_app=current_app)
>>>   File "c:\python36\lib\site-packages\django\urls\base.py", line 88, in 
>>> reverse
>>> return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, 
>>> **kwargs))
>>>   File "c:\python36\lib\site-packages\django\urls\resolvers.py", line 
>>> 632, in _reverse_with_prefix
>>> raise NoReverseMatch(msg)
>>> django.urls.exceptions.NoRev

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread Avitab Ayan Sarmah
polls/urls.py:

from django.urls import path

from . import views

app_name = 'polls'
urlpatterns = [
# ex: /polls/
path('', views.IndexView.as_view(), name='index'),
path('/results/', views.ResultsView.as_view(), name='results'),
path('/vote/', views.vote, name='vote'),
]


On Tuesday, May 8, 2018 at 10:09:44 PM UTC+5:30, Julio Biason wrote:
>
> Your problem is your urls.py:
>
> django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with arguments 
> '(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
>
> You are looking for a URL named "details" which accepts 1 number and 
> Django does not know it.
>
> On Tue, May 8, 2018 at 1:34 PM, Avitab Ayan Sarmah <avita...@gmail.com 
> > wrote:
>
>> Exceptions:
>>
>> PS C:\Users\AVITABAYAN\mysite> python manage.py runserver
>> Performing system checks...
>>
>> System check identified no issues (0 silenced).
>> May 08, 2018 - 22:00:28
>> Django version 2.0.1, using settings 'mysite.settings'
>> Starting development server at http://127.0.0.1:8000/
>> Quit the server with CTRL-BREAK.
>> Internal Server Error: /
>> Traceback (most recent call last):
>>   File "c:\python36\lib\site-packages\django\core\handlers\exception.py", 
>> line 35, in inner
>> response = get_response(request)
>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", line 
>> 158, in _get_response
>> response = self.process_exception_by_middleware(e, request)
>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", line 
>> 156, in _get_response
>> response = response.render()
>>   File "c:\python36\lib\site-packages\django\template\response.py", line 
>> 106, in render
>> self.content = self.rendered_content
>>   File "c:\python36\lib\site-packages\django\template\response.py", line 
>> 83, in rendered_content
>> content = template.render(context, self._request)
>>   File 
>> "c:\python36\lib\site-packages\django\template\backends\django.py", line 
>> 61, in render
>> return self.template.render(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 175, 
>> in render
>> return self._render(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 167, 
>> in _render
>> return self.nodelist.render(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 943, 
>> in render
>> bit = node.render_annotated(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 910, 
>> in render_annotated
>> return self.render(context)
>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py", 
>> line 314, in render
>> return nodelist.render(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 943, 
>> in render
>> bit = node.render_annotated(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 910, 
>> in render_annotated
>> return self.render(context)
>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py", 
>> line 211, in render
>> nodelist.append(node.render_annotated(context))
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 910, 
>> in render_annotated
>> return self.render(context)
>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py", 
>> line 447, in render
>> url = reverse(view_name, args=args, kwargs=kwargs, 
>> current_app=current_app)
>>   File "c:\python36\lib\site-packages\django\urls\base.py", line 88, in 
>> reverse
>> return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, 
>> **kwargs))
>>   File "c:\python36\lib\site-packages\django\urls\resolvers.py", line 
>> 632, in _reverse_with_prefix
>> raise NoReverseMatch(msg)
>> django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with 
>> arguments '(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
>> [08/May/2018 22:00:42] "GET / HTTP/1.1" 500 134672
>>
>> views.py:
>>
>> from django.shortcuts import get_object_or_404, render
>> from django.http import HttpResponseRedirect
>> from django.urls import reverse
>> from django.views import generic
>>
>> from . models import Choice, Question
>>
>>
>> class IndexView(generic.ListView):
>> temp

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread Avitab Ayan Sarmah
Wait I am sharing my URLs.py

On Tue 8 May, 2018, 10:09 PM Julio Biason, <julio.bia...@azion.com> wrote:

> Your problem is your urls.py:
>
> django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with arguments
> '(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
>
> You are looking for a URL named "details" which accepts 1 number and
> Django does not know it.
>
> On Tue, May 8, 2018 at 1:34 PM, Avitab Ayan Sarmah <avitabay...@gmail.com>
> wrote:
>
>> Exceptions:
>>
>> PS C:\Users\AVITABAYAN\mysite> python manage.py runserver
>> Performing system checks...
>>
>> System check identified no issues (0 silenced).
>> May 08, 2018 - 22:00:28
>> Django version 2.0.1, using settings 'mysite.settings'
>> Starting development server at http://127.0.0.1:8000/
>> Quit the server with CTRL-BREAK.
>> Internal Server Error: /
>> Traceback (most recent call last):
>>   File "c:\python36\lib\site-packages\django\core\handlers\exception.py",
>> line 35, in inner
>> response = get_response(request)
>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", line
>> 158, in _get_response
>> response = self.process_exception_by_middleware(e, request)
>>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", line
>> 156, in _get_response
>> response = response.render()
>>   File "c:\python36\lib\site-packages\django\template\response.py", line
>> 106, in render
>> self.content = self.rendered_content
>>   File "c:\python36\lib\site-packages\django\template\response.py", line
>> 83, in rendered_content
>> content = template.render(context, self._request)
>>   File
>> "c:\python36\lib\site-packages\django\template\backends\django.py", line
>> 61, in render
>> return self.template.render(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 175,
>> in render
>> return self._render(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 167,
>> in _render
>> return self.nodelist.render(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 943,
>> in render
>> bit = node.render_annotated(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 910,
>> in render_annotated
>> return self.render(context)
>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py",
>> line 314, in render
>> return nodelist.render(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 943,
>> in render
>> bit = node.render_annotated(context)
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 910,
>> in render_annotated
>> return self.render(context)
>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py",
>> line 211, in render
>> nodelist.append(node.render_annotated(context))
>>   File "c:\python36\lib\site-packages\django\template\base.py", line 910,
>> in render_annotated
>> return self.render(context)
>>   File "c:\python36\lib\site-packages\django\template\defaulttags.py",
>> line 447, in render
>> url = reverse(view_name, args=args, kwargs=kwargs,
>> current_app=current_app)
>>   File "c:\python36\lib\site-packages\django\urls\base.py", line 88, in
>> reverse
>> return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args,
>> **kwargs))
>>   File "c:\python36\lib\site-packages\django\urls\resolvers.py", line
>> 632, in _reverse_with_prefix
>> raise NoReverseMatch(msg)
>> django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with
>> arguments '(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
>> [08/May/2018 22:00:42] "GET / HTTP/1.1" 500 134672
>>
>> views.py:
>>
>> from django.shortcuts import get_object_or_404, render
>> from django.http import HttpResponseRedirect
>> from django.urls import reverse
>> from django.views import generic
>>
>> from . models import Choice, Question
>>
>>
>> class IndexView(generic.ListView):
>> template_name = 'polls/index.html'
>> context_object_name = 'latest_question_list'
>>
>> def get_queryset(self):
>> """Return the last five published questions."""
>> return Question.obj

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread Julio Biason
Your problem is your urls.py:

django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with arguments
'(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']

You are looking for a URL named "details" which accepts 1 number and Django
does not know it.

On Tue, May 8, 2018 at 1:34 PM, Avitab Ayan Sarmah <avitabay...@gmail.com>
wrote:

> Exceptions:
>
> PS C:\Users\AVITABAYAN\mysite> python manage.py runserver
> Performing system checks...
>
> System check identified no issues (0 silenced).
> May 08, 2018 - 22:00:28
> Django version 2.0.1, using settings 'mysite.settings'
> Starting development server at http://127.0.0.1:8000/
> Quit the server with CTRL-BREAK.
> Internal Server Error: /
> Traceback (most recent call last):
>   File "c:\python36\lib\site-packages\django\core\handlers\exception.py",
> line 35, in inner
> response = get_response(request)
>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", line
> 158, in _get_response
> response = self.process_exception_by_middleware(e, request)
>   File "c:\python36\lib\site-packages\django\core\handlers\base.py", line
> 156, in _get_response
> response = response.render()
>   File "c:\python36\lib\site-packages\django\template\response.py", line
> 106, in render
> self.content = self.rendered_content
>   File "c:\python36\lib\site-packages\django\template\response.py", line
> 83, in rendered_content
> content = template.render(context, self._request)
>   File "c:\python36\lib\site-packages\django\template\backends\django.py",
> line 61, in render
> return self.template.render(context)
>   File "c:\python36\lib\site-packages\django\template\base.py", line 175,
> in render
> return self._render(context)
>   File "c:\python36\lib\site-packages\django\template\base.py", line 167,
> in _render
> return self.nodelist.render(context)
>   File "c:\python36\lib\site-packages\django\template\base.py", line 943,
> in render
> bit = node.render_annotated(context)
>   File "c:\python36\lib\site-packages\django\template\base.py", line 910,
> in render_annotated
> return self.render(context)
>   File "c:\python36\lib\site-packages\django\template\defaulttags.py",
> line 314, in render
> return nodelist.render(context)
>   File "c:\python36\lib\site-packages\django\template\base.py", line 943,
> in render
> bit = node.render_annotated(context)
>   File "c:\python36\lib\site-packages\django\template\base.py", line 910,
> in render_annotated
> return self.render(context)
>   File "c:\python36\lib\site-packages\django\template\defaulttags.py",
> line 211, in render
> nodelist.append(node.render_annotated(context))
>   File "c:\python36\lib\site-packages\django\template\base.py", line 910,
> in render_annotated
> return self.render(context)
>   File "c:\python36\lib\site-packages\django\template\defaulttags.py",
> line 447, in render
> url = reverse(view_name, args=args, kwargs=kwargs,
> current_app=current_app)
>   File "c:\python36\lib\site-packages\django\urls\base.py", line 88, in
> reverse
> return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args,
> **kwargs))
>   File "c:\python36\lib\site-packages\django\urls\resolvers.py", line
> 632, in _reverse_with_prefix
> raise NoReverseMatch(msg)
> django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with
> arguments '(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
> [08/May/2018 22:00:42] "GET / HTTP/1.1" 500 134672
>
> views.py:
>
> from django.shortcuts import get_object_or_404, render
> from django.http import HttpResponseRedirect
> from django.urls import reverse
> from django.views import generic
>
> from . models import Choice, Question
>
>
> class IndexView(generic.ListView):
> template_name = 'polls/index.html'
> context_object_name = 'latest_question_list'
>
> def get_queryset(self):
> """Return the last five published questions."""
> return Question.objects.order_by('-pub_date')[:5]
>
>
> class DetailView(generic.DetailView):
> model = Question
> template_name = 'polls/detail.html'
>
>
> class ResultsView(generic.DetailView):
> model = Question
> template_name = 'polls/results.html'
>
>
> def vote(request, question_id):
> question = get_object_or_404(Question, pk=question_id)
> try:
> selected_choice = question.choice_set.get(pk=request.POST['choice'])
> except (KeyError, Choice.DoesNotExist):
> #Redisplay the question voting form.
&

While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is mentioned

2018-05-08 Thread Avitab Ayan Sarmah
Exceptions:

PS C:\Users\AVITABAYAN\mysite> python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
May 08, 2018 - 22:00:28
Django version 2.0.1, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Internal Server Error: /
Traceback (most recent call last):
  File "c:\python36\lib\site-packages\django\core\handlers\exception.py", 
line 35, in inner
response = get_response(request)
  File "c:\python36\lib\site-packages\django\core\handlers\base.py", line 
158, in _get_response
response = self.process_exception_by_middleware(e, request)
  File "c:\python36\lib\site-packages\django\core\handlers\base.py", line 
156, in _get_response
response = response.render()
  File "c:\python36\lib\site-packages\django\template\response.py", line 
106, in render
self.content = self.rendered_content
  File "c:\python36\lib\site-packages\django\template\response.py", line 
83, in rendered_content
content = template.render(context, self._request)
  File "c:\python36\lib\site-packages\django\template\backends\django.py", 
line 61, in render
return self.template.render(context)
  File "c:\python36\lib\site-packages\django\template\base.py", line 175, 
in render
return self._render(context)
  File "c:\python36\lib\site-packages\django\template\base.py", line 167, 
in _render
return self.nodelist.render(context)
  File "c:\python36\lib\site-packages\django\template\base.py", line 943, 
in render
bit = node.render_annotated(context)
  File "c:\python36\lib\site-packages\django\template\base.py", line 910, 
in render_annotated
return self.render(context)
  File "c:\python36\lib\site-packages\django\template\defaulttags.py", line 
314, in render
return nodelist.render(context)
  File "c:\python36\lib\site-packages\django\template\base.py", line 943, 
in render
bit = node.render_annotated(context)
  File "c:\python36\lib\site-packages\django\template\base.py", line 910, 
in render_annotated
return self.render(context)
  File "c:\python36\lib\site-packages\django\template\defaulttags.py", line 
211, in render
nodelist.append(node.render_annotated(context))
  File "c:\python36\lib\site-packages\django\template\base.py", line 910, 
in render_annotated
return self.render(context)
  File "c:\python36\lib\site-packages\django\template\defaulttags.py", line 
447, in render
url = reverse(view_name, args=args, kwargs=kwargs, 
current_app=current_app)
  File "c:\python36\lib\site-packages\django\urls\base.py", line 88, in 
reverse
return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, 
**kwargs))
  File "c:\python36\lib\site-packages\django\urls\resolvers.py", line 632, 
in _reverse_with_prefix
raise NoReverseMatch(msg)
django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with arguments 
'(1,)' not found. 1 pattern(s) tried: ['\\<int\\:pk\\/$']
[08/May/2018 22:00:42] "GET / HTTP/1.1" 500 134672

views.py:

from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.views import generic

from . models import Choice, Question


class IndexView(generic.ListView):
template_name = 'polls/index.html'
context_object_name = 'latest_question_list'

def get_queryset(self):
"""Return the last five published questions."""
return Question.objects.order_by('-pub_date')[:5]


class DetailView(generic.DetailView):
model = Question
template_name = 'polls/detail.html'


class ResultsView(generic.DetailView):
model = Question
template_name = 'polls/results.html'


def vote(request, question_id):
question = get_object_or_404(Question, pk=question_id)
try:
selected_choice = question.choice_set.get(pk=request.POST['choice'])
except (KeyError, Choice.DoesNotExist):
#Redisplay the question voting form.
return render(request, 'polls/detail.html', {
'question': question,
'error_message': "you didn't select a choice.",
})
else:
selected_choice.votes +=1
selected_choice.save()
#...
#...
#...
return HttpResponseRedirect(reverse('polls:results', args=(question.id,)))

index.html:

{% if latest_question_list %}
  
  {% for question in latest_question_list %}
  {{
question.question_text }}
  {% endfor %}
  
{% else %}
  No polls are available.
{% endif %}


-- 
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/1681bb6e-226e-4792-ab5c-1cadcf836eff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: while going through the django tutorial i commited a error and because of which i cannot execute the python manage.py runserver. The errors are attached below

2018-05-08 Thread Avitab Ayan Sarmah
Sure

On Tue 8 May, 2018, 12:08 AM Jani Tiainen,  wrote:

> Also next time please post exceptions as a text. Images are really hard to
> read specially on mobile device.
>
> ma 7. toukokuuta 2018 klo 20.34 Avitab Ayan Sarmah 
> kirjoitti:
>
>> i got the error thank you. It was a simple error i forgot to put "<"
>> before vote
>>
>> On Monday, May 7, 2018 at 10:55:51 PM UTC+5:30, Avitab Ayan Sarmah wrote:
>>>
>>> polls/urls.py:
>>>
>>> from django.urls import path
>>>
>>> from . import views
>>>
>>> app_name = 'polls'
>>> urlpatterns = [
>>> # ex: /polls/
>>> path('', views.index, name='index'),
>>> # ex: /polls/5/
>>> path('/', views.detail, name='detail'),
>>> #ex: /polls/5/results/
>>> path('/results/', views.results, name='results'),
>>> #ex: /polls/5/vote/
>>> path('int:question_id>/vote/', views.vote, name='vote'),
>>> ]
>>>
>>>
>>> On Monday, May 7, 2018 at 10:54:16 PM UTC+5:30, Dylan Reinhold wrote:

 Share your polls/url.py it's saying it cant find the url named "vote"
 in your polls.

 Dylan

 On Mon, May 7, 2018 at 10:14 AM, Avitab Ayan Sarmah  wrote:

> Detail.html:
>
> {{ question.question_text }}
>
> {% if error_message %}{{ error_message }}{%
> endif %}
>
> 
> {% csrf_token %}
> {% for choice in question.choice_set.all %}
>    value="{{ choice.id }}" />
>   {{ choice.choice_text }}
> 
> {% endfor %}
> 
> 
>
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@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/aab94309-a65f-49ec-bd4d-bb07bf5457a7%40googlegroups.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/6176e606-7dbe-4a39-bd05-fc879482663c%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/bSlQt0K3Pe8/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAHn91oekr%3DRnKmb6ZCDpWgL5iBH5KpDmEFB4Jv%2BVVihEaRaJzg%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/CAEx5wm4B3f5xrdLMTgwQBMKFC0Lh0wrPhpxVZgcb14qJuDiBFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: while going through the django tutorial i commited a error and because of which i cannot execute the python manage.py runserver. The errors are attached below

2018-05-07 Thread Jani Tiainen
Also next time please post exceptions as a text. Images are really hard to
read specially on mobile device.

ma 7. toukokuuta 2018 klo 20.34 Avitab Ayan Sarmah 
kirjoitti:

> i got the error thank you. It was a simple error i forgot to put "<"
> before vote
>
> On Monday, May 7, 2018 at 10:55:51 PM UTC+5:30, Avitab Ayan Sarmah wrote:
>>
>> polls/urls.py:
>>
>> from django.urls import path
>>
>> from . import views
>>
>> app_name = 'polls'
>> urlpatterns = [
>> # ex: /polls/
>> path('', views.index, name='index'),
>> # ex: /polls/5/
>> path('/', views.detail, name='detail'),
>> #ex: /polls/5/results/
>> path('/results/', views.results, name='results'),
>> #ex: /polls/5/vote/
>> path('int:question_id>/vote/', views.vote, name='vote'),
>> ]
>>
>>
>> On Monday, May 7, 2018 at 10:54:16 PM UTC+5:30, Dylan Reinhold wrote:
>>>
>>> Share your polls/url.py it's saying it cant find the url named "vote" in
>>> your polls.
>>>
>>> Dylan
>>>
>>> On Mon, May 7, 2018 at 10:14 AM, Avitab Ayan Sarmah 
>>> wrote:
>>>
 Detail.html:

 {{ question.question_text }}

 {% if error_message %}{{ error_message }}{%
 endif %}

 
 {% csrf_token %}
 {% for choice in question.choice_set.all %}
   >>> value="{{ choice.id }}" />
   {{ choice.choice_text }}
 
 {% endfor %}
 
 

 --
 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...@googlegroups.com.
 To post to this group, send email to django...@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/aab94309-a65f-49ec-bd4d-bb07bf5457a7%40googlegroups.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/6176e606-7dbe-4a39-bd05-fc879482663c%40googlegroups.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/CAHn91oekr%3DRnKmb6ZCDpWgL5iBH5KpDmEFB4Jv%2BVVihEaRaJzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: while going through the django tutorial i commited a error and because of which i cannot execute the python manage.py runserver. The errors are attached below

2018-05-07 Thread Avitab Ayan Sarmah
i got the error thank you. It was a simple error i forgot to put "<" before 
vote

On Monday, May 7, 2018 at 10:55:51 PM UTC+5:30, Avitab Ayan Sarmah wrote:
>
> polls/urls.py:
>
> from django.urls import path
>
> from . import views
>
> app_name = 'polls'
> urlpatterns = [
> # ex: /polls/
> path('', views.index, name='index'),
> # ex: /polls/5/
> path('/', views.detail, name='detail'),
> #ex: /polls/5/results/
> path('/results/', views.results, name='results'),
> #ex: /polls/5/vote/
> path('int:question_id>/vote/', views.vote, name='vote'),
> ]
>
>
> On Monday, May 7, 2018 at 10:54:16 PM UTC+5:30, Dylan Reinhold wrote:
>>
>> Share your polls/url.py it's saying it cant find the url named "vote" in 
>> your polls.
>>
>> Dylan
>>
>> On Mon, May 7, 2018 at 10:14 AM, Avitab Ayan Sarmah  
>> wrote:
>>
>>> Detail.html:
>>>
>>> {{ question.question_text }}
>>>
>>> {% if error_message %}{{ error_message }}{% 
>>> endif %}
>>>
>>> 
>>> {% csrf_token %}
>>> {% for choice in question.choice_set.all %}
>>>   >> value="{{ choice.id }}" />
>>>   {{ choice.choice_text }}
>>> 
>>> {% endfor %}
>>> 
>>> 
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> To post to this group, send email to django...@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/aab94309-a65f-49ec-bd4d-bb07bf5457a7%40googlegroups.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/6176e606-7dbe-4a39-bd05-fc879482663c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: while going through the django tutorial i commited a error and because of which i cannot execute the python manage.py runserver. The errors are attached below

2018-05-07 Thread Avitab Ayan Sarmah
polls/urls.py:

from django.urls import path

from . import views

app_name = 'polls'
urlpatterns = [
# ex: /polls/
path('', views.index, name='index'),
# ex: /polls/5/
path('/', views.detail, name='detail'),
#ex: /polls/5/results/
path('/results/', views.results, name='results'),
#ex: /polls/5/vote/
path('int:question_id>/vote/', views.vote, name='vote'),
]


On Monday, May 7, 2018 at 10:54:16 PM UTC+5:30, Dylan Reinhold wrote:
>
> Share your polls/url.py it's saying it cant find the url named "vote" in 
> your polls.
>
> Dylan
>
> On Mon, May 7, 2018 at 10:14 AM, Avitab Ayan Sarmah  > wrote:
>
>> Detail.html:
>>
>> {{ question.question_text }}
>>
>> {% if error_message %}{{ error_message }}{% endif 
>> %}
>>
>> 
>> {% csrf_token %}
>> {% for choice in question.choice_set.all %}
>>   > value="{{ choice.id }}" />
>>   {{ choice.choice_text }}
>> 
>> {% endfor %}
>> 
>> 
>>
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@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/aab94309-a65f-49ec-bd4d-bb07bf5457a7%40googlegroups.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/305cf889-c4de-4462-bb94-ce74a4980346%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: while going through the django tutorial i commited a error and because of which i cannot execute the python manage.py runserver. The errors are attached below

2018-05-07 Thread Dylan Reinhold
Share your polls/url.py it's saying it cant find the url named "vote" in
your polls.

Dylan

On Mon, May 7, 2018 at 10:14 AM, Avitab Ayan Sarmah 
wrote:

> Detail.html:
>
> {{ question.question_text }}
>
> {% if error_message %}{{ error_message }}{% endif
> %}
>
> 
> {% csrf_token %}
> {% for choice in question.choice_set.all %}
>value="{{ choice.id }}" />
>   {{ choice.choice_text }}
> 
> {% endfor %}
> 
> 
>
> --
> 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/aab94309-a65f-49ec-bd4d-bb07bf5457a7%40googlegroups.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/CAHtg44A%2B_Gu5ib%2Bse-%2BjspX%2B%3DV6HW4U1O3uXgyZC9mDxDneSYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adding data via admin not visible on html template until restart server (python manage.py runserver)

2017-11-02 Thread avtar sandhu
In the end I created a new app  and model and it worked correctly 
I never solved the original issue






On Tuesday, 19 September 2017 15:42:59 UTC+2, avtar sandhu wrote:
>
> Please can anyone help me
>
>
> I have a Django Model
>
> class Event(models.Model): scheduled_event = 
> models.BooleanField(default=True) category = models.CharField("category ", 
> max_length = 30)
>
> registered in admin
>
> class PostEvent(admin.ModelAdmin): admin.site.register(Event, PostEvent)
>
> I can add delete etc ok in Admin
>
> However the data is not refreshed in my html template until i restart the 
> server
>
> python manage.py runserver
>
>
> How can i make the changes dynamic.  dont want to restart the server 
> anytime a user makes some content change 
>
>
> All help would be appreciated 
>

-- 
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/23422415-cc1d-4155-9e0e-a0c442f10790%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adding data via admin not visible on html template until restart server (python manage.py runserver)

2017-09-26 Thread cnn . marketing
Any update on this?

I have the similar issue - I login to my demo Django 
http://127.0.0.1:8000/admin/, and update a field name 'name' in 'demo'. The 
field 'name' is still showing the old data by using url (restful api) 
http://127.0.0.1:8000/demo. I have to use http://127.0.0.1:8000/admin/demo 
(notice the 'admin') in order to see the updated 'name'.



On Tuesday, September 19, 2017 at 9:42:59 AM UTC-4, avtar sandhu wrote:
>
> Please can anyone help me
>
>
> I have a Django Model
>
> class Event(models.Model): scheduled_event = 
> models.BooleanField(default=True) category = models.CharField("category ", 
> max_length = 30)
>
> registered in admin
>
> class PostEvent(admin.ModelAdmin): admin.site.register(Event, PostEvent)
>
> I can add delete etc ok in Admin
>
> However the data is not refreshed in my html template until i restart the 
> server
>
> python manage.py runserver
>
>
> How can i make the changes dynamic.  dont want to restart the server 
> anytime a user makes some content change 
>
>
> All help would be appreciated 
>

-- 
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/77e49697-ac2f-4552-9128-cde8ea603e54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adding data via admin not visible on html template until restart server (python manage.py runserver)

2017-09-19 Thread Manches spainspots
manage.py runserver should only need to be ran after making changes to your 
code. 

Make your data changes in admin on one tab.
load your html on another tab.
Make change B in admin.
On the second tab, hit refresh.

Make changes to your code.
manage.py runserver
Go to your admin tab of the browser, hit refresh
Go to your html tab, hit refresh

On Tuesday, September 19, 2017 at 6:42:59 AM UTC-7, avtar sandhu wrote:
>
> Please can anyone help me
>
>
> I have a Django Model
>
> class Event(models.Model): scheduled_event = 
> models.BooleanField(default=True) category = models.CharField("category ", 
> max_length = 30)
>
> registered in admin
>
> class PostEvent(admin.ModelAdmin): admin.site.register(Event, PostEvent)
>
> I can add delete etc ok in Admin
>
> However the data is not refreshed in my html template until i restart the 
> server
>
> python manage.py runserver
>
>
> How can i make the changes dynamic.  dont want to restart the server 
> anytime a user makes some content change 
>
>
> All help would be appreciated 
>

-- 
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/bbb81fdd-23f3-487c-9676-17eb407b19c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Adding data via admin not visible on html template until restart server (python manage.py runserver)

2017-09-19 Thread avtar sandhu


Please can anyone help me


I have a Django Model

class Event(models.Model): scheduled_event = 
models.BooleanField(default=True) category = models.CharField("category ", 
max_length = 30)

registered in admin

class PostEvent(admin.ModelAdmin): admin.site.register(Event, PostEvent)

I can add delete etc ok in Admin

However the data is not refreshed in my html template until i restart the 
server

python manage.py runserver


How can i make the changes dynamic.  dont want to restart the server 
anytime a user makes some content change 


All help would be appreciated 

-- 
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/d312ab2f-1152-48d1-a943-4075c4369a14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Totally Lost on "python manage.py runserver"

2017-04-18 Thread Scot Hacker
`pip install pysqlite2` ? 

./s

On Friday, April 14, 2017 at 5:07:06 AM UTC-7, Michael Durkin wrote:
>
> I am at a loss. My Google-Fu seems to be sub-par as I cannot find an 
> answer to what I'm looking for. 
>
> I am running Ubuntu, using Python 3.6.0 (pyenv handles different Python 
> versions for me), have installed SQLite and Apache and ran "pip install 
> django" to get Django on my machine. 
>
> I have run through the Django tutorial on installation (
> https://docs.djangoproject.com/en/1.11/topics/install/#installing-official-release)
>  
> and made it all the way to "python manage.py runserver". After running that 
> line I get the following message through the shell that I simply do not 
> understand:
>
> ~/Scripts/Django_Practice/mysite$ python manage.py runserver
> Unhandled exception in thread started by  check_errors..wrapper at 0x7f0e6c4ce730>
> Traceback (most recent call last):
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py",
>  
> line 31, in 
> from pysqlite2 import dbapi2 as Database
> ModuleNotFoundError: No module named 'pysqlite2'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py",
>  
> line 33, in 
> from sqlite3 import dbapi2 as Database
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/sqlite3/__init__.py", 
> line 23, in 
> from sqlite3.dbapi2 import *
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/sqlite3/dbapi2.py", line 
> 27, in 
> from _sqlite3 import *
> ModuleNotFoundError: No module named '_sqlite3'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 227, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  
> line 117, in inner_run
> autoreload.raise_last_exception()
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 250, in raise_last_exception
> six.reraise(*_exception)
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/six.py",
>  
> line 685, in reraise
> raise value.with_traceback(tb)
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/autoreload.py",
>  
> line 227, in wrapper
> fn(*args, **kwargs)
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/__init__.py",
>  
> line 27, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/apps/registry.py",
>  
> line 108, in populate
> app_config.import_models()
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/apps/config.py",
>  
> line 202, in import_models
> self.models_module = import_module(models_module_name)
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/importlib/__init__.py", 
> line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 978, in _gcd_import
>   File "", line 961, in _find_and_load
>   File "", line 950, in 
> _find_and_load_unlocked
>   File "", line 655, in _load_unlocked
>   File "", line 678, in exec_module
>   File "", line 205, in 
> _call_with_frames_removed
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/contrib/auth/models.py",
>  
> line 4, in 
> from django.contrib.auth.base_user import AbstractBaseUser, 
> BaseUserManager
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/contrib/auth/base_user.py",
>  
> line 52, in 
> class AbstractBaseUser(models.Model):
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/models/base.py",
>  
> line 124, in __new__
> new_class.add_to_class('_meta', Options(meta, app_label))
>   File 
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/models/base.py",
>  
> line 330, in add_to_clas

Re: Totally Lost on "python manage.py runserver"

2017-04-14 Thread ludovic coues
Have you tried "sudo apt-get install sqlite" ?
The package might be called sqlite3 or sqlite-dev or something like that

2017-04-14 6:16 GMT+02:00 Michael Durkin <durkin...@gmail.com>:
> I am at a loss. My Google-Fu seems to be sub-par as I cannot find an answer
> to what I'm looking for.
>
> I am running Ubuntu, using Python 3.6.0 (pyenv handles different Python
> versions for me), have installed SQLite and Apache and ran "pip install
> django" to get Django on my machine.
>
> I have run through the Django tutorial on installation
> (https://docs.djangoproject.com/en/1.11/topics/install/#installing-official-release)
> and made it all the way to "python manage.py runserver". After running that
> line I get the following message through the shell that I simply do not
> understand:
>
> ~/Scripts/Django_Practice/mysite$ python manage.py runserver
> Unhandled exception in thread started by  check_errors..wrapper at 0x7f0e6c4ce730>
> Traceback (most recent call last):
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py",
> line 31, in 
> from pysqlite2 import dbapi2 as Database
> ModuleNotFoundError: No module named 'pysqlite2'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py",
> line 33, in 
> from sqlite3 import dbapi2 as Database
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/sqlite3/__init__.py", line
> 23, in 
> from sqlite3.dbapi2 import *
>   File "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/sqlite3/dbapi2.py",
> line 27, in 
> from _sqlite3 import *
> ModuleNotFoundError: No module named '_sqlite3'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/autoreload.py",
> line 227, in wrapper
> fn(*args, **kwargs)
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
> line 117, in inner_run
> autoreload.raise_last_exception()
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/autoreload.py",
> line 250, in raise_last_exception
> six.reraise(*_exception)
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/six.py",
> line 685, in reraise
> raise value.with_traceback(tb)
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/autoreload.py",
> line 227, in wrapper
> fn(*args, **kwargs)
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/__init__.py",
> line 27, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/apps/registry.py",
> line 108, in populate
> app_config.import_models()
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/apps/config.py",
> line 202, in import_models
> self.models_module = import_module(models_module_name)
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/importlib/__init__.py",
> line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 978, in _gcd_import
>   File "", line 961, in _find_and_load
>   File "", line 950, in _find_and_load_unlocked
>   File "", line 655, in _load_unlocked
>   File "", line 678, in exec_module
>   File "", line 205, in
> _call_with_frames_removed
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/contrib/auth/models.py",
> line 4, in 
> from django.contrib.auth.base_user import AbstractBaseUser,
> BaseUserManager
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/contrib/auth/base_user.py",
> line 52, in 
> class AbstractBaseUser(models.Model):
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/models/base.py",
> line 124, in __new__
> new_class.add_to_class('_meta', Options(meta, app_label))
>   File
> "/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/models/base.py",
> line 330, in add_to_class
> value.contribute_to_class(cls, name)
>   File

Totally Lost on "python manage.py runserver"

2017-04-14 Thread Michael Durkin
I am at a loss. My Google-Fu seems to be sub-par as I cannot find an answer 
to what I'm looking for. 

I am running Ubuntu, using Python 3.6.0 (pyenv handles different Python 
versions for me), have installed SQLite and Apache and ran "pip install 
django" to get Django on my machine. 

I have run through the Django tutorial on installation 
(https://docs.djangoproject.com/en/1.11/topics/install/#installing-official-release)
 
and made it all the way to "python manage.py runserver". After running that 
line I get the following message through the shell that I simply do not 
understand:

~/Scripts/Django_Practice/mysite$ python manage.py runserver
Unhandled exception in thread started by .wrapper at 0x7f0e6c4ce730>
Traceback (most recent call last):
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py",
 
line 31, in 
from pysqlite2 import dbapi2 as Database
ModuleNotFoundError: No module named 'pysqlite2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py",
 
line 33, in 
from sqlite3 import dbapi2 as Database
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/sqlite3/__init__.py", 
line 23, in 
from sqlite3.dbapi2 import *
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/sqlite3/dbapi2.py", line 
27, in 
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/autoreload.py",
 
line 227, in wrapper
fn(*args, **kwargs)
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 
line 117, in inner_run
autoreload.raise_last_exception()
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/autoreload.py",
 
line 250, in raise_last_exception
six.reraise(*_exception)
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/six.py",
 
line 685, in reraise
raise value.with_traceback(tb)
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/utils/autoreload.py",
 
line 227, in wrapper
fn(*args, **kwargs)
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/__init__.py",
 
line 27, in setup
apps.populate(settings.INSTALLED_APPS)
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/apps/registry.py",
 
line 108, in populate
app_config.import_models()
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/apps/config.py",
 
line 202, in import_models
self.models_module = import_module(models_module_name)
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/importlib/__init__.py", 
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 978, in _gcd_import
  File "", line 961, in _find_and_load
  File "", line 950, in _find_and_load_unlocked
  File "", line 655, in _load_unlocked
  File "", line 678, in exec_module
  File "", line 205, in 
_call_with_frames_removed
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/contrib/auth/models.py",
 
line 4, in 
from django.contrib.auth.base_user import AbstractBaseUser, 
BaseUserManager
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/contrib/auth/base_user.py",
 
line 52, in 
class AbstractBaseUser(models.Model):
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/models/base.py",
 
line 124, in __new__
new_class.add_to_class('_meta', Options(meta, app_label))
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/models/base.py",
 
line 330, in add_to_class
value.contribute_to_class(cls, name)
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/models/options.py",
 
line 214, in contribute_to_class
self.db_table = truncate_name(self.db_table, 
connection.ops.max_name_length())
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/__init__.py",
 
line 33, in __getattr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/django/db/utils.py",
 
line 211, in __getitem__
backend = load_backend(db['ENGINE'])
  File 
"/home/durkin/.pyenv/versions/3.6.0/lib/python3.6/site-packages/

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 <gary719_li...@verizon.net>
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto: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 
<https://groups.google.com/d/msgid/django-users/CAF7bBPAP5cqVpqt824ub4kh76podidLKRZnxFrVKtHQzr4D%2BCw%40mail.gmail.com?utm_medium=email_source=footer>.

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 ImportError

2014-12-15 Thread Collin Anderson
Hi,

What version of django and python are you using?

Is your project set up like this?

myapp/
myapp/manage.py
myapp/myapp/__init__.py
myapp/myapp/settings.py
myapp/myapp/urls.py
myapp/myapp/wsgi.py?

Collin

On Sunday, December 14, 2014 4:24:12 AM UTC-5, Saki Fu wrote:
>
> I run python manage.py runserver and got following error.
>
> ImportError: Could not import settings 'myapp.settings' (Is it on 
> sys.path? Is there an import error in the settings file?): No module named 
> myapp.settings
>
> What's wrong with it and how can I solve this problem?
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c45ed9a7-1547-490f-9769-8721c20b5744%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: python manage.py runserver ImportError

2014-12-14 Thread Mohammad Shariq
try running:
python manage.py runserver --settings=

On 14 December 2014 at 14:56, Saki Fu <saki.f...@gmail.com> wrote:

> I run python manage.py runserver and got the following error.
>
> ImportError: Could not import settings 'myapp.settings' (Is it on
> sys.path? Is there an import error in the settings file?): No module named
> myapp.settings
>
> What's wrong with it and how can I solve the problem?
>
>
>  --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7d1d87f3-e5c7-4969-a2ab-04df4f7ad5ff%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7d1d87f3-e5c7-4969-a2ab-04df4f7ad5ff%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEeLb7NES0BbYRWyH6KLe2gc08GDvK0-UNugnSF8Ffbhf1jMKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


python manage.py runserver ImportError

2014-12-14 Thread Saki Fu
I run python manage.py runserver and got the following error.

ImportError: Could not import settings 'myapp.settings' (Is it on sys.path? 
Is there an import error in the settings file?): No module named 
myapp.settings

What's wrong with it and how can I solve the problem?


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7d1d87f3-e5c7-4969-a2ab-04df4f7ad5ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


python manage.py runserver ImportError

2014-12-14 Thread Saki Fu
I run python manage.py runserver and got following error.

ImportError: Could not import settings 'myapp.settings' (Is it on sys.path? 
Is there an import error in the settings file?): No module named 
myapp.settings

What's wrong with it and how can I solve this problem?


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d1e7c5f6-a97c-4dac-8d81-ad476cfc47c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: wsgi does not work as intended even it works fine when python manage.py runserver 0.0.0.0:8000

2014-03-27 Thread Liam Thompson
Are you seeing any error messages ?

On Saturday, 22 March 2014 11:07:32 UTC+2, Jun Tanaka wrote:
>
> Hello,
>
> wsgi does not work as usually even it works fine when python manage.py 
> runserver 0.0.0.0:8000 
> I use django version 1.3
>
> I have two issues here.
> 1. how to add projectname inside of the url
> 2.static is not connected right
>
>
> 153.xx.x.x.x:8000/simple_project
> this works.
>
> But not when
> 153.xx.x.x.x/projectname/simple_project
> The layout is not shown correctly because static file is not read. 
>
>
> django.wsgi as follows
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> import os, sys
> sys.path.append('/var/www/django')
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'projectname.settings'
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> static in settings.py
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> STATICFILES_DIRS = (
> # Put strings here, like "/home/html/static" or "C:/www/django/static".
> # Always use forward slashes, even on Windows.
> # Don't forget to use absolute paths, not relative paths.
> "/var/www/django/projectname/static",
> )
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> urls.py
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> urlpatterns = patterns('',
> (r'^simple_project/add/(?P\w*)$', 
> 'simple_project.views.index'),
> )
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
>
> Anyone who know a solution please giver me an advise. 
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0f4530c8-f4f1-46d8-9bdb-028309209707%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


wsgi does not work as intended even it works fine when python manage.py runserver 0.0.0.0:8000

2014-03-22 Thread Jun Tanaka
Hello,

wsgi does not work as usually even it works fine when python manage.py 
runserver 0.0.0.0:8000 
I use django version 1.3

I have two issues here.
1. how to add projectname inside of the url
2.static is not connected right


153.xx.x.x.x:8000/simple_project
this works.

But not when
153.xx.x.x.x/projectname/simple_project
The layout is not shown correctly because static file is not read. 


django.wsgi as follows
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
import os, sys
sys.path.append('/var/www/django')

os.environ['DJANGO_SETTINGS_MODULE'] = 'projectname.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

static in settings.py
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
"/var/www/django/projectname/static",
)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

urls.py
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
urlpatterns = patterns('',
(r'^simple_project/add/(?P\w*)$', 'simple_project.views.index'),
)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Anyone who know a solution please giver me an advise. 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0542beb5-dfeb-47f8-abba-f1b5aa8e9262%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What to do after python manage.py runserver

2014-03-04 Thread Bill Freeman
Or you can share the one terminal by stopping the server to run other
commands, then do runserver again to test them.

The startup message should have told you how to stop (exit, kill) the
server.  On linux it's control-C.  That may work elsewhere too.  (Just for
completeness, in an emacx shell window, it's two control-Cs in a row.)


On Tue, Mar 4, 2014 at 6:22 PM, Thomas Murphy
<thomasmurphyco...@gmail.com>wrote:

> Hi Matthew,
>
> You'll want to leave the window you typed runserver in open so your app
> can print information about it's activities to that window. Open another
> terminal window and proceed from there.
>
> Happy Hacking!
>
> Thomas
>
>
> On Tue, Mar 4, 2014 at 4:50 PM, Matthew Epps <mepp...@gmail.com> wrote:
>
>> Hey all,
>>
>> I apologize for the extremely basic question. I am new to django and
>> python. But after I enter the "python manage.py runserver" command, my
>> terminal prints out the message that the tutorial says I should expect.
>> However, I have a difficult time entering the other commands on the
>> tutorial. Should I quit the server? Or do I have to type something in to
>> access a point where I could enter more commands?
>>
>> Thank you,
>>
>> Matt
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/7e58b992-825a-4a32-8830-655853c7f2ca%40googlegroups.com<https://groups.google.com/d/msgid/django-users/7e58b992-825a-4a32-8830-655853c7f2ca%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALgvumV_uJy1nCc%2BdHBPR_Jr0Y%2BNAdZXzz%2BYbWNOEcjL_pL8ag%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CALgvumV_uJy1nCc%2BdHBPR_Jr0Y%2BNAdZXzz%2BYbWNOEcjL_pL8ag%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB%2BAj0t1oV%3D1j%2BsEfh90BBP1k%3DRt1Q5ah6B5Bn1vZz3w5Ou%3DYA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: What to do after python manage.py runserver

2014-03-04 Thread Thomas Murphy
Hi Matthew,

You'll want to leave the window you typed runserver in open so your app can
print information about it's activities to that window. Open another
terminal window and proceed from there.

Happy Hacking!

Thomas


On Tue, Mar 4, 2014 at 4:50 PM, Matthew Epps <mepp...@gmail.com> wrote:

> Hey all,
>
> I apologize for the extremely basic question. I am new to django and
> python. But after I enter the "python manage.py runserver" command, my
> terminal prints out the message that the tutorial says I should expect.
> However, I have a difficult time entering the other commands on the
> tutorial. Should I quit the server? Or do I have to type something in to
> access a point where I could enter more commands?
>
> Thank you,
>
> Matt
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7e58b992-825a-4a32-8830-655853c7f2ca%40googlegroups.com<https://groups.google.com/d/msgid/django-users/7e58b992-825a-4a32-8830-655853c7f2ca%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALgvumV_uJy1nCc%2BdHBPR_Jr0Y%2BNAdZXzz%2BYbWNOEcjL_pL8ag%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


What to do after python manage.py runserver

2014-03-04 Thread Matthew Epps
Hey all,

I apologize for the extremely basic question. I am new to django and 
python. But after I enter the "python manage.py runserver" command, my 
terminal prints out the message that the tutorial says I should expect. 
However, I have a difficult time entering the other commands on the 
tutorial. Should I quit the server? Or do I have to type something in to 
access a point where I could enter more commands?

Thank you,

Matt

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7e58b992-825a-4a32-8830-655853c7f2ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


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: Unable to get python manage.py runserver to work

2013-07-12 Thread Nigel Legg
You need to create a project before you do anything. The docs and tutorials
show you how to so it .
On 12 Jul 2013 18:51, "Yves S. Garret"  wrote:

> On Friday, July 12, 2013 1:48:13 PM UTC-4, Yves S. Garret wrote:
>>
>>
>> On Friday, July 12, 2013 5:18:58 AM UTC-4, Tom Evans wrote:
>>>
>>> On Fri, Jul 12, 2013 at 4:01 AM, Yves S. Garret
>>>  wrote:
>>> > I was able to import django from inside of python 2.6.6 (which is what
>>> I'm
>>> > going with
>>> > at the moment).  However, when I try to display something in a
>>> browser, this
>>> > is the
>>> > problem that I'm getting:
>>> >
>>> > $ python /path/to/file/manage.py runserver
>>> > Traceback (most recent call last):
>>> >   File
>>> > "/home/azureuser/Downloads/**django/Django-1.5.1/django/**
>>> conf/project_template/manage.**py",
>>>
>>> You *MUST* install django before trying to use it.
>>> You will need to create a real project using django-admin.py, instead
>>> of trying to run manage.py from the application template stubs.
>>>
>>> Please take a look at the tutorial intro, which describes how to install
>>> django
>>>
>>> https://docs.djangoproject.**com/en/1.5/intro/install/
>>>
>>> Next, look at the tutorial itself, which describes how to start your
>>> first project.
>>>
>>> https://docs.djangoproject.**com/en/1.5/intro/tutorial01/
>>>
>>> These steps are not optional.
>>>
>>> Cheers
>>>
>>> Tom
>>>
>>
>> I have it down to this level, where I can import django from inside of
>> python:
>> $ python
>> Python 2.6.6 (r266:84292, Sep 11 2012, 08:34:23)
>> [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import django
>> >>> print(django.get_version())
>> 1.5.1
>>
>
> Ultimately, this is what I'd like to have running on my machine.
>
>
> http://django-dynamic-scraper.readthedocs.org/en/latest/getting_started.html#installation
>
> --
> 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.
>
>
>

-- 
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: Unable to get python manage.py runserver to work

2013-07-12 Thread Yves S. Garret
On Friday, July 12, 2013 1:48:13 PM UTC-4, Yves S. Garret wrote:
>
>
> On Friday, July 12, 2013 5:18:58 AM UTC-4, Tom Evans wrote:
>>
>> On Fri, Jul 12, 2013 at 4:01 AM, Yves S. Garret 
>>  wrote: 
>> > I was able to import django from inside of python 2.6.6 (which is what 
>> I'm 
>> > going with 
>> > at the moment).  However, when I try to display something in a browser, 
>> this 
>> > is the 
>> > problem that I'm getting: 
>> > 
>> > $ python /path/to/file/manage.py runserver 
>> > Traceback (most recent call last): 
>> >   File 
>> > 
>> "/home/azureuser/Downloads/django/Django-1.5.1/django/conf/project_template/manage.py",
>>  
>>
>>
>> You *MUST* install django before trying to use it. 
>> You will need to create a real project using django-admin.py, instead 
>> of trying to run manage.py from the application template stubs. 
>>
>> Please take a look at the tutorial intro, which describes how to install 
>> django 
>>
>> https://docs.djangoproject.com/en/1.5/intro/install/ 
>>
>> Next, look at the tutorial itself, which describes how to start your 
>> first project. 
>>
>> https://docs.djangoproject.com/en/1.5/intro/tutorial01/ 
>>
>> These steps are not optional. 
>>
>> Cheers 
>>
>> Tom 
>>
>
> I have it down to this level, where I can import django from inside of 
> python:
> $ python
> Python 2.6.6 (r266:84292, Sep 11 2012, 08:34:23) 
> [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import django
> >>> print(django.get_version())
> 1.5.1 
>

Ultimately, this is what I'd like to have running on my machine.

http://django-dynamic-scraper.readthedocs.org/en/latest/getting_started.html#installation
 

-- 
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: Unable to get python manage.py runserver to work

2013-07-12 Thread Yves S. Garret

On Friday, July 12, 2013 5:18:58 AM UTC-4, Tom Evans wrote:
>
> On Fri, Jul 12, 2013 at 4:01 AM, Yves S. Garret 
>  wrote: 
> > I was able to import django from inside of python 2.6.6 (which is what 
> I'm 
> > going with 
> > at the moment).  However, when I try to display something in a browser, 
> this 
> > is the 
> > problem that I'm getting: 
> > 
> > $ python /path/to/file/manage.py runserver 
> > Traceback (most recent call last): 
> >   File 
> > 
> "/home/azureuser/Downloads/django/Django-1.5.1/django/conf/project_template/manage.py",
>  
>
>
> You *MUST* install django before trying to use it. 
> You will need to create a real project using django-admin.py, instead 
> of trying to run manage.py from the application template stubs. 
>
> Please take a look at the tutorial intro, which describes how to install 
> django 
>
> https://docs.djangoproject.com/en/1.5/intro/install/ 
>
> Next, look at the tutorial itself, which describes how to start your 
> first project. 
>
> https://docs.djangoproject.com/en/1.5/intro/tutorial01/ 
>
> These steps are not optional. 
>
> Cheers 
>
> Tom 
>

I have it down to this level, where I can import django from inside of 
python:
$ python
Python 2.6.6 (r266:84292, Sep 11 2012, 08:34:23) 
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print(django.get_version())
1.5.1 

-- 
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: Unable to get python manage.py runserver to work

2013-07-12 Thread Tom Evans
On Fri, Jul 12, 2013 at 4:01 AM, Yves S. Garret
 wrote:
> I was able to import django from inside of python 2.6.6 (which is what I'm
> going with
> at the moment).  However, when I try to display something in a browser, this
> is the
> problem that I'm getting:
>
> $ python /path/to/file/manage.py runserver
> Traceback (most recent call last):
>   File
> "/home/azureuser/Downloads/django/Django-1.5.1/django/conf/project_template/manage.py",

You *MUST* install django before trying to use it.
You will need to create a real project using django-admin.py, instead
of trying to run manage.py from the application template stubs.

Please take a look at the tutorial intro, which describes how to install django

https://docs.djangoproject.com/en/1.5/intro/install/

Next, look at the tutorial itself, which describes how to start your
first project.

https://docs.djangoproject.com/en/1.5/intro/tutorial01/

These steps are not optional.

Cheers

Tom

-- 
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: Unable to get python manage.py runserver to work

2013-07-11 Thread Mike Dewhirst

On 12/07/2013 1:01pm, Yves S. Garret wrote:

I was able to import django from inside of python 2.6.6 (which is what
I'm going with
at the moment).  However, when I try to display something in a browser,
this is the
problem that I'm getting:

$ python /path/to/file/manage.py runserver
Traceback (most recent call last):
   File
"/home/azureuser/Downloads/django/Django-1.5.1/django/conf/project_template/manage.py",


The problem reported in the traceback indicates the path to your app 
isn't in sys.path


Try cd'ing into the directory containing manage.py [1] so the path 
automatically gets put into sys.pth then ...


$ python manage.py runserver

That should get the dev server running and you browser should display 
something useful at http://localhost:8000/


[1] https://docs.djangoproject.com/en/1.5/intro/tutorial01/


line 10, in 
 execute_from_command_line(sys.argv)
   File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py",
line 453, in execute_from_command_line
 utility.execute()
   File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py",
line 392, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py",
line 263, in fetch_command
 app_name = get_commands()[subcommand]
   File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py",
line 109, in get_commands
 apps = settings.INSTALLED_APPS
   File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line
53, in __getattr__
 self._setup(name)
   File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line
48, in _setup
 self._wrapped = Settings(settings_module)
   File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line
134, in __init__
 raise ImportError("Could not import settings '%s' (Is it on
sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings '{{ project_name }}.settings' (Is
it on sys.path?): No module named {{ project_name }}.settings

What am I screwing up?

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




--
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: Unable to get python manage.py runserver to work

2013-07-11 Thread Kamal Kaur
On Fri, Jul 12, 2013 at 8:31 AM, Yves S. Garret
 wrote:
> What am I screwing up?

Try using quote:
[...] project_name.settings [...]

instead of
[...] {{ project_name }}.settings [...]



--
Kamaljeet Kaur

Blog:http://kamalkaur188.wordpress.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 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: Unable to get python manage.py runserver to work

2013-07-11 Thread Yves S. Garret
Note, I'm trying to avoid using a database.  I'm, ultimately, planning on 
getting
Django Dynamic Scraper to work and figured that this is a good first step.

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




Unable to get python manage.py runserver to work

2013-07-11 Thread Yves S. Garret
I was able to import django from inside of python 2.6.6 (which is what I'm
going with
at the moment).  However, when I try to display something in a browser,
this is the
problem that I'm getting:

$ python /path/to/file/manage.py runserver
Traceback (most recent call last):
  File
"/home/azureuser/Downloads/django/Django-1.5.1/django/conf/project_template/manage.py",
line 10, in 
execute_from_command_line(sys.argv)
  File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line
453, in execute_from_command_line
utility.execute()
  File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line
392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line
263, in fetch_command
app_name = get_commands()[subcommand]
  File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line
109, in get_commands
apps = settings.INSTALLED_APPS
  File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 53,
in __getattr__
self._setup(name)
  File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 48,
in _setup
self._wrapped = Settings(settings_module)
  File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line
134, in __init__
raise ImportError("Could not import settings '%s' (Is it on sys.path?):
%s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings '{{ project_name }}.settings' (Is it
on sys.path?): No module named {{ project_name }}.settings

What am I screwing up?

-- 
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: Poll tutorial: running the command 'python manage.py runserver' produces an error

2013-05-25 Thread Tim Chase
On 2013-05-25 12:40, Kokas wrote:
> Hello
> 
> When I run the initially created project using the command 'python 
> manage.py runserver' gives me 
> Error: [Errno 10013]

A from-the-hip guess is that you're running on a machine (such as
Linux/BSD/Mac) where ports <1024 are considered privileged, and can
only be opened by "root" rather than by your user.

> When I run this command though 'python manage.py runserver 8001',
> then I can see the site on http://localhost:8001
> 
> Can you tell me why this happens and what are those 4 digit numbers
> after localhost?

This tells "runserver" to listen on port "8001" (instead of the
default 80 which is privileged, being <1024).  So you then need to
point your browser to localhost, and use the specified port.

-tkc

PS:  I might have a fence-posting error here, as I don't remember
whether 1024 is priv'ed or not, meaning that my comments might need
to be "<=1024" rather than "<1024".

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Poll tutorial: running the command 'python manage.py runserver' produces an error

2013-05-25 Thread Rishi Mukherjee
The 'python manage.py runserver' by default runs the server on port 8000.
But, your 8000 port must be getting used by some other application. Thus,
8001 works, which was free. The four digits are ports and the localhost is
your IP address which is equal to 127.0.0.1. You may try this link to get
the same result http://127.0.0.1:8001



Thanks,
Rishi


On 26 May 2013 01:16, Branko Majic <bra...@majic.rs> wrote:

> On Sat, 25 May 2013 12:40:08 -0700 (PDT)
> Kokas <79papa...@gmail.com> wrote:
>
> > Hello
> >
> > When I run the initially created project using the command 'python
> > manage.py runserver' gives me
> > Error: [Errno 10013]
> >
> > When I run this command though 'python manage.py runserver 8001', then I
> > can see the site on http://localhost:8001
> >
> > Can you tell me why this happens and what are those 4 digit numbers after
> > localhost?
> >
>
> The default port that is used by runserver (8000) is already in use by
> some other application (or you may have started the Django development
> already in another terminal).
>
> The parameter your provided (8001) is used to specify an alternate port
> on which the development server should listen. You can learn some more
> from:
>
>
> https://docs.djangoproject.com/en/1.5/ref/django-admin/#runserver-port-or-address-port
>
> Best regards
>
> --
> Branko Majic
> Jabber: bra...@majic.rs
> Please use only Free formats when sending attachments to me.
>
> Бранко Мајић
> Џабер: bra...@majic.rs
> Молим вас да додатке шаљете искључиво у слободним форматима.
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Poll tutorial: running the command 'python manage.py runserver' produces an error

2013-05-25 Thread Branko Majic
On Sat, 25 May 2013 12:40:08 -0700 (PDT)
Kokas <79papa...@gmail.com> wrote:

> Hello
> 
> When I run the initially created project using the command 'python 
> manage.py runserver' gives me 
> Error: [Errno 10013]
> 
> When I run this command though 'python manage.py runserver 8001', then I 
> can see the site on http://localhost:8001
> 
> Can you tell me why this happens and what are those 4 digit numbers after 
> localhost?
> 

The default port that is used by runserver (8000) is already in use by
some other application (or you may have started the Django development
already in another terminal).

The parameter your provided (8001) is used to specify an alternate port
on which the development server should listen. You can learn some more
from:

https://docs.djangoproject.com/en/1.5/ref/django-admin/#runserver-port-or-address-port

Best regards

-- 
Branko Majic
Jabber: bra...@majic.rs
Please use only Free formats when sending attachments to me.

Бранко Мајић
Џабер: bra...@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.


signature.asc
Description: PGP signature


Poll tutorial: running the command 'python manage.py runserver' produces an error

2013-05-25 Thread Kokas
Hello

When I run the initially created project using the command 'python 
manage.py runserver' gives me 
Error: [Errno 10013]

When I run this command though 'python manage.py runserver 8001', then I 
can see the site on http://localhost:8001

Can you tell me why this happens and what are those 4 digit numbers after 
localhost?

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: "python manage.py runserver" creates not tables (tutorial)

2011-11-03 Thread Andre Terra
$ python manage.py dbshell

If you can't reach a database shell through that, then there's something
wrong with your database setup.


Cheers,
AT

On Wed, Nov 2, 2011 at 10:55 AM, Martin Chiteri wrote:

> What about if you do a
>
> python manage.py sqlall
>
> From the settings file, I do not see any of your apps added in the
> list of installed apps, like
>
> INSTALLED_APPS = (
>   'django.contrib.auth',
>'mysite.news',
> .,
> )
>
> Martin.
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: "python manage.py runserver" creates not tables (tutorial)

2011-11-02 Thread Martin Chiteri
What about if you do a

python manage.py sqlall

>From the settings file, I do not see any of your apps added in the
list of installed apps, like

INSTALLED_APPS = (
   'django.contrib.auth',
   'mysite.news',
.,
)

Martin.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: "python manage.py runserver" creates not tables (tutorial)

2011-11-02 Thread angelika
Thanks, Kenneth.

I'm new to both Python and Django. I'm doing the tutorial and I named
the site mysite, to keep it simple. Does that mean mysite is the name
of the app? And the command should be:

from mysite import *

I did that, but nothing happened. Same as with 'python manage.py
runserver'. No messages, no errors, nothing.

/Angelika

On Nov 2, 11:43 am, kenneth gonsalves <law...@thenilgiris.com> wrote:
> On Wed, 2011-11-02 at 02:47 -0700, angelika wrote:
> > Christ, I totally messed up this post. I did not mean "python
> > manage.py runserver" but "python manage.py syncdb". That is the
> > command that does not create any tables. Sorry.
>
> https://code.djangoproject.com/ticket/11494- it may be due to this. To
> check it out go to the shell and try:
>
> from yourapp import * - if it fails, fix the import error and try syncdb
> again.
>
> --
> regards
> Kenneth Gonsalves

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: "python manage.py runserver" creates not tables (tutorial)

2011-11-02 Thread kenneth gonsalves
On Wed, 2011-11-02 at 02:47 -0700, angelika wrote:
> Christ, I totally messed up this post. I did not mean "python
> manage.py runserver" but "python manage.py syncdb". That is the
> command that does not create any tables. Sorry.
> 
> 
https://code.djangoproject.com/ticket/11494 - it may be due to this. To
check it out go to the shell and try:

from yourapp import * - if it fails, fix the import error and try syncdb
again.

-- 
regards
Kenneth Gonsalves

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: "python manage.py runserver" creates not tables (tutorial)

2011-11-02 Thread angelika
Christ, I totally messed up this post. I did not mean "python
manage.py runserver" but "python manage.py syncdb". That is the
command that does not create any tables. Sorry.

On Nov 2, 10:44 am, nisa balakrishnan <snisa.balakrish...@gmail.com>
wrote:
> did  u do a syncdb ?
> On 02-Nov-2011, at 3:12 PM, angelika wrote:
>
>
>
>
>
>
>
> > I've started the Django tutorial and I get as far as running python
> > manage.py runserver, but when I do, nothing happens. I get no messages
> > and the database connected to the project is still empty. The database
> > exists and I've made no modifications to any of the files created,
> > accept for the info to connect to the database. My settings.py has
> > this snippet in it:
>
> > INSTALLED_APPS = (
> >    'django.contrib.auth',
> >    'django.contrib.contenttypes',
> >    'django.contrib.sessions',
> >    'django.contrib.sites',
> >    'django.contrib.messages',
> >    'django.contrib.staticfiles',
> >    # Uncomment the next line to enable the admin:
> >    # 'django.contrib.admin',
> >    # Uncomment the next line to enable admin documentation:
> >    # 'django.contrib.admindocs',
> > )
>
> > If django is not able to find or connect to the database, I would
> > expect there to be at least an error message, right? Is there a
> > command I can run make sure? Any other ideas?
>
> > /Angelika
>
> > --
> > 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 
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



  1   2   >