DamnSon
Hi guys I am learning django in order to switch my job . Any idea on what kind of projects should I work on to boost up my resume?
first read the docs at docs.djangoproject.com/en/3.2/ then try setting a simple html css and javascript website and work out on all the nitty gritties there are multiple tutorials on djangoproject.com and the web and once you're done with that then i suggest go all out and take on any project and try to see where you failed #hitandtrial
Manikandan
Mongodb django e-commerce models solution
Firdavs
how can i make audio recorder and save it to media? pls help me
Anshu
how can i make audio recorder and save it to media? pls help me
Create a file field in django model and then use any js library to record the audio, such as videojs and then simply send the recorded audio to the server for saving it
DamnSon
are gifs banned here?
Maxim
are gifs banned here?
no you just can't send them P.S. offtopic
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
AMIR
Hi this is my question in stack overflow can any one answer it?
Maxim
Hi this is my question in stack overflow can any one answer it?
what does "it doesn't work" means?
Doragonsureiyā
Hi this is my question in stack overflow can any one answer it?
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
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?
AMIR
did you read about migrations?
I did not realize that it is related to migrations🤔
Maxim
I did not realize that it is related to migrations🤔
true sorry maybe code that performs update does not get running
Amir
hi,how can i combine my model and User model? I want to create a profile and I have used UpdateView. please help me
You could create a profile model and add user field as a one-to-one field. Take a look at this link: https://www.ordinarycoders.com/django-custom-user-profile
Anonymous
anybody ?
use else check conditions
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
Anonymous
You mean something like sign up form?
I don't speak English fluently, I hope you understand what I mean
Amir
Thanks🌻
Your welcome🌺
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
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?
Ted
What error are you getting?
1 for positional requirement is missing
Anonymous
1 for positional requirement is missing
{% url 'detail_view' id=name.id %}
Anonymous
Good
🌻
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'.
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__'
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?
Doragonsureiyā
any toturial for connect postgresql to django and how to use postgresql?
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
_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
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
Am using reverse proxy NGINX with apache. Because static requests are handled by nginx instead of apache all images are not displayed on my pdf because apache is not configured to handle static files
Nazrul Islam
How to get values from html page to view without using form action
check my github projects https://github.com/yeazin
Дмитрий
Всем привет! Пытаюсь передать изображение из <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?
عبدالقادر
can you tell me what I'm doing wrong?
u r doing mistakes in ajax request pay attention to ur code carefully!
Дмитрий
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
Green Bear 🐻 📈
Use websockets
How to built one ? Any tutorials please
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
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