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
DK
What would be pip command
pip install --upgrade docker-compose
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?
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
snc
any resource for it?
authentication tokens?
shekhar
authentication tokens?
yes access token
snc
yes access token
can you explain your problem little bit more?
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)
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.
shekhar
try this https://stackoverflow.com/a/15380732/11528731
is there any blog on simple python,as my project is simple python
shekhar
Kane
snc
because i don't understand what you mean by simple python
Mirco
i'm using flask
So it's better to move to the off topic group
Mirco
!ot
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
snc
i'm using flask
bro no experience in flask :/
Mirco
bro no experience in flask :/
No worries, it's not the place to talk about Flask
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)
Doragonsureiyā
class EventPhoto(models.Model): image_file = models.CharField(max_length=10) is_active = models.BooleanField(default=False)
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
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
anyone knows why I declare a <form method="post"> but Django receives request.method == 'GET'
I think Django is transforming the POST into a GET, because Firefox shows the sent request as POST
Martín
https://hastebin.com/emuxarihew.py
Martín
Django 2.2.7
Martín
Django 2.2.7
Just in case
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
I don't understand what you mean. Because uuid is a string, not an object
No it's not The error says it expect UUID object
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
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
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
🤔 you'd better use {% url 'url_view_name' %} on templates instead of hardcoding the URL manually
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
cj
a little more complex than that
that was just an example, but you should use url-names on templates instead of hardcoding manually the URL on templates
Cheap
also namespaces...
cj
also namespaces...
yes, definitely yes
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
I use django-q
George
nice
Ghorz
I use django-q
Simple and quick
George
seems like objects werent being deleted as they didn't reach the end of the program and then it misbehaves
Ghorz