ƳƠƲƧƠƑ
For realtime chat
you can't implement it with Django?
Yazan
you can't implement it with Django?
I don’t know how to use it with my project About chat pdf with AI(LLM)
Yazan
I ask for some resources bro
ƳƠƲƧƠƑ
I ask for some resources bro
I think it's better not to use firebase You can use Django channels to implementing the chat realtime system
Yazan
Because i‘m new with django
ƳƠƲƧƠƑ
No it took some time
Yazan
hmmm thank you, do you have some recourses (github,YouTube)?
Somesh
I don’t know how to use it with my project About chat pdf with AI(LLM)
So. Use rest api or other best suits api for communication between ur django server and mobile or other applications
A
https://twitter.com/kattekaden/status/1739021725357207699 is djnago better than fast api
Mohammad
Hi everyone, I am implementing tag input in django... Does anyone know any useful documentation about saving and also deleting tags ?
Promiscuous Ferris
hey guys. so per the recommendation of rest framework's authetication docs, i have been using the simplejwt plugin for rest framework to handle authorizations. but apparently it doesn't support signing up new users. any solutions?
Promiscuous Ferris
Impossible to help without details.
What more detail could you ask for?
Promiscuous Ferris
Why am i even talking to a bot.
Doragonsureiyā
What more detail could you ask for?
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
.
trying to change DB from SQLITE to POSTGRESQL having this error django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table (ОШИБКА: нет доступа к схеме public LINE 1: CREATE TABLE "django_migrations" ("id" bigint NOT NULL PRIMA... ^ ) but i tried all solutoins. granted all privileges. what is this?
.
i tried to write engine name as postgresql and postgresql_psycopg2 didnt help
Lords
Hello everyone can any one guide me how to use auto completed search
Lords
For searchbox
Aniket
Hey guys, I have a question regarding django_channels. That managed clustered redis service like AWS in memory db will give Cross slot keys error when used as channel_layer?
Aniket
Also what can I have to do to achieve 10k+ concurrent django socket connections in production?
@Hame2i
hi , what's top rows for learn django?
Lucas🍃
holla. uhm is there a way to pass args into a model in view.py like def index(request): bid = BIds.objects.filter(pk=id) i know i can pass through like {index(request, id)} but it will affect my index url which is blank... pls is there a way to do this. because i have alot of functions in my views.py that i cant pass args into but i need those args
Muflone
how pls..
do you know python? Add optional arguments to the view and define additional url which allows you to call the index view with the passed arguments
Pandu
how do i serve static images which will be uploaded by users
Pandu
on production
Pandu
should i put debug true instead?
clouded
should i put debug true instead?
Debug is for debugging
Pandu
how do i serve static images which will be uploaded by users
anyway its working on debug false perfectly but not on true
Pandu
i want to start freelance, but i'm scared if they asked me to render their images, i'll get stuck lol i should learn static files on production first i watched videos of using google cloud buckets but didn't worked for me
Ahmad
Has anybody built a fully functioning blog website with Django, where you can upload images anywhere between text and the size will remain the same cuz I had tried to use django-ckeditor but it didn't work.
.
can i use another schema instead of public?
.
i tried to create a new project. but it still says that i have no rights to write into public schema
.
project doesn't have any apps. it's only created by django. but it says "u have no rights"
Muflone
Do you have permissions to create new schema and tables in that?
.
i granted ALL privileges on databse to my user
Muflone
Seems not
.
but i can not use public schema
Muflone
Public is called so because everyone has access to it
.
GRANT ALL PRIVILEGES ON DATABASE db_name TO my_user; this was the command
Muflone
Check db name and user name then
.
Public is called so because everyone has access to it
but i didn't anything mysterious. so why i can not run ./manage.py migrate without errors
Muflone
Your user is not authorized from postgres Not a Django problem Check the used data to access
.
ok, lemme try this via postgres user
.
yes. it worked. but why via another user nothing worked?
Muflone
You're using an unauthorized user
.
i granted him all privileges all along the database
.
You're using an unauthorized user
didn't hear about authorization. i just used CREATE USER user WITH PASSWORD 'password' command
Muflone
Of corse Django must use the same user and db you granted
Muflone
There's not manual page settings.py has the db settings where you set your db and user
.
so, u think, even though my own user (not postgres) had all privileges, i wrote something incorrect in settings.py?
Muflone
I don't know what you used
.
it was resolve?
When i configured DATABASES in settings.py i used db name, iser and password from .env I think i didnt use environment variables in python correctly
.
That means i was reading or storing data in .env incorrectly
Muflone
env files are not read automatically
.
env files are not read automatically
Yes. I installed python-dotenv Then from dotenv import load_dotenv() And using os.getenv('VARNAME')
Enlighting-man
That means i was reading or storing data in .env incorrectly
yes, I think the issue is in the configuration; in my case, I simply use python-dotenv. You can install it with 'pip install python-dotenv
Enlighting-man
Yes
In your case, in which file are you placing this statement: from dotenv import load_dotenv?
Enlighting-man
load_dotenv()
Enlighting-man
Settings py
and the .env file?
.
and the .env file?
In the project root
Enlighting-man
In the project root
There shouldn't be any issues in your python environment.
Enlighting-man
show us how the configuration is in your database settings