Re: Erro em uma consulta Sqlite3

2022-08-04 Thread Alvaro Teixeira Silva
Bom dia meu amigo muito obrigado pela ajuda, foi um erro muito óbvio mas é isso mesmo, valeu pela ajuda! comunidade foda! Em qui., 4 de ago. de 2022 às 07:34, Joel Goldstick < joel.goldst...@gmail.com> escreveu: > On Thu, Aug 4, 2022 at 6:21 AM Luciano Martins wrote: > > > > É annotate > >

Re: Erro em uma consulta Sqlite3

2022-08-04 Thread Joel Goldstick
On Thu, Aug 4, 2022 at 6:21 AM Luciano Martins wrote: > > É annotate > Publisher.objects.annotate(below_5=below_5).annotate(above_5=above_5) > Em quarta-feira, 3 de agosto de 2022 às 19:31:18 UTC-3, > alvaroteixe...@gmail.com escreveu: >> >> Bom dia amigos, estou desenvolvendo um blog e me

Re: Erro em uma consulta Sqlite3

2022-08-04 Thread Luciano Martins
É *annotate* Publisher.objects.annotate(below_5=below_5).annotate(above_5=above_5) Em quarta-feira, 3 de agosto de 2022 às 19:31:18 UTC-3, alvaroteixe...@gmail.com escreveu: > Bom dia amigos, estou desenvolvendo um blog e me deparei com um erro em > uma consulta, vou mandar o trecho do codigo

Erro em uma consulta Sqlite3

