Askhat
SqLiteStudio
Askhat
Download
عــمــر
Its good for the database or change it to mysql
عــمــر
SqLiteStudio
Thank you 🤍🤍
Yuvraj
SQLite Studio might be a bit heavy, try DB Browser for SQLite 3
Yuvraj
@owa14
عــمــر
Yuvraj
Alright
Arezoo
Hi .how can i add click_action on send_message firebase in drf? device.send_message(body=body,title=title,data=data)
Mirco
!ot
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Arezoo
it is related to django drf
Xeyyam
Hi who can explain why Django and DRF authtentication system different?
Xeyyam
DRF apps verry defferent from Django, it is like new framework
Mirco
DRF apps verry defferent from Django, it is like new framework
that's why it calls Django Rest Framework but at the end it's a Django app
Mirco
Hi who can explain why Django and DRF authtentication system different?
They are not different, you can use SessionAuth also with DRF
Krithika
How to fetch image from the folder that is not connected to database
Krithika
How to do this is there any sample ideas?
Krithika
What is the usecase
We have a some images in the folder ,have to fetch one image From that folder using python in django framework
Amit
Can anyone help me I have got error that virtual invormament in not activated
Ghorz
We have a some images in the folder ,have to fetch one image From that folder using python in django framework
You will write some functions that will search for the images in specified folder
Amit
Can anyone help me I have got error that virtual invormament in not activated
But I activated that even when I used my python interpretor then also I m getting that error
Ghorz
If you want the image sent to another server, you convert it to byte object
Ghorz
You can write it anywhere then call in when needed
Dinesh
Yes I gave it
did you add this line in project urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Dinesh
Yes
then what is the exact error u r getting
Krithika
Krithika
then what is the exact error u r getting
I'm not getting any error just now trying it
Krithika
We actually tried to fetch the image by using I'd
Krithika
But now I tried to fetch a image from specific folder but I can't do it
Ghorz
That would be easier
Ghorz
No
wait a moment
Ghorz
No
https://dpaste.org/8jd8#L11 The snippet contains two functions, the first will fetch your current working directory, the second can be used to search for files.
Ariel
Hello. How can i store data of who added/edited the record to the database?
Ghorz
Hello. How can i store data of who added/edited the record to the database?
Add a field to model 'owner' Use request.user to fill it You can have a history table, Each model should send sign to it on every update with actor, action, time
Doragonsureiyā
Hello. How can i store data of who added/edited the record to the database?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Holla
Model.py Class Cmdr(models.Model): text = TextField() admin.py from .models import Cmdr admin.site.register(Cmdr)
Holla
Shouldnt have to work
Holla
Oooh python
Holla
Wont even skip one space
M.Nazari
Hello friends, since yesterday, Django can no longer be downloaded for me Has it happened to you too ?? I asked a other people and it was the same problem for them🧐
VarunTheLord
Did you load static?
Tar
Any idea how to edit form class based before passing it to html (in views function)?
Tar
What u mean with edit ?
Lets say I generate a form based on the following class Class student(models.model): Name = charField.... Age = integerField Class class(...): Student ClassForm.... Form = ClassForm() I want to add the form additional field, lets say checkbox, for each student in the class (I did pseudo code in order to short the example)
Holla
Juste make sure that is there is assets folder homepage
Tar
I don't want to edit the model In just one view I want to modify the form But maybe I will make a number of forms ... It might be easier as you suggested
Antuane
i have this error when try to install this package django-auth-ldap 2.2. error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools
Anonymous
Which python version are u using
Anonymous
If u are using higher version 3.8 thts the issue
Antuane
Which python version are u using
I'm using 3.7, I saw this error in 3.9
Anonymous
Ya in higher version u will get that
Anonymous
Try to use with 3.6.8
Antuane
thanks,but i need to find other solution
Mirco
thanks,but i need to find other solution
3.9 is too much new , it's normal that some libraries are not supporting it yet
Mirco
Try using 3.8.x as it's mature now and most of libraries support it
Mirco
Bit im using 3.7
Yup, that's ok It will still be supported for enough time
D
Can anyone tell me how can i get multiple values for a single object for ex: i have orders table i am storing products as foreign key but i can store only one product which makes many order any ideas?
Diego
Hey guys, does anyone know if i can develop a django offline app and run the project in another machine that does not have django/python packages?(windows server)
Ledvir
Hi gays. I create app with Flutter in fronted and Django in backend. My proyect is whith MarketPlace and I need to put the geolocation of several stores. Please help me
Carlos
ould you be more specific on your problem?
ford
Hello friend Is it possible to use this when working with django tenants ''call_command('migrate_schema')" Cause am getting TypeError: Nonetype object is not Subscriptible