Rishav
Manikandan
Mongodb django e-commerce models solution
Firdavs
how can i make audio recorder and save it to media? pls help me
Firdavs
DamnSon
are gifs banned here?
Sanji
I am trying to check if an item is in the list or not in jinja
Sanji
{% for user in users %}
{% if user.username|stringformat:'s' != request.user|stringformat:'s'%}
{% if user.username|stringformat:'s' not in friends %}
<form action="send" method="POST">
{% csrf_token %}
{{user.username}}
<input type="hidden" name="friend_name" value="{{user.username}}">
<input type="submit" value="Add Friend">
</form>
{% endif %}
{% endif %}
{% endfor %}
Sanji
is this the correct format ?
Sanji
it is not working actually
Ibrahim
AMIR
Hi
this is my question in stack overflow
can any one answer it?
Maxim
AMIR
Doragonsureiyā
No update occur
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
Maxim
No update occur
a more detailed answer is required
highly recommend checking out http://catb.org/~esr/faqs/smart-questions.html#intro
Anonymous
hi,how can i combine my model and User model?
I want to create a profile and I have used UpdateView.
please help me
AMIR
a more detailed answer is required
highly recommend checking out http://catb.org/~esr/faqs/smart-questions.html#intro
I want to implement soft deletion and so i define a is_deleted BooleanField for my model, and i override Model.delete() so it just set is_deleted to True on call,
and i want to override QuerySet.delete() so that it just set is_deleted flag to True for the given query_set
and here i want to use raw method to write an update query in SQL but when i run 👇 code
no update occur:
MyModel.objects.raw("update my_table set field1 = 'new val' where condition")
i want to know is it possible to update records using raw method?
if yes how?
Maxim
AMIR
Sanji
Anonymous
anybody ?
use else
check conditions
Anonymous
Amir
Anonymous
You mean something like sign up form?
I have created the sign up form
Now I want to define something as a profile for it
and to access the User fields and the fields that I added in the model
To display them as user profiles
I know how to create my profile with functions
But now I am using CreateView
Amir
Anonymous
Amir
Javohir
https://stackoverflow.com/questions/18343361/django-only-update-fields-that-have-been-changed-in-updateview
Can you help with this question guys?
Firdavs
hi, I make audio recorder in js but I cant save it to media. How can I fixed it Pls help me
Ras
Guys, how can i fix this TypeError: django.gettext is not a function. I use django 3.2.6 and django-jet-reboot 1.1.1
Ras
https://github.com/geex-arts/django-jet/issues/149 i found this issue. but can't understand what i should do
Firdavs
blob:http://127.0.0.1:8000/1a08b998-ee54-4eae-81ac-a2c34576fa97
this audio url how can I save to media with or without forms
Ted
Hi so im trying to get the id of my information but I keep running into errors
Kenechi
Mani
Hey,
I'm sending a request to a server, but I get handshake error sometimes.
Does this means that the server has got my request?
Or this error happened before the request sent to that server?
Kenechi
Anonymous
Kenechi
Hello
I need help with something
I'm trying to serve my django static files with aws s3, and I've sent it to the bucket I created and done all necessary configurations, the issue is that the static files refuses to load or show on my webpage, although when I inspect element, the URL of each file is showing, but not reflecting in the page
What is wrong...
Karlygach
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
ERRORS:
<class 'shop.admin.ProductAdmin'>: (admin.E108) The value of 'list_display[3]' refers to 'available', which is not a callable, an attribute of 'ProductAdmin', or an attribute or method on 'shop.Product'.
<class 'shop.admin.ProductAdmin'>: (admin.E116) The value of 'list_filter[0]' refers to 'available', which does not refer to a Field.
<class 'shop.admin.ProductAdmin'>: (admin.E121) The value of 'list_editable[1]' refers to 'available', which is not an attribute of 'shop.Product'.
Karlygach
Pranab
Hello guys, need one help in reverse relation in Django Rest Framework.
class ReviewSerializer(serializers.ModelSerializer):
watchlist = WatchListSerializer(many=False, read_only=True) // HOW CAN I GET IT WORKING ?
class Meta:
model = Review
fields = '__all__'
class WatchListSerializer(serializers.ModelSerializer):
reviews = ReviewSerializer(many=True, read_only=True)
class Meta:
model = WatchList
fields = '__all__'
KALOKOLA
Jose Javier
How do I sum dates from a property in the model?
Arya
any toturial for connect postgresql to django and how to use postgresql?
_karimoff_1904
as i deploy my django app it is showing :Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
Di
How to get values from html page to view without using form action
Luq
How can I create pdf on backend without using Css? Currently am using reportlab which needs css. I want to create pdf on backend and attach it to email and send to specific users
Nazrul Islam
Nazrul Islam
Дмитрий
Всем привет! Пытаюсь передать изображение из <input type=file> с помощью ajax. Но получаю ошибку Forbidden 403. Хотя есть {% csrf_token %} в <form>, и так же в ajax запросе.
Дмитрий
может подскажете что я делаю не так?
Дмитрий
Hello everyone! Trying to pass image from <input type = file> using ajax. But I get a Forbidden 403 error. Although there is {% csrf_token%} in the <form>, and also in the ajax request.
Дмитрий
can you tell me what I'm doing wrong?
Дмитрий
ok 😔
William
If you are using class-based views for multiple HTTP methods make use of get(), post(), put(), delete() methods.
Otherwise, create a new function for that.
Firdavs
hi, I get audio from dajngo models but I cant listen it because each one second ajax get data pls helpm e
Mirco
Harishwar......
Hey guys I am planning to design a chat Application where can I get some videos regarding chat Application.So that I can apply new features in it
Kasheef
How to make a low level design document ?
Firdavs
how can I get datas from dajngo via ajax when they change
Mirco
Siddharth
In views function i have defined rendering of page but it doesn't renders page
Maset
Siddharth
Pro
Im using symPy modeule in with im using Eq() method, and subs method.. i put some exterssion value like
exp= Eq(x-y)
A = 10 - y
Result = exp.subs(x, a)
It gives output as Eq(10 - 2*y, 0)
I just want that 10-2*y part in string format, how to do ??
Eng. A'ula 🇺🇬
class base views and function based views; which ones do you use and why