2022-08-03 Thread Alvaro Teixeira Silva
Bom dia amigos, estou desenvolvendo um blog e me deparei com um erro em uma consulta, vou mandar o trecho do codigo onde esta o erro: def get_queryset(self): qs = super().get_queryset() qs = qs.order_by('-id') qs = qs.annotade( numero_comentarios=Count(

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

2021-07-08 Thread Joseph Borge
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"

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

2021-01-20 Thread panfei
/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 informatio

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

2021-01-20 Thread panfei
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

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

2021-01-20 Thread 'Amitesh Sahay' via Django users
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 informatio

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

2021-01-20 Thread 'Amitesh Sahay' via Django users
;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 &qu

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

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

2021-01-20 Thread panfei
rint]$ 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:') &g

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

2021-01-20 Thread 'Amitesh Sahay' via Django users
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 = s

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

2021-01-20 Thread panfei
quot;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

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_LIBR

Re: Reg:Electron and sqlite3 packaging issue

2020-10-11 Thread Dvs Khamele
wrote: > Dear Friends, > I am working on electron js and sqlite3. As my app is working fine in > development mode but it is giving issue after packaging and running my > exe.you can find issue in my attachment.If any one have any clue please let > me know. > I will

Re: Django shared-cache for in-memory SQLite3 is not working

2020-09-25 Thread Krishna Chaitanya
the > main thread. I am using py3.6 and sqlite3 version is also met. > > $ python3 -c "from sqlite3 import dbapi2 as Database; print > (Database.__name__, Database.sqlite_version__info)" > > sqlite3.dbapi2 (3, 22, 0) > > Am I missing something? Any help is apprecia

Re: Sqlite3 error

2020-04-29 Thread Kasper Laudrup
Hi Chucks, On 28/04/2020 19.17, chucks ogwo wrote: I also tried to use pip to install sqlite3, it does not work too, I get a different error. (venv) C:\Users\Dell\PycharmProjects\interact_with_database>pip install sqlite3 Collecting sqlite3   Could not find a version that satisf

Re: Sqlite3 error

2020-04-28 Thread LGBS fine soul coders
Well try to download sqlite from google then install to your mashine manually dont use pip On Tue, 28 Apr 2020, 20:17 chucks ogwo, wrote: > Hi, Everyone, I have been trying to interact with the sqlite3 database on > Pycharm, every time I run the code it gives me an import error. > >

Sqlite3 error

2020-04-28 Thread chucks ogwo
Hi, Everyone, I have been trying to interact with the sqlite3 database on Pycharm, every time I run the code it gives me an import error. Traceback (most recent call last): File ".\file.py", line 1, in import sqlite3 File "C:\Users\Dell\anaconda3\lib\sqlite3\__init

Re: I have issue. I want to migrate database from sqlite3 to postgresql. With a table have 10M records. I need a solution for issue. Maybe help me?

2020-03-26 Thread Farai M
Export to csv in SQL then import into postgresql from there On Wed, Mar 25, 2020, 6:43 PM Thắng IT wrote: > solution > > -- > 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,

Re: I have issue. I want to migrate database from sqlite3 to postgresql. With a table have 10M records. I need a solution for issue. Maybe help me?

2020-03-26 Thread Daniel Chimeno
One possible solution: $ createdb newdb $ pgloader ./test/sqlite/sqlite.db postgresql:///newdb https://github.com/dimitri/pgloader El miércoles, 25 de marzo de 2020, 17:45:54 (UTC+1), Thắng IT escribió: > > solution -- You received this message because you are subscribed to the Google

Re: I have issue. I want to migrate database from sqlite3 to postgresql. With a table have 10M records. I need a solution for issue. Maybe help me?

2020-03-25 Thread Motaz Hejaze
cant be done directly from sqlite to postgres as there are differences between them ... safer to generate an intermediate file like a CSV or Excel file from the sqlite database .. create the new postgres database with proper column types .. make a python script to loop through each row in CSV or

I have issue. I want to migrate database from sqlite3 to postgresql. With a table have 10M records. I need a solution for issue. Maybe help me?

2020-03-25 Thread Thắng IT
solution -- 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

Recorrer una tabla sqlite3 en una view Django

2019-10-18 Thread Gabriel Araya Garcia
¿Como puedo recorrer registro a registro una tabla e ir insertando dicha informacion en otra tabla segun criterio de lo que tenga en un campo de la primera tabla? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Can anyone share code for uploading csv or excel file to sqlite3 database.

2018-09-28 Thread PASCUAL Eric
Subject: Re: Can anyone share code for uploading csv or excel file to sqlite3 database. I have tried this but not working def upload_csv(request): data = {} if "GET" == request.method: return render(request, "add_student/bulk.html", data) # if not GET,

Re: Can anyone share code for uploading csv or excel file to sqlite3 database.

2018-09-28 Thread Andréas Kühne
; You'll find there all the needed information for reading and interpreting >> CSV files without having to implement the raw parsing, and have there rows >> in a form ready to use for inserting objects in your model. >> >> >> For performance's sake, it is advi

Re: Can anyone share code for uploading csv or excel file to sqlite3 database.

2018-09-28 Thread Derek
There's blog article on Excel import here: https://www.pythoncircle.com/post/591/how-to-upload-and-process-the-excel-file-in-django/ On Thursday, 27 September 2018 01:35:47 UTC+2, BBG wrote: > > I want to create upload bulk data. Can anyone share code to upload csv or > excel file. > -- You

Re: Can anyone share code for uploading csv or excel file to sqlite3 database.

2018-09-27 Thread BBG
ormance's sake, it is advised to use bulk inserts or updates > instead on individual saves on the Django side if your CSV files contain a > lot of data. > > > Best > > > Eric > -- > *From:* django...@googlegroups.com < > django...@go

Re: Can anyone share code for uploading csv or excel file to sqlite3 database.

2018-09-27 Thread PASCUAL Eric
, September 26, 2018 6:04:09 PM To: Django users Subject: Can anyone share code for uploading csv or excel file to sqlite3 database. I want to create upload bulk data. Can anyone share code to upload csv or excel file. -- You received this message because you are subscribed to the Google Groups "D

Can anyone share code for uploading csv or excel file to sqlite3 database.

2018-09-26 Thread BBG
I want to create upload bulk data. Can anyone share code to upload csv or excel file. -- 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

Re: Beginner problem with sqlite3 db

2018-09-18 Thread Mateusz
Cześć! ;) You should first answer a question, why do you even bother using dbshell when there's an other option to deal with data? (docs <https://docs.djangoproject.com/en/2.1/intro/tutorial02/#playing-with-the-api> ) If you know why I'm asking, simply installing sqlite3 is gonna be th

