azepug | Unsorted

Telegram-канал azepug - AzerbaijanPUG(Official)

912

Azerbaijan Python Users Group

Subscribe to a channel

AzerbaijanPUG(Official)

Mən adətən bu styleguide istifadə edirəm: https://github.com/HackSoftware/Django-Styleguide. Business logic service layer’a ayırıram, ve complex ORM querry’lari "selector" olaraq istifadə edirəm (məsələn, favorite_product_items__by_user(...) -> Queryset[ProductItem]) və "onion" arxitekturasına riayət edirəm.

Читать полностью…

AzerbaijanPUG(Official)

Performans cehetden cox hessas proyekt uzerinde isleyenler ve "local-first software" implement etmek isteyenler varsa WASM sayesinde ister Sqlite ister Duckdb kimi proyektleri browser daxilinde istifade ede bilerler.

https://duckdb.org/2021/10/29/duckdb-wasm.html

Notion WASM Sqlite istifade edir.

https://www.notion.so/blog/how-we-sped-up-notion-in-the-browser-with-wasm-sqlite

Читать полностью…

AzerbaijanPUG(Official)

bu mellime yaxshi bir Star dushur mence :)
https://github.com/roma-glushko/hyx

Читать полностью…

AzerbaijanPUG(Official)

Ambulance call center lar çöküb deyə birneçə insan da həyatını itirib hətta👀

Читать полностью…

AzerbaijanPUG(Official)

Prodakşna kod göndərəndə ehtiyyatlı olmaq lazımdır. Crowdstrike görürsüz də 😀

Читать полностью…

AzerbaijanPUG(Official)

Indi qurulan platformadan sora bashqa platformalarda ola biler deye single sign on implement edilmelidiki istifadeki bir yerden login olsun ancaq, digerlerinde automatically login olur

Читать полностью…

AzerbaijanPUG(Official)

Nece yami single sign?

Читать полностью…

AzerbaijanPUG(Official)

Fastapi ucun hazir session, crud ve diqer funksiyalar
https://github.com/dmontagu/fastapi-utils

Читать полностью…

AzerbaijanPUG(Official)

Problem olasi deil, saadece context manager terefe bax (with session_factory(…) as session …)

Читать полностью…

AzerbaijanPUG(Official)

@celery_app.task
def test1():
db: Session = session_factory()
try:
#some code
finally:
db.close()
test2.apply_async()

bunu db.close den sonram cagirmaq ne derece yaxsidi problemli bir sey deyil?

Читать полностью…

AzerbaijanPUG(Official)

delayi bu chedule taskin icinde yazim?

Читать полностью…

AzerbaijanPUG(Official)

mende hosting cpanel kimidi ona gore mence bu alinmiyacaq

Читать полностью…

AzerbaijanPUG(Official)

Bir taskdan obirisini run ede bilersen (delay(), apply_async())

Читать полностью…

AzerbaijanPUG(Official)

Uptrace, Sentry ve Datadog alternativi bir sheydi bu? :D

Читать полностью…

AzerbaijanPUG(Official)

Yoxsa flud olur basa dusmursen neyi nece tapaq

Читать полностью…

AzerbaijanPUG(Official)

Salam millət! Belə bir sual(məsləhət ehtiyacı) var:
Bir vveb app qurmaq fikrim var, back django, front isə reactda olacaq çoxgüman. Həcmcə böyük bir şey olacaq - həm back, həm də front cəhətdən. Hələki özüm etməyə çalışacam, daha sonra(vəsait yığılanda :)) xərc edib normallaşdıracam. Hələki indi necə bir arxitektura qurum ? Daha sonra refactoringi daha rahat olsun?

Читать полностью…

AzerbaijanPUG(Official)

olara demiyibler ki, 5ci gun deploy elemey olmaz? 😂

Читать полностью…

AzerbaijanPUG(Official)

Bizim şirkətdən 1 nəfərdə olub bu gün BSOD. Force restart-dan sonra düzəlib amma

Читать полностью…

AzerbaijanPUG(Official)

https://www.theverge.com/2024/7/19/24201717/windows-bsod-crowdstrike-outage-issue

Читать полностью…

AzerbaijanPUG(Official)

Heresi uchun ayri ayri credentiallar yaradib ayri ayri login olmasin

Читать полностью…

AzerbaijanPUG(Official)

Her defe istemesin yeni logunu tokenin vaxti bitene kimi?

Читать полностью…

AzerbaijanPUG(Official)

Salam. Django applicationunda jwt ile custom authentication hazirdir ve front end ile integrasiya edilmishdir. Amma optional olaraq single sign on implement edilmelidir. Bu barede komeklik gosterseniz shad olardim

Читать полностью…

AzerbaijanPUG(Official)

Task2.apply finally blockdan cixardsan yaxsi olar

Читать полностью…

AzerbaijanPUG(Official)

test2 taskinda yeniden db: Session = session_factory() sessionu gotururem

Читать полностью…

AzerbaijanPUG(Official)

Bura baxin

https://stackoverflow.com/questions/69798923/sequential-celery-task-execution

Читать полностью…

AzerbaijanPUG(Official)

Onda bir taskdan obirisini run et ve s

Читать полностью…

AzerbaijanPUG(Official)

Ve belkede Airflow (https://airflow.apache.org) terefe baxarsan, overkill omasa senin use case ucun

Читать полностью…

AzerbaijanPUG(Official)

celery_app.conf.beat_schedule = {
'test1': {
'task': 'tasks.test1',
'schedule': crontab(hour='*/25'), # Runs daily at midnight
},
}


celery_app.conf.beat_schedule = {
'test2': {
'task': 'test2',
'schedule': crontab(hour='*/26'), # Runs daily at midnight
},
}
salam celeryde ele elemek olurmuki tasklar ardicil olsun meselen birinci test1 taski islesin bitennen sonram test2 taski islesin bir birinnen bele deyim asli olsun?

Читать полностью…

AzerbaijanPUG(Official)

Bunu yoxlayan olub aranizda ?

https://pydantic.dev/logfire

Читать полностью…

AzerbaijanPUG(Official)

qrupda otaqlar yaratsaz daha asan olar

Читать полностью…
Subscribe to a channel