Batman
Hey all, has anyone used social authentication with django rest framework before? if so can you please tell me which package have you used and were able to implement social authentication successfully with it?
Batman
Check Django SocialAuth
thanks, but it's deprecated now😅
Khaidem Sandip
Can we make an android app with django without web hosting
Batman
Ashlah
Luis
With djangorestframework
Batman
With djangorestframework
but that's the server used by apps, and not the app itself 🧐
Luis
You can't do that
Luis
You can't make the app itself with Django, Django will only work as your backend in this type of scenario
Mahakaal
Can we connect Django server and phpmyadmin server to the same website if YES HOW?
Alex
Can we connect Django server and phpmyadmin server to the same website if YES HOW?
You can connect phpmyadmin with the DB that your django app is connected to.
Franck
good evening everyone please I try to integrate the payment API Mtn MOMO in my django project without success. someone can advise me a tutorial. it's really urgent thank you very much for helping me
Damron
Hi, is that true that it's better to use tweet.user_id instead of tweet.user.id - we're considering the cases Foreign Key using of? In one article was said that in the 2nd it meant an additional query
Ashlah
Hi, is that true that it's better to use tweet.user_id instead of tweet.user.id - we're considering the cases Foreign Key using of? In one article was said that in the 2nd it meant an additional query
When you get the tweet object, it'll have all of its db fields (as its attributes) including the foreign key to user (user_id) but not the user object itself. The later will query the user object from db, with id field as its attribute. So yes, the first one will be faster of you only need the foreign key
Ashlah
Cmiiw
Dyron
What's the best way for learn Django ?
If you are familiar with python, do the tutorial that comes in the documentation
Ashish
Aws course video
Mohsin
I have a query regarding template filters
Mohsin
I know we have first and last
Mohsin
What if i want to have inbetween
Mohsin
Item
Pedro
you could filter using att__gt and att __lt
Pedro
hope it helps
Yash
Is their any library I can use to view and import my model data in pdf or excel format?
Omair
Hey I would like to add some tweaks to this group's bot if someone could point me to the bot's repo
Batman
Is their any library I can use to view and import my model data in pdf or excel format?
https://django-import-export.readthedocs.io/en/latest/ Django import / export - Read the Docs
Mirco
Use LoginRequiredMixin instead of decorator with CBVs
Mirco
😊😊 yw
Sweetie
I have a very basic question about gunicorn for ease I will ask with flask. Example: I have flask main.py from flask import Flask app = Flask() do_something() if __name__ == "__main__": app.run() Now if I run this with gunicorn 3 workers will my do_something() run 3 times or only once?
Sweetie
3 times
Oh. Also say my app has a dataclass that I am using to stores some simple dict like data and it changes on api calls. Will that be unreliable? Like if worker 1 handled request I get different dataclass. If worker 2 handled I get different?
professor
is possible to change UserCreationForm password1 , password2 to password , password_confirm/
Daniel
Hi, how I can get the User_id, so I can filter my apps with the user, I created a ManyToMany with the User model
Anonymous
Could you tell me how to add css file in django
Daniel
Anonymous
Ok I will try tanks
Daniel
SB-admin 2 bootstrap with django,
Daniel
Could you tell me how to add css file in django
2:01 Integrate bootstrap template in Django 2 YouTube · Sukesh B R Jun 24, 2018
Anonymous
👌
professor
Do you mean changing its input label?
I mean as a json index , but I fix that
professor
https://stackoverflow.com/questions/59806976/django-forms-error-not-displaying-in-json
professor
the issue is not showing the errors
Cesar
With signals, does anyone knows how to get old values in caso of update?
Abhishek
UnicodeDecodeError at / 'utf-8' codec can't decode byte 0x92 in position 8366: invalid start byte. Error plz solve
Moon
I had this error when i had windows 7, I updated to 10 and everything is good now
Batman
It doesn't support pdf though :(
https://github.com/xhtml2pdf/django-xhtml2pdf xhtml2pdf/django-xhtml2pdf: A Django app to ... - GitHub
Ashlah
With signals, does anyone knows how to get old values in caso of update?
I think you can use pre_save signal and query the old values from db using the instance.id *pre_save signal is triggered before the updated value is saved to db
D4RK
Hi dear friends i want to export my data with in xls file forexample i use https://django-import-export.readthedocs.io/en/latest/getting_started.html
D4RK
Its worked but i i have problem
D4RK
#admin.py class ReportAdmin(ExportActionMixin,admin.ModelAdmin): list_display=('owner','location','report_type', 'created') list_filter=('status', 'owner', 'location','report_type') ordering=['-created', '-updated_at'] inlines = [ReportImageInline,ReportAudioInline,ReportVideoInline]
D4RK
This is my code but the export is only have foreinkey not value of foreinkey
D4RK
How can export this xls file with the value of fk?
Opeyemi
guys please i need help with a LITTLE problem, with checking if a user follows another user in a serializer https://stackoverflow.com/questions/59809813/getting-if-a-user-is-followed-by-logged-in-user-not-working
Batman
How can export this xls file with the value of fk?
you want to export the data from inlines too?
Carlos
Hola
Alex
UnicodeDecodeError at / 'utf-8' codec can't decode byte 0x92 in position 8366: invalid start byte. Error plz solve
Well, it says that the codec cannot represent the byte as a unicode character. Probably because it is not a unicode character.
cj
Hola
! English
Doragonsureiyā
Hola
Hi! This group is English-only. Please, translate your message into English or move to a group speaking your language. Thank you.
Philip
Hi, such a question. How can I display form errors in the template, created a validation in the console when calling form.errors they are displayed. I use ajax request and FormView
Anonymous
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 327, in read_response raise error AuthenticationError: invalid password
Anonymous
can whenever i make post request i got this error although i redise error
Sweetie
I am stuck with this problem: Question I am asking is about how to do something like this not about any specific library like django, flask or any other: I built a api with FastAPI (flask like library with asyncio) the api is working fine in dev environment with single worker. I want it to have a function def keep_do_something(): loop = asyncio.get_event_loop() for user in all_users: loop.create_task(some_task(user)) the api calls I receive will have some info about starting / stopping specific users loop. Or make some changes in it. How can I achieve it? As the app will run with many workers I cannot know which worker will receive which call. I am trying to achieve a global thing that all workers are aware of. Or shall I build two different api, one receive command from users that runs with multiple workers and send to another api that is responsible for making changes in task state and run the second task api with single worker. Is there a better way to do this? The tasks are actually socket connections not something that I can store in database and reopen when needed. It can only have one connection per user.
Sweetie
!offtopic
As mentioned I need a general overview on how to achieve this on a webapp. The api can be in Django or any library. It makes no difference. The problem is how to do this in a web app environment.
Mirco
As mentioned I need a general overview on how to achieve this on a webapp. The api can be in Django or any library. It makes no difference. The problem is how to do this in a web app environment.
I know it can be done in Django but you were talking about FastAPI and the topic would be gone in that way so our offtopic channel is better 😊
Anonymous
I use ckeditor to write and upload images, but I want to display only pictures, how do I do it ?, because the two are united, if {{post.content | safe}} text will appear too, I just want the picture to appear, please help friends
Anonymous
Can you please tell me how to tackle Operational Error at /admins page while adding new products in my project