Beginner problem with sqlite3 db

2018-09-17 Thread Robert Latoszewski
Hi, I'm going through "Writing your first Django app, part 2" link <https://docs.djangoproject.com/en/2.1/intro/tutorial02/#database-setup> and I have problem with sqlite3 db - I have created database tables with migrate command (got db.sqlite3 file in my project folder)

Re: django sqlite3 error

2018-08-23 Thread Benjamin Goldberg
gt; i have used the join to merge this > > db = sqlite3.connect('db.sqlite3') > cursor = db.cursor() > > cursor.execute('\n' > >'INSERT INTO music_result SELECT username, meaning > ,NULL\n' > >'FROM music_na

Re: django sqlite3 error

2018-08-23 Thread Jason
What C. Kirby said. I don't see any use of django in this question, and if you are interested in using it, I would look at the tutorial in the documentation for an introduction to the ORM. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: django sqlite3 error

2018-08-23 Thread C. Kirby
t) > > i have used the join to merge this > > db = sqlite3.connect('db.sqlite3') > cursor = db.cursor() > > cursor.execute('\n' > >'INSERT INTO music_result SELECT username, meaning > ,NULL\n' > >'FROM music_na

django sqlite3 error

2018-08-23 Thread ruban bharath
Hi these are my tables music_name = char(username),userId(int) meaning = char(meaning),userid(int) i have used the join to merge this db = sqlite3.connect('db.sqlite3') cursor = db.cursor() cursor.execute('\n' 'INSERT INTO music_result SELECT username, meaning

Re: Data Retrieval from sqlite3

2018-08-19 Thread ruban bharath
table > > If i entered "*d*" in the front end (html) > > my expected output must be like > > d four > > what is the django sqlite3 query to make run of it please do help me to > come out from this ? > > Thank you in advance > > > -- &

Re: Data Retrieval from sqlite3

2018-08-16 Thread Vikrant Gupta
two > c three > d four > e five > > This is my table > > If i entered "d" in the front end (html) > > my expected output must be like > > d four > > what is the django sqlit

Re: Data Retrieval from sqlite3

2018-08-16 Thread ruban bharath
cursor.execute('SELECT * FROM music_output WHERE username =?', t) name2 = cursor.fetchall() return render(request, "home.html", {'name3': name2}) This one suits me a error for using that *"?" how can i pass parameter to get dynamic input* thats my problem sir On Thursday, August 16, 2018

Re: Data Retrieval from sqlite3

2018-08-16 Thread Jason
I would suggest you go through the django tutorial at https://docs.djangoproject.com/en/2.1/intro/tutorial01/ Your question suggests that you haven't done so, and it should help you find the answer to your question. -- You received this message because you are subscribed to the Google Groups

Data Retrieval from sqlite3

2018-08-16 Thread ruban bharath
the django sqlite3 query to make run of it please do help me to come out from this ? Thank you in advance -- 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 d

Django Admin with SQLite3 :memory:

2018-08-02 Thread George Kontridze
Hello, I was wondering if it is possible to use SQLite3 with the :memory: option in conjunction with Django Admin. I have gone as far as creating and running migrations on startup, and I can see that the auth_user table gets created, but when I try to log into the admin web interface, I get

help in understanding the sqlite3 backend

2018-07-07 Thread Sumit J
Hello, I am trying to understand the sqlite3 backend, especially the register_converter part. I wanted to understand why are those converters put in place? I commented out this registration and even then was able to to query the database in django shell via the ORM.. Even raw query execution

Re: Upgrading from 1.11 to 2.0: "sqlite3.OperationalError: no such table"

2018-05-08 Thread Informatico Neurodesarrollo
Check 1.11 to 2.0 upgrade. You already checked the project configuration and make migrations ?, it could be changed with the upgrade!!! I will hope help you. PD I'm a beginner in Django. El 06/05/18 a las 23:38, Michael Gauland escribió: Just in case anyone else runs into this, I fixed it by

Re: Upgrading from 1.11 to 2.0: "sqlite3.OperationalError: no such table"

2018-05-06 Thread Michael Gauland
Just in case anyone else runs into this, I fixed it by specifying db_contraint=False for foreign keys which cross databases. -- 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

Upgrading from 1.11 to 2.0: "sqlite3.OperationalError: no such table"

2018-05-03 Thread Michael Gauland
I've got a project that's been developed using django 1.11. I've tried upgrading to 2.0, but now I'm getting an error I haven't been able to track down. My database engine is sqlite3. I have three database files: - db.sqlite3 is the default. This is the only one that django manages

Re: sqlite3.NotSupportedError: URIs not supported

2018-02-26 Thread Dylan Reinhold
The original email was from 2 years ago, So I'm sure a lot has changed. Dylan On Mon, Feb 26, 2018 at 12:49 PM, Samantha Atkins wrote: > Well this is useless to those of us actually on python3. Exactly what > version of what fixeds this issue *for* python3? > > On

Re: sqlite3.NotSupportedError: URIs not supported

2018-02-26 Thread Samantha Atkins
Well this is useless to those of us actually on python3. Exactly what version of what fixeds this issue *for* python3? On Wednesday, August 24, 2016 at 1:16:53 PM UTC-7, Jeff Silverman wrote: > > Can anyone point me in the right direction to solve this? I am running > DJANGO with python3.4 in

Re: django migrating from sqlite3 to oracle gives error ORA-02000

2018-02-09 Thread Jani Tiainen
Hi. Could you give full traceback and preferably migration code that fails. Just Oracle error code isn't enough to help you. 9.2.2018 23.12 "Mohamed Saleh" <mohamedsalehaf...@gmail.com> kirjoitti: > I hava a Django app on a windows server 2012 which was set up with

django migrating from sqlite3 to oracle gives error ORA-02000

2018-02-09 Thread Mohamed Saleh
I hava a Django app on a windows server 2012 which was set up with sqlite3 as the db, but it's going to production so I'm migrating the tables to oracle 12c on the server, i don't care about the data just the tables so when I run python manage.py migrate I get ORA-2000 Error: missing

Re: how to create path for sqlite3 in django? I'm unable to access my database.

2017-10-30 Thread Etienne Robillard
Hi, you may need to install sqlite3 for windows and set your PATH to the directory where sqlite3 executable is found. Etienne Le 2017-10-30 à 03:52, bonagiri abhishek a écrit : C:\Users\admin\cricwebsite>python manage.py dbshell CommandError: You appear not to have the 'sqlite3' prog

how to create path for sqlite3 in django? I'm unable to access my database.

2017-10-30 Thread bonagiri abhishek
C:\Users\admin\cricwebsite>python manage.py dbshell CommandError: You appear not to have the 'sqlite3' program installed or on your path. Can anyone please explain me the problem? I'm unable to access the database as it is showing the above CommandError. -- You received this message because

Re: sqlite3 table not found

2017-05-22 Thread jjanderson52000
URL to visit one of my views, I get an > error, an excerpt of which is shown below: > > File > "/home/jja/testenv3.5/lib/python3.5/site-packages/django/db/backends/sqlite3/base.py", > > line 337, in execute > return Database.Cursor.execute(self, query, par

Re: sqlite3 table not found

2017-05-21 Thread James Schneider
error, an excerpt of which is shown below: File "/home/jja/testenv3.5/lib/python3.5/site-packages/ django/db/backends/sqlite3/base.py", line 337, in execute return Database.Cursor.execute(self, query, params) sqlite3.OperationalError: no such table: siggy_siggytemplate I would like to

sqlite3 table not found

2017-05-21 Thread jjanderson52000
e/jja/testenv3.5/lib/python3.5/site-packages/django/db/backends/sqlite3/base.py", line 337, in execute return Database.Cursor.execute(self, query, params) sqlite3.OperationalError: no such table: siggy_siggytemplate I would like to look at the SQL tables and it looks like 'python mana

Re: sqlite3 database encrytion for Django.

2017-05-09 Thread Melvyn Sopacua
On Tuesday 09 May 2017 09:24:08 Antonis Christofides wrote: > > and root seems (unsurprisingly) able to do anything desired with the > > database. > > He meant that root wouldn't be able to read the database if the > database was encrypted. But, again, the question is whether root > would have

Re: sqlite3 database encrytion for Django.

2017-05-09 Thread Antonis Christofides
he > least of my worries. ;-) > >> 2) root can't do anything with it nor can daemons that are >> compromised before switching to unprivileged user. > You sure about this? I just tested the scenario: > > $ su - > Password: > root@laptop:~# sqlite3 test.db >

Re: sqlite3 database encrytion for Django.

2017-05-08 Thread Tim Chase
su - Password: root@laptop:~# sqlite3 test.db SQLite version 3.8.7.1 2014-10-29 13:59:56 Enter ".help" for usage hints. sqlite> create table example (id int); sqlite> insert into example values (42); sqlite> select * from example; 42 sqlite> root@laptop:~

Re: sqlite3 database encrytion for Django.

2017-05-08 Thread Melvyn Sopacua
On Monday 08 May 2017 18:29:35 Antonis Christofides wrote: > Assume Django is running as user 'django' and the db is "db.sqlite3". > > If you "chown django db.sqlite3" and "chmod 600 db.sqlite3", only user > django can access it. > > What would you gain by encrypting it? Three things: 1) If the

