ᴹᵃᵏˢᵃᵗ
I try but not find any usefull
In search field simply type "post data using fetch api"
ᴹᵃᵏˢᵃᵗ
geeksforgeeks site
cj
I try but not find any usefull
because "normal" people don't use POST to fetch data 🤷🏻‍♂️
Aman
because "normal" people don't use POST to fetch data 🤷🏻‍♂️
Yeah man you are right but I'm working on banking domain and they requested my team to use only POST API
Aman
That's why I'm little worry
cj
Yeah man you are right but I'm working on banking domain and they requested my team to use only POST API
well... tell them that using POST wont give them any additional security things if they think that way 🤷🏻‍♂️
cj
POST requests are not encrypted... what is encrypted is the use of SSL/TLS (known as https)
cj
using SSL/TLS you're sure that any POST/GET/any-other-verb is encrypted
Aman
well... tell them that using POST wont give them any additional security things if they think that way 🤷🏻‍♂️
You know that client don't understand all that things ...but they want so I'm trying and some RND
Jo
in your urls.py file
trying to fix my views but always get the same error when i change news.id to a number the issues is fixed
Jo
ok
Doragonsureiyā
ok
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
Jo
?
Doragonsureiyā
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
Jo
sorry someone could help me how to share my code .
ᴹᵃᵏˢᵃᵗ
ᴹᵃᵏˢᵃᵗ
Try dpaste with color
ᴹᵃᵏˢᵃᵗ
with the link ?
Yeah just one link should be in this chat
Jo
https://dpaste.org/SYy0
Jo
is it ok ?
Jo
NoReverseMatch at /theme/ Reverse for 'news' with arguments '('',)' not found. 1 pattern(s) tried: ['theme/(?P<news_pk>[0-9]+)$']
Jo
get this error
ᴹᵃᵏˢᵃᵗ
is it ok ?
Cool. Now Admin see normal indented code
Jo
and don't know why
ᴹᵃᵏˢᵃᵗ
You're welcome
Bati Chokha
*Unable to import osw " tell me solution of this anyone
Bati Chokha
*Unable to import osw " tell me solution of this anyone
Bati Chokha
Hello
Bati Chokha
Anyone
Jo
did someone look my code
Jo
always try to understand where i get the issue
Artem
path('<int:news_pk>', views.article, name='news'), Probably problem in url? Try to add path(‘article/<int:news_pk>’...
Sweetie
I have an app with tables: A B C D I want to have another app: Person which will be a member of either A or B or C or D How to model it?
Jo
try to work with cascade and foreign key
Jo
first import models of your first app in the second app
Sweetie
try to work with cascade and foreign key
I will need to have 4 foreign keys with null=True?
Sweetie
My originals tables in app 1 may increase in future to E F G H So it looks like a bad idea to have foreign keys directly in Person table.
Jo
My originals tables in app 1 may increase in future to E F G H So it looks like a bad idea to have foreign keys directly in Person table.
you want to connect your first app to second one . person could be able to join to group isn't that ?
Izbash
Give me a hint. I develop online shop with DRF, all images for items will be added in admin page, where should I store item images in static, or in media, or doesn't matter ?
Jo
https://dpaste.org/SYy0
did someone read my code please
Jo
url
Sweetie
# group models class A(models.Model): name = CharField() class B(models.Model): name = CharField() # group models end class Person(models.Model): name = CharField() group = ForeignKey() class Communication(models.Model): to = ForeignKey(Person, related_name="received") from = ForeignKey(Person, relwted_name="sent" I want to have 1 table that stores all person no matter which group they joins.
Jo
you create one group and many choices
Sweetie
why note use choice in your group models ?
Because A has multiple sub groups. And person are being linked to a sub group available inside those groups A B C or D
Jo
ok
محمد دلشاد
https://dpaste.org/bLTL#
محمد دلشاد
help me
محمد دلشاد
code just work fine but as i introduce json.loads(request.body) i get an error
محمد دلشاد
POST http://127.0.0.1:8000/update-cart/ 500 (Internal Server Error) updateUserOrder (anonymous) 127.0.0.1/:1 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 Promise.then (async) updateUserOrder @ (anonymous) --------------
Jo
https://dpaste.org/SYy0
please someone help me still not working
Cesar
!spam
George
!spam
Use !report
Cesar
Use !report
Thanks 👍
sarang
How can I convert for item in cart.product.objects.all(): to jinja
Anonymous
Is there any way to open pdf that are store in the media folder on html page and put symbol like right and wrong on pdf and then again sav it In django,
Anonymous
If I am store the login credentials of all the user in User table of django then if we deploy the website on web so "Can multiple user login at same time"?
Aditya
Has anyone deployed open cv deep learning model using django? Any repos on how to deploy a model which uses webcam in real time and pass to the model for further classification
Aneesh
Is it possible to add delete button to every model list In the admin page Please help
Xavier
it is
Aneesh
How
Xavier
How
https://avilpage.com/2016/03/django-tips-make-deleting-easy-in-admin.html