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

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

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

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

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

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

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

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

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

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

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=/

Re: How to modify LOGGING settings in unittest

2019-06-10 Thread panfei
Still get the same error message vineeth sagar 于2019年6月11日周二 上午2:08写道: > Try this with the override_settings decorator. like this. > > @override_settings(LOGGING_DIR='/tmp/test_logs/' > def test_function1(self): > pass > > On Mon, Jun 10, 2019 at 7:15 PM

How to modify LOGGING settings in unittest

2019-06-10 Thread panfei
There is a logger path for production environment, but I want to put the logs in /tmp/ in unittests. This is the LOGGING settings for production environment: LOGGING_DIR = '/data0/bridge_logs_test/' LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { '

Re: Integrating Machine Learning Model in Django

2019-04-11 Thread panfei
Video analysis is a GPU intensive process, it may take a long time to process a whole video, I think you can use Celery to run the process as an asynchronous task, and use callback to trace the progress of the tasks . Celery can be easily integrated with Django, officially support. Aakash Baranwa

Re: Reusable Chat Application for Django Developers

2019-03-18 Thread panfei
Congratulations ! Ahmed Ishtiaque 于2019年3月19日周二 上午5:44写道: > Hello everyone, > > A couple of months ago I was trying to check if I can use any of the apps > that appear in Django Packages Chat > section but it seems like none of them are maintained very

Re: Discussion: Why not Django include uWSGI/FastCGI support internally just like Spring Boot include tomcat ?

2019-02-27 Thread panfei
ter. > > > On Wed, 27 Feb 2019 at 09:35, panfei wrote: > >> If Django include these production-ready container, and then implement a >> mange.py admin command, by just executing the command we can start a >> production-ready service. >> >> Any possibil

Discussion: Why not Django include uWSGI/FastCGI support internally just like Spring Boot include tomcat ?

2019-02-27 Thread panfei
If Django include these production-ready container, and then implement a mange.py admin command, by just executing the command we can start a production-ready service. Any possibilities on this idea ? -- 不学习,不知道 -- You received this message because you are subscribed to the Google Groups "Dja

is it OK to process the "next=xxx" url parameter in the admin login view

2013-07-04 Thread panfei
for some simple use cases, it is convenient to reuse the admin login site, if the admin login view can process the next parameter in the url, we can reuse it more smoothly. -- 不学习,不知道 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

Share my project !

2010-04-11 Thread PanFei
I created a project based on Django, It is a small group system, if you are interest in it ,you can check it out using subversion . the project is on Google code : http://code.google.com/p/opengroup/ -- You received this message because you are subscribed to the Google Groups "Django users" gro

how to get all the context variable name in a template

2010-03-27 Thread PanFei
hi all, i want to know if there is a way to get all the context variable (name) in a template. for example : I use render_to_response(template, {} context_instance=RequestContext(request)) to return a response .but I really do not know the context_instance=RequestContext(request) put a user objec

Re: how to not delete Image files

2009-12-10 Thread PanFei
odel-methods > > > Xia Kai(夏恺) > xia...@gmail.com > http://blog.xiaket.org > > ------ > From: "PanFei" > Sent: Friday, December 11, 2009 3:02 PM > To: "Django users" > Subject: how to not delete Image files

Re: how to not delete Image files

2009-12-10 Thread PanFei
Ps : I use the model in django admin . On Dec 11, 3:02 pm, PanFei wrote: > Hi all, I have a model that use ImageField , now i want to delete a > recorder from the database,but after call delete() my the file is also > deleted ! i think i should override some method ,but where it >

how to not delete Image files

2009-12-10 Thread PanFei
Hi all, I have a model that use ImageField , now i want to delete a recorder from the database,but after call delete() my the file is also deleted ! i think i should override some method ,but where it is ,looking forward for you reply ,thank you . -- You received this message because you are subs

Re: the parameters of the self-defined tags

2009-08-26 Thread PanFei
Thank you very much , I got it On Wed, Aug 26, 2009 at 6:07 PM, Daniel Roseman wrote: > > On Aug 26, 6:55 am, Apple wrote: > > hi , now I want to pass a parameter named user (user is a instance of > > User) to the self_defined tags,could I do this ? I think the passed > > parameter are all strin

Re: ANN: Django 1.1 released!

2009-07-29 Thread PanFei
i will try it On Wed, Jul 29, 2009 at 3:18 PM, Daniel Roseman wrote: > > On Jul 29, 7:23 am, James Bennett wrote: > > Tonight we're extremely proud to announce the release of Django 1.1, > > the latest major milestone in Django's development. > > > > To learn about the new release: > > > > * Blo

Re: Search Field Problem

2009-07-21 Thread PanFei
oh my god ,I begin studying django by using 1.02 On Tue, Jul 21, 2009 at 6:06 PM, Harish wrote: > > The Django Version I am using is > '0.97-pre-SVN-7049' > > > On Jul 21, 2:56 pm, PanFei wrote: > > may I have your version of django ? > > >

Re: Search Field Problem

2009-07-21 Thread PanFei
may I have your version of django ? On Tue, Jul 21, 2009 at 4:49 PM, Harish wrote: > > Hi Friends, > > Just refer the sample code below. > > My problem is I am referring a Dependant models field in > 'search_field' > it is working correctly but when i delete a record from 'Dept' name > from Dept