Re: sqlite3 database encrytion for Django.

2017-05-08 Thread Antonis Christofides
Assume Django is running as user 'django' and the db is "db.sqlite3". If you "chown django db.sqlite3" and "chmod 600 db.sqlite3", only user django can access it. What would you gain by encrypting it? Antonis Christofides http://djangodeployment.com On 2017-05-08 18:06, Melvyn Sopacua wrote: >

Re: sqlite3 database encrytion for Django.

2017-05-08 Thread Melvyn Sopacua
On Monday 08 May 2017 17:35:59 Antonis Christofides wrote: > > Unfortunately, that doesn't prevent theft at runtime, which is the > > primary case for encrypting "documents". I used to do something > > like this with svn passwords, using a file-backed mdconfig store > > and geli. > > But during

Re: sqlite3 database encrytion for Django.

2017-05-08 Thread Antonis Christofides
17-05-08 17:19, Melvyn Sopacua wrote: > > On Saturday 06 May 2017 11:56:28 Tim Chase wrote: > > > On 2017-05-05 11:51, agajesh...@atompower.com wrote: > > > > I want to encrypt my sqlite3 database such that it cannot be > > > > accessed without a key. I c

Re: sqlite3 database encrytion for Django.

2017-05-08 Thread Melvyn Sopacua
On Saturday 06 May 2017 11:56:28 Tim Chase wrote: > On 2017-05-05 11:51, agajesh...@atompower.com wrote: > > I want to encrypt my sqlite3 database such that it cannot be > > accessed without a key. I came across "sqlcipher" tool which > > provides encryption for s

