Scrim
i cant
Scrim
have a lot of data inside there
Scrim
how can i backup data only
Ajay
Hi guys I am dockerizing django apps
Ajay
I need to upgrade docker compose
Ajay
What would be pip command
bahaa eddine
how to get all models in views and output them in a template
Nirupam
Hi, is there any body who do freelancing in django
Doragonsureiyā
Hi, is there any body who do freelancing in django
Please 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 a very high amount of people here the probability that someone will help is pretty high.
Also please read: http://catb.org/~esr/faqs/smart-questions.html
Humberto
Is it a good practice to resolve conflicts in migrations using the makemigrations --merge command?
Shreehari
Hey guys
When im using ManyToManyField in django, after saving, in admin panel it shows all the objects. Am i doing something wrong ?
When i use GET request to get that data, it showing only the required things i had sent through POST
snc
how to serializer two django models in one??
Rajesh
What is Meta class?
Rajesh
Why it's used for?
shekhar
how to regenerate access token using refresh token?
shekhar
snc
Why it's used for?
basically when you create model you don't want other end user to have access to all field.... for example you have model field
username, email, password, and staff status.
you don't want them to access or manipulate their staff status.... so you define in meta as
field=["username," email, password]
So what you are actually doing is manipulating the behaviour of model or class as your preference
shekhar
shekhar
i have access and refresh token of any user now using refresh token how do i get new access token (as it expires after 60 min continiously)
new
shekhar
shekhar
snc
Kane
try this https://stackoverflow.com/a/15380732/11528731
Anonymous
hi again ı need to give this price 17,50 comeing this error what ı can do ? Ensure that there are no more than 0 decimal places.
Rajesh
shekhar
Kane
snc
snc
because i don't understand what you mean by simple python
shekhar
Mirco
!ot
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Martín
anyone knows why I declare a
<form method="post">
but Django receives
request.method == 'GET'
Martín
that's abbreviated code, for the sake of clarity
Martín
this would be the real code:
https://hastebin.com/eqizuqafav.xml
Prakash
class EventPhoto(models.Model):
image_file = models.CharField(max_length=10)
is_active = models.BooleanField(default=False)
Mirco
Prakash
POSTMAN
{
"image_file": "/home/cp/Desktop/1.png",
"is_active": true
}
Prakash
I have this api for this above model
IS it correct way to pass request in postman?
its throwing error
Michael
Can anyone please help me I have a project I'm working on and would like to to accept payment in crpto currencies like Bitcoin ...someone should guide me through
Martín
cj
Martín
https://hastebin.com/emuxarihew.py
Martín
Django 2.2.7
Xavier
That should be a UUID object
Xavier
Instead of string
Sergei
Instead of string
I don't understand what you mean.
Because uuid is a string, not an object
Martín
Xavier
Martín
OMG, it looks like the action in the form doesn't work without final slash '/'
but the path() in urls.py doesn't work with that same slash
Martín
Martín
but I'm solving it tomorrow or later
Cheap
hello,
while trying to get ip of client, key remote_addr gives only ipv6 or ipv4 and not both, what is best way to get both of them if exists otherwise just ipv4 if ipv6 is not allocated.
cj
Martín
Martín
thanks
cj
I'm definitely looking into this tomorrow 😊
if you have defined on your urls.py an URL something like:
path("/upload/uploadfiles/", view=your_view(), name="upload-files")
then on the templates you should use:
<form ... action="{% url 'upload-files' %}">
Martín
a little more complex than that
Martín
and I surely can improve it
but I'm sleeping before that
Cheap
also namespaces...
George
Hi, i have a problem with celery, but specially with postgres
Some of my workers report that tasks weren't saved properly in the database or can't be fetched.
Is this because i have to delay a bit to wait for the database to save everything?
https://del.dog/ingagnopim.txt
George
Okay, so my problem was that each time i fucked up
George
I solved it
Ghorz
Ghorz
I use django-q
George
nice
George
seems like objects werent being deleted as they didn't reach the end of the program and then it misbehaves
Ghorz
George