Atul
Yes
Please make I need this one
Вова
HI guys, do you know how to get the raw html in post method?
Sayidbek
Can anyone made simple crud in django
Type this in Google, you'll get 100 links 🔗
Hoper
Can anyone made simple crud in django
Use creatview, listview, updateview and deleteview
Bought
There are many functions
🌀
1. I'm trying to get different ID's for different rows. 2. I'm expecting, when I press enter key next row should be added...and that row has different ID for each column...this have to happen for each time when I press enter key 3. I'm using django-ide vs code 1.65.2 5. Python version 3.7.6
🌀
https://dpaste.org/zP5o
Axror
Hi everyone. I have problem with mysql. access denied for my root user on django to mysql db. Why this occured? How can I fix It?
😒😒
I'm trying to create subdomains in my project but the libraries are not working perfectly 2 of the django subdomain libraries haven't been updated in like 2 years now So I'm trying to implement this customly Like capture a subdomain url and reverse it to my normal url for ex. Capture, name1.example.com, reverse to example.com/name1 I really don't know how to go about this
Vivek
How to acces the model custome model name on frontend
😒😒
How to acces the model custome model name on frontend
Its the name u called in ur forms.py😊or you can loop through the whole form and inspect it in the browser
Anonymous
My code is not working , who knows django
Charly
My code is not working , who knows django
This is a dedicated group for Django, just ask your question
Anonymous
Models.py Date = models.DateTimeField() Index.html: {% for post in all_posts_list%} <p>{{post.date}}</p> {% endfor %}
Charly
This code is not working
You'll need to be more specific
Charly
Yep
After this change
Anonymous
I have ran migrate too
Roman
Hello everyone, is it possible to somehow make the username field unique=False? otherwise the client requires that the user's status change after "deletion", but because of the status change, you can not register under the same name. https://prnt.sc/Vq0SnPgDW_5R
Charly
Who knows this?
The issue is the migrations
Anonymous
Anonymous
Python manage.py makemigrations
Anonymous
Python manage.py migrate
Anonymous
Here you go
Anonymous
Is this right
McLean
does folium have en map tile
Nandhini
Kindly please anyone help me I have done my modelling part on stock price prediction Now I want to do deployment using djanga Kindly please anyone help me humble request
Axror
Python manage.py makemigrations
You may do that ./manage.py makemigrations your_app_name. Then do migrate
☪️ جنت الفردوس
Libraries are not specific to server or desktop
ok thank you ! I found an other way to convert docs to pdf import pypandoc import docx
buneshwar
Hii i have some issue in serializer
buneshwar
I want to accept nested serializer
Doragonsureiyā
Hii i have some issue in serializer
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
buneshwar
From json file i am getting neted json data but iwant o store in single model in django Rest-Framework
Mr.
Hii i am not getting message name only getting "message object(3) "
Doragonsureiyā
Hii i am not getting message name only getting "message object(3) "
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Mr.
Message delete in room Meassage name instead of message object(3) Django
Andrej
Has someone experience in using Django on top of Kubernetes? The architecture and the used patterns are different from the past. The containers in Kubernetes are mostly stateless and it seems a good approach to use the CQRS pattern, instead of an usual relational database. Is there a best practice for it?
ask
hi everyone I want to create async view https://pastebin.com/GYmY4CJU but have some problems. In "result" variable i got [<coroutine object SyncToAsync.call at 0x7f051320bac0>] instead of values of result I need these values to use how can I fix it and did I write view correctly?
Enes
Hi I want to use cache on my web site to increase the fast of loading. But I don't know how to use caches in Djang. Suggesting any tutorial or video appreciated thank you
cj
Hi I want to use cache on my web site to increase the fast of loading. But I don't know how to use caches in Djang. Suggesting any tutorial or video appreciated thank you
by any chance, did you even read the documentation first? ¯\_(ツ)_/¯ just asking out of curiosity, because, basically all the things you can do with Django are covered in the documentation
cj
Yeah I have read but I want to learn with simples with examples
there are simple examples over there ¯\_(ツ)_/¯
Enes
there are simple examples over there ¯\_(ツ)_/¯
gosh if you don't want to help just don't help man. I was just kindly asking for a tutorial.
cj
gosh if you don't want to help just don't help man. I was just kindly asking for a tutorial.
and I kindly helped you giving you the documentation link where everything is explained and have simple examples... gosh...
Proton
Hello everyone Please is it possible to add a validation on an image field in a formset model As in models with foreign keys as formsets Mine doesn't seem to work even with the normal django validation on image fields Any help will be much appreciated
😒😒
Is there anyway I can publish a users details that I'm pulling from the db, so that an anonymousUser can see it ?
😒😒
Actually the main idea is that a user can build a restaurant and should be able to publish those restaurant details so that non users can see it But when I'm querying the restaurant, I filter based on users Been thinking of how I could publish the restaurant
Axror
i tried but it's not working
Can you share me your code?
😒😒
The user already has a preview page b4 he can publish
😒😒
But my query for the preview can't work for publish cuz of the user filtering
😒😒
No, what I need is for anonymousUsers to be able to see users restaurant details
cj
No, what I need is for anonymousUsers to be able to see users restaurant details
remove your filter then and allow everyone to access it ¯\_(ツ)_/¯
😒😒
If I do this, what about context variable and its queries
😒😒
There are more than one users
cj
So many details will clash
then you're doing things in the wrong way ¯\_(ツ)_/¯ you'd better then make a different view for anonymous users and a different view for authenticated users ¯\_(ツ)_/¯ unless you re-write all the things you're doing wrongly, that's the easiest thing you can do right now
😒😒
then you're doing things in the wrong way ¯\_(ツ)_/¯ you'd better then make a different view for anonymous users and a different view for authenticated users ¯\_(ツ)_/¯ unless you re-write all the things you're doing wrongly, that's the easiest thing you can do right now
Yeah I've done that already I have a view for authenticated users and a view for anonymousUsers The view for authenticated users works well The view for anonymousUser works but won't show any details cuz request won't return any current authenticated user
😒😒
I tried to onclick of publish button, save current users restaurant details to a json object Which would've work But the details keep overwriting each other, it's really annoying
😒😒
Guys?👀
Samuel
Good day guys, how can I set up a real time communication between Django and another server synchronously. I'll appreciate any ideas
Samuel
Please anyone with ideas... I really need suggestions
Doragonsureiyā
Please anyone with ideas... I really need suggestions
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Samuel
I'm building a covid 19 tracker with Django. I have to consume the API from another server on my Django backend. Is there anywhere I can have a synchronous connection system in Django that automatically detects the changes on the other server and revert
ask
hi everyone I want to create async view https://pastebin.com/GYmY4CJU but have some problems. In "result" variable i got [<coroutine object SyncToAsync.call at 0x7f051320bac0>] instead of values of result I need these values to use how can I fix it and did I write view correctly?
Maxim
hi everyone I want to create async view https://pastebin.com/GYmY4CJU but have some problems. In "result" variable i got [<coroutine object SyncToAsync.call at 0x7f051320bac0>] instead of values of result I need these values to use how can I fix it and did I write view correctly?
use await to get results P.S. it is worth studying asynchronous programming in more detail it's not about that particular question, but about the fact that it's pretty pointless to use something without knowing how to do it
B
Hello guys, which Django lesson is the best in the YouTube? Thank you for replying as soon as possible