Re: sqlite3 database encrytion for Django.

2017-05-06 Thread Tim Chase
On 2017-05-05 11:51, agajesh...@atompower.com wrote: > I want to encrypt my sqlite3 database such that it cannot be > accessed without a key. I came across "sqlcipher" tool which > provides encryption for sqlite3 database, but I couldn't find > enough support to ma

Re: sqlite3 database encrytion for Django.

2017-05-05 Thread Antonis Christofides
Hi, That's interesting. May I ask why you want to do this? Regards, A. Antonis Christofides http://djangodeployment.com On 2017-05-05 21:51, agajesh...@atompower.com wrote: > Hello everyone, > > I want to encrypt my sqlite3 database such that it cannot be accessed without > a

Re: sqlite3 database encrytion for Django.

2017-05-05 Thread Malcolm MacKinnon
I suggest you consider using keyzar and django-encrypted-fields. Here's the code: https://github.com/defrex/django-encrypted-fields/ On Fri, May 5, 2017 at 11:51 AM, <agajesh...@atompower.com> wrote: > Hello everyone, > > I want to encrypt my sqlite3 database such that it can

sqlite3 database encrytion for Django.

2017-05-05 Thread agajeshwar
Hello everyone, I want to encrypt my sqlite3 database such that it cannot be accessed without a key. I came across "sqlcipher" tool which provides encryption for sqlite3 database, but I couldn't find enough support to make it work from django. It would be very helpful if someone

