Mukhil
yes
how can post data without refresh page ?
Mukhil
if you don't mine pls send more details...
Dhruv
Can anyone recommend resources for django
...
Adding two charfield in single row in models py Plz any developers plz reply thiss In django models py
Arslan
Hello everyone, such a situation, who will tell me I have a method in serializers.py for validation, I wrote another one for the same validation and I want to know which one works faster and spends less memory how to do it?
Yameen
How to create model that inherits the Users
Yameen
Here User is the default User model provided by django.
Doragonsureiyā
How to create model that inherits the Users
These single steps will help you a lot: Step 1️⃣: Open a browser Step 2️⃣: Write down https://google.com or https://duck.com and press Enter Step 3️⃣: In the search box, write down the same words you asked here Step 4️⃣: Read the first results
◄█▓▒░ ♦ᴄʀᴇᴀᴛoʀ♦ ░▒▓█►
Can anyone explain what is the use of overriding create () in serializers and views in drf?
IM~Exynos
Which module is best for email OTP most secure, or is there any repo on this?
Siya
How to deploy python django project on a virtual private server? They haven't provided any terminal in their platform.
Chribita
Guys I'm trying to get in topics in a board But give me Page not found (404) No Topic matches the given query Request Method : GET REQUEST URL :http://127.0.0.1:8000/boards/1/topics /1 Raised by : board. views. topic_posts my URL is path('boards/<int:board_id>/topics/<int:topic_id>/', views. topic_posts, name ='topic_posts') And the views is def topic_posts(request, board_id, topic_id) : topic = get_object_or_404(Topic, board__pk =board_id, pk=topic_id) return render (request, 'topic_post.html {' topic' : topic
Chribita
Any solution please?
Hamza
Anyone know how add SVG image into imagefield
Maks
Does Anyone know where to find information how to upload to my database products by API from side supplier ?
OceanMan
Hamza
Just upload the .svg file
Can't add it to imagefield
Sayidbek
Can't add it to imagefield
What about other image types, can you add them?
Hamza
What about other image types, can you add them?
Yes the proplem is only with SVG image
Sayidbek
Yes the proplem is only with SVG image
How to embed an SVG image in a django template - Stack Overflow https://stackoverflow.com/questions/25954797/how-to-embed-an-svg-image-in-a-django-template
Chribita
Please any one help me
Chribita
I'm stuck in my shit
The Inspired
Can anyone explain what is the use of overriding create () in serializers and views in drf?
So that you can provide your own custom implementations of those methods... for example, suppose when you create a new user, you also want it to be present in a 'new' group automatically... default create() method cannot do that... so in that case, you will have to override it and manually write its implementation
The Inspired
Any solution please?
well, the error says it right there... "nothing found"... check your database to see if the particular id you are trying to fetch exists or not
Khushi
Best resource to learn django?
Doragonsureiyā
Best resource to learn django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Rakesh
Hi, I am new to Django, anyone know about promises in Django? If yes, kindly share the doc, or link.
Murat
Friends, I define a variable with the value of 2<sup>3</sup> in views and send it to the html file.
Murat
I want html to interpret this variable and print the result of 2 to 3
Murat
But I get the output 2<sup>3</sup>
Murat
Is there a way to get what I want?
Rahat
How to implement file encryption in drf
Murat
i did
Murat
views.py: var = "2<sup>3</sup>" html: {{ var|safe }}
Murat
thank you
True
#CORS Hi every one The question is when we route to somewhere in our React app, Reactjs codes request resources from Django rest framework... I don't get why CORS is an issue in this case!
Amin🎃
Hi friends I wanted an Excel file to guide me on the output on the display site. What package is needed and how to use
Vishal
the model is used as in intermediate model but it does not have foreign key to a model
Akhmadjon Akbarov
Hello who can help me with onlineshop?
Doragonsureiyā
Hello who can help me with onlineshop?
Not until you explain your difficulties.
Akhmadjon Akbarov
Not until you explain your difficulties.
I have got tables which are product(id,name), stock(id, productid, order(id, productid, quantity). If user make a order, Quantity of order is separated from stock table and save last data
True
@vikrant_kasera @Arefyazdi4 Thanks for your reply, there is no problem with implementation I've done it before, my question is about mechanism, i can not understand why it's needed with Django and react 🙏
vikrant
@vikrant_kasera @Arefyazdi4 Thanks for your reply, there is no problem with implementation I've done it before, my question is about mechanism, i can not understand why it's needed with Django and react 🙏
It raises the same error with angular as well https://stackoverflow.com/questions/44037474/cors-error-while-consuming-calling-rest-api-with-react
Rahat
How to remove data in payload
Ali Hasan
I have a situation where I have a table in a template that shows records from a model, the model has a boolean field. How can I change that boolean field for multiple records in the templates ? here is an example : Name quantity is_active X 4 [ ] Y 6 [✔︎]
Ali Hasan
I mean how to write the Form for it and what should I look for ?
Sleeping
Anyone please tell me how to add skills adding section in django where unknown user can add multiple skills
Mubassher
how to set pagination with viewset view?
Adarsh Shukla
Hi everyone can anyone tell me how to create custom user model and use its for token authentication by extending current user . To give fearture of login and signup without password.
xyz
Anyone can tell me sources for learning django
Doragonsureiyā
Anyone can tell me sources for learning django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Игорь
Hi guys! Can I generate __str__ for django model instead of writing boilerplate code with all object fields?
Smoke
How to send data from .views to user in real time?
Manheevak
How to send data from .views to user in real time?
https://stackoverflow.com/questions/56913676/dynamic-updates-in-real-time-to-a-django-template
The Inspired
The Inspired
Anyone please tell me how to add skills adding section in django where unknown user can add multiple skills
you will have to override the default django user model for that and create your own custom model for it. In that, you can have a skills field to store your skills
The Inspired
The Inspired
Musaddiq
HI, Anyone can tell me do django developers use swagger for api documentation or any other tool?
༒•Ⱨ₳Ɽ₴Ⱨ•༒
Hi everyone can anyone tell me how to create custom user model and use its for token authentication by extending current user . To give fearture of login and signup without password.
Create a custom user class that extends AbstractUser class. Now you can create multiple fields like email, mobile no., etc.
SN
Hi everyone, how to write a django model where I need to add details of multiple mobile numbers in django please help
SN
I want to write the owner's name and their multiple mobile numbers, it is possible to write many mobile numbers in the format of (+1, +92) XXXXX-XXXXX
Ali Hasan
set the boolean value in your views file
I mean how to set it in the template , how would the form be built ? Thanks for the reply
Jay
I have raised value error in My view but don't know how to display that message in template
Jay
Tried {{form.erros}} but not displayed
Jay
Alse tried messages
😅乛 𝐃𝐚𝐫𝐤𝐊𝐧𝐢𝐠𝐡𝐭 🚩™
Is_staff ...??
Rakesh
promise in django? you sure you talking about javascript?
I am talking about django python, There are some views, If I call the view which exports data from database its take some fews seconds to complete, But in meantime, if I click somewhere in the page, or move to any other page which calls other view, stops this export and starting calling the view which is requested recently. So, even if any other view is called, I want the previous view call to get complete.
Nikita
does anyone know how to call a static file in ajax in django? I want to create labels on the map, but I can't call the json file from the directory