Rahat
In swagger multiple data post at a time
Александр
Hi all I have 2 django applications with blogs, and 1 with comments on posts. How can I register (link) a comment model to 2 applications at once?
Александр
I saw an example where they write “foreign key” twice, but if I add another application, I will need to add new fields again
Potla
I’m new in backend development and started django version 3 is it good or should I use other versions
Y
Django crud operation with details
Y
I am beginner of django I need guidance for creating a crud(create, read, updated, delete)operation
Y
Please help
Y
I am beginner of django I need guidance for creating a crud(create, read, updated, delete)operation
I also create some project but it's not connected any database So how can I connect database mysql, Sqlite3 Plz guide me
𝘴𝓲ꪀꪖ​
I also create some project but it's not connected any database So how can I connect database mysql, Sqlite3 Plz guide me
Sqlite is the default django database , no need to connect it or do anything fancy if you are a beginner...
𝘴𝓲ꪀꪖ​
I am beginner of django I need guidance for creating a crud(create, read, updated, delete)operation
Have you searched google or read any docs for this section? Watch a short youtube video about doing crud if you are not used to read docs... Looking for explanations here is more likely to get you confused
Oliver
I am beginner of django I need guidance for creating a crud(create, read, updated, delete)operation
Nishanth Siraj
Try very academy, Dennis Ivy, freecodecamp channels in YouTube
Nishanth Siraj
Today i watched Dennis Ivy's rest api with react js integration with jwt authentication video
nyctophile
Hey there! I need help with that error Reverse for 'user-profile' with arguments '('',)' not found. 1 pattern(s) tried: ['user\\-profile/(?P<pk>[^/]+)/\\Z'] It is occuring when I try to access room.host.id can anyone help with that
Potla
start with 4.2 no need to use 3
Can you tell me from where can I read and study django from?
morty
here is my files https://codefile.io/f/CR4Amv7Beh
Hey guy try to change the type of your pk in your url path especially for user-profile it’s not supposed to be an integer that you should waiting for ?
morty
Or also try to check if your template context have saved rom.host.id cause for some reason it’s return an empty string instead of number
Ali
Hi Is it possible to create webApplication (ex with django) to control or manage drone activity? Has anybody experience or knowledge about this?
Doragonsureiyā
Hi Is it possible to create webApplication (ex with django) to control or manage drone activity? Has anybody experience or knowledge about this?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Ds
Can anyone suggest me some good beginners level python django projects from where I can get?
Royalty
Hello guys , I have ONE Problem . There is Missing Module Source problem and I have no idea to fix it
Royalty
Who can help me ? I have some crypto like rewards
Charly
Who can help me ? I have some crypto like rewards
If you want to hire someone read the rule 10 specifically it's not allowed here. If you want help then share your issue details.
Royalty
Ok
KOT
Hello everyone. Question, when creating an instance of one model, through a form, I need a unit to be added to the value of a certain field of another model. I would be very grateful
Royalty
If you want to hire someone read the rule 10 specifically it's not allowed here. If you want help then share your issue details.
So , I create a new jango project , using “venv” , but I have a problem “Missing Module Source “ and I don’t know how to fix it really , course I tried a lot of
KOT
You can override .create method in model form Django or handle this in views
How to do it exactly in views? If possible, I'll give you my code, you could show it right in it
عبدالواسع
Is there a way to upload multiple images in Django using forms
I face the same problem I think the best way for now is to use formset_factory
pranav
Is there some video on django rest framework in which they have explained with the same examples as in official documents
Yujiro
Hello
pranav
why dont just go to the official documents?
At some points they are too much to grasp just by reading
m
Can npm be used to install packages in Django?
Charly
Can npm be used to install packages in Django?
How a javascript package manager would be used for python?
Anonymous
https://linkode.org/#Gd6jumE5ENWhhjTmgqqbk4
Anonymous
in the link above is my code pls i dont know how i will connect the random function to a field in my model called hospital_number in the model pls i need help
Anonymous
is am api pls
Ali
You can use signal or function in your model class.
Ilyosbek
hello I have task about create user register and login api with drf and simple jwt User can login email or phone number the problem is how can write customuser model USERNAME field i user onli one username or phone or email. In this case user write email or phone number
ashu
Hey guys I know this is not relevant this group I have django application which is show not secure on browser the SSL certificate is expired I am little bit confused can i update with self signed ssl or update with domain provider
ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ
Hello! The question is I need a third-party server to be able to access my Django server. I'm trying to send a POST request to a method like this: @csrf_exempt def add_new_contact(requests): if requests.method == 'POST': return JsonResponse({'success': True, 'data': requests.POST}) return JsonResponse({'success': False, 'data': requests.POST}) But in response comes this: <h1>Access error <span>(403)</span></h1> <p>CSRF validation failed. Request rejected.</p> How can I bypass the CSRF check for this particular method? Or maybe it’s worth adding a trusted domain that can automatically bypass this check?
Sandeep
I need step by step process of building line chat in python django postgre sql
cj
Not working
can you show the error messages? people don't read minds here
Mihir
Anyone know how to create model object for foreign key in django I am unable to save form using foreign key
Mihir
Use object instance fk_field = FkObject.models.get(pk=fk)
I want to create new form using foregin key How can i save user model object ?
Mihir
You shown for accessing saved object
Anonymous
pls i want to validate my patient date of birth in such a way that if a patient enter date that is beyond today it will raise an error pls can any one help
Suleman
hi, everyone, can anyone plz help me in getting components that required to build or develop a complete django based video chat app. Thanks
Charly
hi, everyone, can anyone plz help me in getting components that required to build or develop a complete django based video chat app. Thanks
We can't give you a list of components as we don't know the features of your app. i recommend you to deign you app in paper then do a little research on how you can accomplish that on django.
Neeraj
Hii I am have one error in my views anyone can solve
Doragonsureiyā
Hii I am have one error in my views anyone can solve
No one can help you until you explain your difficulties.
Neeraj
please check what issue while i submit form
Doragonsureiyā
please check what issue while i submit form
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://hastebin.com, https://nekobin.com, https://dpaste.org (or your favorite one)
Rathish
Hi friends, I need a python code to plot line chart in real-time update, with 15 seconds refresh. Thanks in advance
ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ
csrf_exempt should be enough. Did you imported ? And also if your view will only accept post method, also use require_POST decorator
from django.views.decorators.csrf import csrf_exempt @csrf_exempt def add_new_contact(requests): if requests.method == 'POST': return JsonResponse({'success': True, 'data': requests.POST}) return JsonResponse({'success': False, 'data': requests.POST})
Doragonsureiyā
Hi friends, I need a python code to plot line chart in real-time update, with 15 seconds refresh. Thanks in advance
We're not here to do your job for you. This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ
that 403 response error come from your server or 3rd party btw?
My Django server. I send requests via cURL in PHP. The response comes with a 403 error.
inchidi
so, your django webapp already deployed? maybe check everything properly reloaded (nginx, uwsgi) coz seems like you doing it correctly already