Deepak
Is it secure
Deepak
If I don't use form
Anonymous
Are you trying to delete the object from your home page ??
Deepak
Yes
Deepak
There is delete button
Deepak
When I click that then it should be deleted without going on different page
Anonymous
Try creating a template for delete page... And in home page set the form action attribute as that delete page url
saran
Need to convert html to PDF which contains Arabic font, any options. I tried xhtml2pdf. Didn't work. Any one know.
Deepak
Anonymous
Let me check
Deepak
def delete_place(request, pk):
city = City.objects.get(id=pk)
city.delete()
return HttpResponseRedirect('/')
Deepak
this is the solution
Deepak
btw is it secure way to delete any object
Deepak
?
Anonymous
no it's not
Deepak
hmm
Jai
Jai
Deepak
saran
Anonymous
I'm checking
Jai
Deepak
but that was working
Deepak
ok
Abubakr
hi there, i have issues with supervisor while deploying, can anyone help?
i'm getting such in log:
...
CRIT Server 'unix_http_server' running without any HTTP
authentication checking
...
INFO exited: gunicorn (exit status 3; not expected)
...
Anonymous
how to add radio field in django model
Anonymous
Please anybody help me, I want a JavaScript code which allows the phone camera to capture the pics automatically and then send back it to the server.
Gil
Maybe better other channel 😜
5P34R
What's the difference between channel1 and channel2
Andrej
Django Oscar
Mirco
Saleor ( if you know GraphQL and React )
Jamil
Does the serializer always return the object that has been created
Jamil
Or do the mixins do this?
Jamil
for example, when I am using a mixin
ROG 💻
Where can I buy good Python books on design patterns, testing and good practices?
Nasir
#ASK in Laravel I usually use cPanel or Webuzo, how about Django?
Vibhu
Hey, anyone please help me.. code for line chart accessing database
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Frank
Google first.
Frank
You can describe the way you installed django and the error you meet.
Pratik
Heyy !!I'm working on password manager website..My idea is that person who has account in database will have specific user id and he can add his site and belonging password record into database.And if he don't have that account ,he will create one and another id will get generated specific to that user.I have worked till user authentication system.Now whenever user logs into system ,form appears with site name and password field..but from that form i want to return to specific view fn with all records in that form and user accound id..i am able to fetch only site name and password but how can i transfer userid also?
Anonymous
Please anybody help me, I want a JavaScript code which allows the phone camera to capture the pics automatically and then send back it to the server.
Anonymous
Anonymous
Anonymous
When the user login then the login authentication signal will call and you can receive it and perform specific task
Pratik
maroong
I want to create an appointment model between users not in a group and specific users in a group. I want the users to be able to specify who exactly in the group they want to create an appointment with. User ->Appointment(time,place) ->[user2,user7] I want the specific user in the group to also know which user created an appointment
Anonymous
Anonymous
rizen
Hey guys is it necessary to use react + django for good looking webapps can't we just use html/css + django?
Or is there any benefit in using react + django than plain html/css + django?
maroong
Make custom decorator
Can you explain a bit. I don't get how a custom decorator would solve it.
Jai
Custom Decorators To Check User Roles And Permissions In Django | by MicroPyramid | Medium
https://medium.com/@MicroPyramid/custom-decorators-to-check-user-roles-and-permissions-in-django-ece6b8a98d9d
Jai
Viktor
Good afternoon!
Please tell me which way to look. There is a task to make an app for tracking employee breaks and Lunches. The app's functions will not be particularly complex:
1) When a person goes on a break, he puts a check mark, the status "on break" appears and everyone else sees that he is on a break, therefore, it is not possible to go yet. When it returns, uncheck the box and the next person can go.
2) at the moment when it puts a check mark, the time begins to count, more than 15 minutes, its status begins to light up in red.
3) Also made with Lunches, only there is a time of 1 hour and there can be two people at once at lunch.
The questions are as follows:
1) is it Difficult to implement this on Django? If not, you can at least roughly outline the model/architecture.
2) Perhaps someone knows applications with similar functionality in Python?
Thank you all in advance for your answers!
Mirco
Good afternoon!
Please tell me which way to look. There is a task to make an app for tracking employee breaks and Lunches. The app's functions will not be particularly complex:
1) When a person goes on a break, he puts a check mark, the status "on break" appears and everyone else sees that he is on a break, therefore, it is not possible to go yet. When it returns, uncheck the box and the next person can go.
2) at the moment when it puts a check mark, the time begins to count, more than 15 minutes, its status begins to light up in red.
3) Also made with Lunches, only there is a time of 1 hour and there can be two people at once at lunch.
The questions are as follows:
1) is it Difficult to implement this on Django? If not, you can at least roughly outline the model/architecture.
2) Perhaps someone knows applications with similar functionality in Python?
Thank you all in advance for your answers!
No it's not difficult if you have experience
Shreehari
Hi
I have created two apis, In which one has tags assigned(django-taggit).
In another im returning all those objects of a particular user. Here its not returning tags field. How can i return it with respective objects ?
videos_data = list(Video.objects.filter(uploader_id=user_id).values())
This is how im getting objects.
Jamil
I am using POST request to add an image to an object in the database. Wouldn't I be updating the field.... Why is the tutorial I am watching using POST
Shreehari
Jamil
yes but in this case
Jamil
he is using post
Jamil
the guy in the tutorial
Jamil
to update an object with an image
Shreehari
sorry man
i dont know whats happening in the video you are watching.
Jamil
what is the difference between using post and put/patch to update
Jamil
It is possible to use post even to update, but I don't understand why this guy is using post
Jamil
put full update
Jamil
patch partial update
Jamil
post ?
Jamil
i know its used to create but can also be used to update
ZK
How can I dynamically get the first image from the post written in mdeditor
_dvd
Is it possible to specify the size of an ArrayField based on the value of a related model field?
web
How can i do form for booking system by django ??
nearly like ( booking website )? So the two dates fields have relationship together ; one for go date and anothor for return date ?
Please give me link or youtube channel or book that explain this . and how i show calander that customer choice the date from it .. ?
Thanks
~~~
I changed timezone in settings..but it shows the same as before(default)...how to change it?
Rian
Good day folks, is there anyone here who have succesfully built a cryptocurrency exchange using django?
Rian
Anonymous
Hi, how can I fix the 'thumbnail', expected 'empty' or 'endfor' did you forget to register or load this tag?