Anyone know howto solve this: Error loading either pysqlite2 or sqlite3 module

2017-02-19 Thread Fernando Ramirez Dominguez
Hello, everybody: I am a newbie in Django and I recently installed Python 3.6 and Django 1.110.5, but when try execute the server show me: {code} Traceback (most recent call last): File "/root/myDjangoProject/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py",

Re: Django migrate generates SQLite3 file filled with junk

2016-09-25 Thread Lekan Wahab
tps://groups.google.com/d/msgid/django-users/2980ce12-c366-454b-844a-c625e7520977%40googlegroups.com <https://groups.google.com/d/msgid/django-users/2980ce12-c366-454b-844a-c625e7520977%40googlegroups.com?utm_medium=email_source=footer> . > For more options, visit https://groups.google.com/d/opto

Re: Django migrate generates SQLite3 file filled with junk

2016-09-25 Thread Gergely Polonkai
That file is an SQLite database, which is a binary format. It should look like this. I know it is confusing, because of that bunch of SMS statements, but it's OK that way. If you want to interact with it, use the sqlite3 command, or an SQLite GUI. On Sun, Sep 25, 2016, 14:17 kbman99 <kylebo

Django migrate generates SQLite3 file filled with junk

2016-09-25 Thread kbman99
Just getting started with django and having an issue with the migrate.py script. It generates a db.SQLite3 file which is filled with a lot of garbage characters. It's in UTF-8 encoding, but looks like this. I've deleted the file and

Re: sqlite3.NotSupportedError: URIs not supported

2016-08-24 Thread Jeff Silverman
Well I may have answered my own question. Seems it may be a version incompatibility. I built another virtual environment at Python 2.7 and the error is gone. Also I am using the pycontrol module which is also not work g with Python 3.4. On Wednesday, August 24, 2016, Jeff Silverman

sqlite3.NotSupportedError: URIs not supported

2016-08-24 Thread Jeff Silverman
Can anyone point me in the right direction to solve this? I am running DJANGO with python3.4 in virtualenv. I get this error running manage.py. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

sqlite3 “OperationalError: no such table” on threaded operation

2016-01-08 Thread Jim Bell
By everything I read in the docs, both Django and py-sqlite3 should be fine with threaded access. (Right?) But the attached code snippet fails for me. The operations in the main thread work, but not in the thread(s) I create. There I get: File "C:\Python27\lib\site-packages\django-1.9-

Re: Can you remove a model's last field of SQLite3 in Django 1.8?

2015-11-29 Thread Markus Holtermann
: https://www.sqlite.org/lang_createtable.html /Markus On Sun, Nov 29, 2015 at 09:17:53AM -0800, KwangYoun Jung wrote: Can you remove a model's last field of SQLite3 in Django 1.8? I have a model that has only one column in SQLite3. When I remove a last field of the model, I get an error like

Re: Can you remove a model's last field of SQLite3 in Django 1.8?

2015-11-29 Thread Daniel Roseman
On Sunday, 29 November 2015 17:17:54 UTC, KwangYoun Jung wrote: > > Can you remove a model's last field of SQLite3 in Django 1.8? > > I have a model that has only one column in SQLite3. > When I remove a last field of the model, I get an error like below > > > > *djang

Can you remove a model's last field of SQLite3 in Django 1.8?

2015-11-29 Thread KwangYoun Jung
Can you remove a model's last field of SQLite3 in Django 1.8? I have a model that has only one column in SQLite3. When I remove a last field of the model, I get an error like below *django.db.utils.OperationalError: near ")": syntax error*Anyone knows about this issue ? -- Yo

