flyly0755

Results 19 comments of flyly0755

接口请求中的Content-Type: text/html 不对,正常的应该是Content-Type: image/png 但不知道怎么改🤦‍♂️

> on Linux, you can use systemd. More info https://stackoverflow.com/questions/65241859/using-django-q-in-production which i think is unworkable, what i want is after runserver to execute python manage.py qluster, where i can add...

yes, can run with command python manage.py runserver & python manage.py qcluster, but now has another question, is there any command used for solely closing django-q process, for example python...

> You can serve your django application with Gunicorn also served by systemd. > > You just need to setup 2 services file in /etc/systemd/system: 1 to **run the server**...

yes, there is some issue with installation, now need to debug it. we use pyinstaller to pack codebase, using mange.spec as package configuration. add clickhouse_sqlalchemy into hiddenimports list in manage.spec,...

find some clue with https://snowflakecommunity.force.com/s/question/0D50Z00009Huss0SAB/how-to-get-pyinstaller-to-pack-snowflake-sqlalchemy-dialect, maybe change hook-sqlalchemy.py of pyinstaller with this line hiddenimports = ['pysqlite2', 'MySQLdb', 'psycopg2', 'sqlalchemy.ext.baked'] change to hiddenimports = ['pysqlite2', 'MySQLdb', 'psycopg2', 'sqlalchemy.ext.baked', 'clickhouse-sqlalchemy'] how do...

find solution from source code:) the link showed as below: https://github.com/xzkostyan/clickhouse-sqlalchemy/blob/master/tests/config.py register method as below when packaging with pyinstaller from sqlalchemy.dialects import registry registry.register( "clickhouse", "clickhouse_sqlalchemy.drivers.http.base", "dialect" )

```python engine = create_engine(dbsession.bind.url, echo=False, connect_args={'timeout': 600}, poolclass=NullPool) session = sessionmaker(bind=engine)() ``` the seesion settings as above

session.execute(insert(OrmClass), testdata) has same issue both in version 2.0 and 1.4