skip to Main Content

Issue with connecting postgresql in django

i made a project on django. i work in virtualenv, i installed psycopg2-binary, tried to connect postgresql instead of sqlite3. rewrite code in settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'database', 'USER': 'user', 'PASSWORD': 'mypassword', 'HOST': 'localhost', 'PORT':…

VIEW QUESTION

Telegram – Django ORM Q and Async

I'm using django with Telegram Bot If i need to make ORM Query, i can do it like that all_offers = await sync_to_async(Offers.objects.filter, thread_sensitive=True)( status = True, ) but not i need to make more difficult query with Q function…

VIEW QUESTION
Back To Top
Search