Re: Foreign key in sqlite3

2015-10-02 Thread Ricardo Daniel Quiroga
any other > database: > > fieldname = models.ForeignKey(AnotherModel) > On 30 Sep 2015 15:18, "Bhanu Kathuria" <001kathuriabh...@gmail.com> wrote: > >> I am using sqlite3 database. >> How can I add foreign key between two tables. >> >> -- >&

Re: Foreign key in sqlite3

2015-09-30 Thread Gergely Polonkai
Assuming you are using Django and it's ORM, the same way as in any other database: fieldname = models.ForeignKey(AnotherModel) On 30 Sep 2015 15:18, "Bhanu Kathuria" <001kathuriabh...@gmail.com> wrote: > I am using sqlite3 database. > How can I add foreign

Foreign key in sqlite3

2015-09-30 Thread Bhanu Kathuria
I am using sqlite3 database. How can I add foreign key between two tables. -- 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-user

Re: Sqlite3 to Postgres Migration?

2015-02-20 Thread Mike Dewhirst
. No one in the group has experience with web development. We decided on Django, and I wrote a prototype using sqlite3. Sqlite3 will not be used going forward. Instead either Postgres or MySql will be used. Personally I am in favor of Postgres, Good call. IMO. but I have been telling

Re: Sqlite3 to Postgres Migration?

2015-02-20 Thread Andrew Farrell
> > I am leading a project to create a web application for uploading certain > scientific data into a database. No one in the group has experience with > web development. We decided on Django, and I wrote a prototype using > sqlite3. Sqlite3 will not be used going forward. Instead either P

Re: Sqlite3 to Postgres Migration?

2015-02-20 Thread talex
experience with web development. We decided on Django, and I wrote a prototype using sqlite3. Sqlite3 will not be used going forward. Instead either Postgres or MySql will be used. Personally I am in favor of Postgres, but I have been telling the group, perhaps incorrectly, that Django is "dat

Re: Sqlite3 to Postgres Migration?

2015-02-19 Thread Mike Dewhirst
On 20/02/2015 3:07 AM, Tom Lockhart wrote: On Feb 18, 2015, at 11:04 PM, talex <bkielhor...@gmail.com> wrote: I have a functioning Django application that is based on sqlite3, but I want to change to using Postgres. I’ll point out for the benefit of others who might be getting s

Re: Trouble changing from sqlite3 to postgres

2015-02-19 Thread Collin Anderson
self.cursor.execute(sql, params) > django.db.utils.ProgrammingError: column "date" cannot be cast > automatically to type integer > HINT: Specify a USING expression to perform the conversion. > > > On Tuesday, February 17, 2015 at 4:39:27 PM UTC-8, Joel Burton wrote: >>

Re: Sqlite3 to Postgres Migration?

2015-02-19 Thread Tom Lockhart
On Feb 18, 2015, at 11:04 PM, talex <bkielhor...@gmail.com> wrote: > I have a functioning Django application that is based on sqlite3, > but I want to change to using Postgres. I’ll point out for the benefit of others who might be getting started: Postgres is a full featu

Re: Sqlite3 to Postgres Migration?

2015-02-19 Thread Andrew Pinkham
On Feb 19, 2015, at 1:04 AM, talex wrote: > Am I correct that use of "python makemigrations" followed by > "python migrate", should copy the existing data into Postgres > and leave me with a working application? I'm afraid not. Migration allows for predictable and

Sqlite3 to Postgres Migration?

2015-02-18 Thread talex
I have a functioning Django application that is based on sqlite3, but I want to change to using Postgres. I have altered the DATABASES clause in settings.py to use Postgres. and I am using Django version 1.7. Am I correct that use of "python makemigrations" followed by "python m

Re: Trouble changing from sqlite3 to postgres

2015-02-17 Thread tony . guil35
t uses the date field. Can you > post the full traceback? That will let us see where the caller was that > created the problem. > > On Tuesday, February 17, 2015 at 3:13:30 PM UTC-5, tony@gmail.com > wrote: >> >> I have written a simple Django app (my first) tha

