Junior
What the best library to auth?
pranav
What the best library to auth?
dj-rest-auth is nice I think
Mirco
dj-rest-auth is nice I think
It is, but especially thanks to django-allauth
pranav
It is, but especially thanks to django-allauth
Yeah that too and I think dj-rest-auth is more preferable if you want api endpoint for your authentication if I ain't wrong
Charly
dj-rest-auth is nice I think
Assuming he's using rest fw
Rose
User Viren has 1/3 warnings; be careful! Reason: Offtopic: only whatsapp itself can help you
Rose
User Forouzan has 1/3 warnings; be careful! Reason: rule #1: speak English
Shawna
how to add phone field to django user without changing the django defualt user setup ?
Shawna
i want to add the field to the User model it's self
Mirco
i want to add the field to the User model it's self
You have to customize it via AbstractUser Otherwise the only way is to use a 1:1 model like a Profile model
Shawna
You have to customize it via AbstractUser Otherwise the only way is to use a 1:1 model like a Profile model
if i use abstract then i have to set the user model from zero and add new usermanager ?
Mirco
if i use abstract then i have to set the user model from zero and add new usermanager ?
It's not from zero, you have all the stuff from default user model + your custom fields
Shawna
can you share the deufalt user model by django ? i looked for it did not find it i want to know how they created the user model and want to see fields
chintu
@app.task(bind=true, result_expires=60) result_expires is not working on task level it is working has per global declared level in django settings CELERY_RESULT_EXPIRES = 30
Qwerty
can anyone help me with this ?
are you sure this is how it should work? I don't see in the celery documentation an example of using expires at this level.
Qwerty
https://docs.celeryq.dev/en/latest/userguide/configuration.html#result-expires
i saw it but I think it's configurable at the Celery instance level
Cheru
Someone to help me link sql with html
Rose
Someone to help me link sql with html
No one can help you until you explain your difficulties.
Cheru
Been trying to link my sql database (test) with an index.html but have not succeded
Rose
Been trying to link my sql database (test) with an index.html but have not succeded
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Poya
Hello I saw Django's tutorials and now I want to do a test project so that I don't have to remember the concepts and can practice and I want to focus more on APIs and I don't want to work with templates. If you have a project idea that can challenge me, I would appreciate it if you introduce it.
Xusrav
question? Let’s say my friend and I are developing a FullStack project remotely, I am the Backend part, and my friend is the Frontend part, after I wrote the API, how can I transfer it to my friend so that he can use it for the Frontend part of the project?
ASR
What changes should i make, if i want to use my custom user model for jwt authentication. I am using mongodb
Luiz H.
i'm using the Soft UI Dashboard Django. I changed the primary color and primary gradient colors in scss , recompiled using gulp and added the css file in static/assets/css but the app is still using the css from template's static folder . do I need to change some configuration to get the css from my static ?
Luiz H.
I'm following this https://github.com/creativetimofficial/soft-ui-dashboard-django?tab=readme-ov-file and https://www.creative-tim.com/learning-lab/bootstrap/build-tools-free/soft-ui-dashboard (Recompile CSS topic)
Luiz H.
the inspect in browser is correct, but the color is from original template, not my new colors <!-- CSS Files --> <link id="pagestyle" href="/static/css/soft-ui-dashboard.css" rel="stylesheet"> <link id="pagestyle_dark" href="/static/css/dark-theme-core.css" rel="stylesheet">
Luiz H.
sorry guys 😂😂😂
Rose
User M.​ Hossein has 1/3 warnings; be careful! Reason: don't ask for groups here (rule #6)
Prakhar
I want to know whether we can make authentication in firebase and create other stuff in django
Charly
why you want firebase when django already has an authentication system?
Prakhar
Phone number verification otherwise we need to pay the cost for otp service
Charly
Phone number verification otherwise we need to pay the cost for otp service
well, if saving a couple dollars worth the hassle for you then do it
Prakhar
Can you please share any resources that teach me how to integrate with firebase and make authentication system
Eudes Gaël
Could you please suggeste any course that teach Django and PostgreSQL?
Rose
User Ruchitha has 1/3 warnings; be careful! Reason: offtopic and piracy
Rose
User Xusrav has 1/3 warnings; be careful! Reason: recommending ChatGPT
Rose
Could you please suggeste any course that teach Django and PostgreSQL?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial (https://docs.djangoproject.com/en/dev/intro/tutorial01/) * Tutorial from MDN (https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django) * Tutorial from django-girls (https://tutorial.djangogirls.org/en/)
...
i have tried to solve the problem dictionary update sequence element #0 has length 0; 2 is required error all day but a couldn't i also tried to see in the stackoverfllow but it couldn't solve the problem. i have checked both the template and the view it is correct .so any one who has faced this type of problem and tell my if you solved it. i am using django version 5.0.3
Rose
User Willi@​m.​ has 2/3 warnings; be careful! Reason: crossposting
ManDo
Hi. I am following Django docs about Paginator but I wonder about using "Contact.objects.all() here. if I have millions of records in Contact table, will the performance be bad? def listing(request): contact_list = Contact.objects.all() paginator = Paginator(contact_list, 25) # Show 25 contacts per page. page_number = request.GET.get("page") page_obj = paginator.get_page(page_number) return render(request, "list.html", {"page_obj": page_obj})
Cmd
Hi.how i can put the key between posts that can chek previous post and next post in views.py?
Sergi
who knows how to write a middleware so that the license is checked every time the page is updated? now it looks like this: class LicenseCheckMiddleware: def init(self, get_response): self._get_response = get_response def call(self, request): if not self.is_license_valid(request): return render(request, 'temp/bad_license.html') response = self._get_response(request) return response def is_license_valid(self, request): return False #for tests
morty
Hi how can i reach out all raw sqlite queries from django orm ??
Rose
User Yuriy has 1/3 warnings; be careful! Reason: rule #10 violation
Rose
User P Y t H o n -$ has 1/3 warnings; be careful! Reason: totally offtopic
Yan
Hi How can I integrate translation into a django project?
Wendy
Change language?
amira
i am new into django i have a problem to use the default admin page i made a data base using sqlite containing user names and password (integers ).. how can i connect it to the admin interface to django to test the data depending on it
Wendy
Yes
Open settings and find LANGUAGE_CODE
Arneeth
Does anyone know any other course to learn django rest framework other than DRF Documentation??
Deepak
Y I'm getting response 200 but data was null
Avneet
Y I'm getting response 200 but data was null
Because you aren't passing the data correctly, check the payload
Avneet
i am new into django i have a problem to use the default admin page i made a data base using sqlite containing user names and password (integers ).. how can i connect it to the admin interface to django to test the data depending on it
In terminal run the following command python manage.py createsuperuser Add the appropriate details. Open URL 127.0.0:8000/admin in browser. Enter the credentials of superuser
Avneet
What is the issue is the data not adding in db or it is adding in db but in response it is showing null
Deepak
Response was null but data has been added in db
Deepak
Maybe is your code
U mean serilizer or response or request argument
Deepak
Convert of json to python object or serilizer or python to json
Charly
U mean serilizer or response or request argument
Impossible to determine it without looking at it
Deepak
Ok cool
Husen
Hello everybody. I want to cache the data in listapiview in drf through redis without using docker but I can't do it please help
Charly
Hello everybody. I want to cache the data in listapiview in drf through redis without using docker but I can't do it please help
So docker is just to run redis so the code must be the same if you run it outside of docker