Askhat
SqLiteStudio
Askhat
Download
عــمــر
Its good for the database or change it to mysql
Yuvraj
SQLite Studio might be a bit heavy, try DB Browser for SQLite 3
Yuvraj
@owa14
عــمــر
Yuvraj
Alright
Mirco
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
Krithika
How to fetch image from the folder that is not connected to database
Ghorz
Krithika
How to do this is there any sample ideas?
Ghorz
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
Dinesh
Amit
Can anyone help me I have got error that virtual invormament in not activated
Ghorz
Ghorz
If you want the image sent to another server, you convert it to byte object
Krithika
Krithika
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)
Krithika
Dinesh
Yes
then what is the exact error u r getting
Krithika
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
Root
Ghorz
That would be easier
Krithika
Ghorz
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.
Krithika
Ariel
Hello. How can i store data of who added/edited the record to the database?
Ariel
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🧐
cj
VarunTheLord
Did you load static?
Tar
Any idea how to edit form class based before passing it to html (in views function)?
Mirco
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)
Mirco
Holla
Juste make sure that is there is assets folder homepage
Mirco
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
Mirco
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
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
Try using 3.8.x as it's mature now and most of libraries support it
Antuane
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
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