Re: Trouble changing from sqlite3 to postgres

2015-02-17 Thread Joel Burton
first) that works with sqlite3 > database. > I want to change to postgres, but when I run the Django 1.7 migration > utility with the command > "python manage.py migrate" > > I get the error: > psycopg2.ProgrammingError: column "date" cannot be

Trouble changing from sqlite3 to postgres

2015-02-17 Thread tony . guil35
I have written a simple Django app (my first) that works with sqlite3 database. I want to change to postgres, but when I run the Django 1.7 migration utility with the command "python manage.py migrate" I get the error: psycopg2.ProgrammingError: column "date" cannot b

Re: Installing south and using sqlite3's :memory: ruins total test suite time

2015-01-20 Thread Peter Bengtsson
It seems, for some reason settings.COMPRESS_ENABLED gets set to False when south is installed. On Tuesday, January 20, 2015 at 12:37:44 PM UTC-8, Peter Bengtsson wrote: > > I have a django project on django 1.6. It's using django-nose and it's > using sqlite3's :memory: trick: >

Re: Installing south and using sqlite3's :memory: ruins total test suite time

2015-01-20 Thread Peter Bengtsson
in runtime because I have `COMPRESS_OFFLINE = True` on and I run compress before running tests. On Tuesday, January 20, 2015 at 12:37:44 PM UTC-8, Peter Bengtsson wrote: > > I have a django project on django 1.6. It's using django-nose and it's > using sqlite3's :memory: trick: >

Installing south and using sqlite3's :memory: ruins total test suite time

2015-01-20 Thread Peter Bengtsson
I have a django project on django 1.6. It's using django-nose and it's using sqlite3's :memory: trick: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:', } } Before I added `south` to INSTALLED_APPS it would take about ~5 seconds

Re: django - How to fix “the procedure entry point sqlite3_rtree_geometry_callback could not be located in the dynamic link library sqlite3.dll”

2014-08-21 Thread Alex Lebedev
I got the same error message when I used django.contrib.gis on Windows (OSGeo4W). A python ctypes function tried to open wrong sqlite3.dll (wrong directory). That was the origin of issue. I reordered list of pathes in system environment variable "path" (replaced path to O

django - How to fix “the procedure entry point sqlite3_rtree_geometry_callback could not be located in the dynamic link library sqlite3.dll”

2014-08-20 Thread Shoaib Ijaz
I have problem with django project. I am facing error when i am trying to execute project in browser. "the procedure entry point sqlite3_rtree_geometry_callback could not be located in the dynamic link library sqlite3.dll" I have no idea where is the issue. -- You received th

Re: moving from sqlite3 to mysql

2014-02-06 Thread Malik Rumi
erguson <d...@afccommercial.co.uk>wrote: > >> Hi >> >> Just like SQLlite, you tell Django where the MySQL database is in >> settings.py >> >> At the top you should have something like >> >> DATABASES = { >> 'default': { >>

Re: moving from sqlite3 to mysql

2014-02-05 Thread Ariel E. Isidro
> DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': 'django_1', # Or path to database file if using sqlite3. > # 'USER': '', > # 'PASSWORD': '', > # 'HOST': '', # Empty for localhost > # 'PORT': '', # Set to empty string for default. > } &g

Re: moving from sqlite3 to mysql

2014-02-05 Thread Drew Ferguson
Hi Just like SQLlite, you tell Django where the MySQL database is in settings.py At the top you should have something like DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'django_1', # Or path to database file if using sqlite3. # 'USER': '', # 'PASSWORD

Re: moving from sqlite3 to mysql

2014-02-05 Thread Malik Rumi
. manage.py: error: no such option: --django_1 <> Ok, so MySQL wanted a db name, even though there was no db name (at least not one I gave it) on sqlite3 when I ran syncdb without a name, it said no db selected When I tried pointing it to a name, I got 'doesn't accept arguments' and then 'no suc

  1   2   3   4   >