Professor
this is my code link : https://dpaste.org/JUqz#L8 I'm get an error of Reverse for 'genre' with arguments '('',)' not found. 1 pattern(s) tried: ['genre/(?P<pk>[-\\w]+)/$']
Professor
does anyone have idea of this error of solving plz help
Professor
Why are u using regex for this simple path ?
what should I write instead of that if not that?
Yash
what should I write instead of that if not that?
Can't you write it the same way you wrote rest of them?
Anonymous
Hi everyone, i have started to code on a chatbox and for that i am using the postgres database. I have used ajax request and have saved messages in db. But after the table has become heavy. It shows delay in loading a message. What could be a better approach? I have looked into the django channels and web socket. But it looks very fuzzy and kinda difficult to understand for me. Kindly suggest something.
Anonymous
A: Anybody can help me? I have a problem How to read data of forms input I uploaded a file now i want to extract the uploaded filename and save it to file_name (member of model class File) How can i do that Please somebody help me I uploaded file using model forms
Muflone
For urgencies the fee is 100$
Muflone
request.FILES['field'].name
Muflone
Hurry up now
Anonymous
Muflone
What?
urgencies have to be paid
Muflone
btw A doesn't seem to be still interested in having a response (or to tell thanks)
Anonymous
urgencies have to be paid
I don't see that in the rules
Muflone
in the rules there's not an urgencies service
Anonymous
You advertising your own services?
Muflone
it could become an interesting business
Anonymous
Read rule number 3
Anonymous
https://t.me/PythonRules
Anonymous
You gonna get banned bro
Muflone
... you're not very smart
Mirco
Mirco
He's just joking
Mirco
Because here there's no "urgency"
Mirco
If someone is free and have time to answer, he will do
Anonymous
I know... If I really thought you were "advertising", I'd report you myself lol
Muflone
(and wants to help)
Anonymous
No hard feeling lol
Anonymous
feelings*
Anonymous
Why Django? Why not Node or PHP?
Anonymous
Don't answer about PHP. I hate it
Muflone
I was asking why Node or PHP? then I moved to django
Mirco
Why Django? Why not Node or PHP?
Why you wanna use a simple bike when you have a Ducati motorbike ?
Anonymous
True lol. BTW one reason I don't really like PHP is that all languages would evaluate "0" as truthy since it's a non empty string, Not PHP. There's a specific case for that to evaluate false
Anonymous
When I did a project for college, that "feature" kept me up till 3am
Vaibhav
Hey any one can help
Vaibhav
I want to build a spotify clone
Muflone
sure, go ahead
Anonymous
Speaking of Spotify, does Django Channels support streaming media? Video and/or Audio?
Anonymous
If it does, Vaibhav that would be some sort of starting point. Figure out how to stream content from Django as apposed to downloading entire files
Cheap
https://prnt.sc/s72lzw Facing this error with gunicorn any help would be appreciated
Cheap
searched a lot but not able to find relevant solution
Code
@cheapgemmer either your base.html (if you have one) is screwed up, or you webserver(nginx/apache) is misconfigured
Code
..or firewall. are you using Cloudflare or something? if so, temporarily disable it for testing
Cheap
nah, i am just gunicorn at port 80 but its giving same error on dev settings( rendering static local) abd production settings ( rendering static from s3 bucket) ? i am stucked so badly
Cheap
@cheapgemmer either your base.html (if you have one) is screwed up, or you webserver(nginx/apache) is misconfigured
i don’t have base.html, but have few html files as usual, and how do i know if i scrwed them up? its most likely part of bootstrap template
Ninja
Hey , how i solve my SMTP authentication error
Ninja
Its shows when i go for register new account,i did all the settings like less secure app=on ,app password but still facing this problem
Ninja
Someone help me for this
CX
Prerequisites before learning django
Ninja
Prerequisites before learning django
If uh have solution then tell me
Prakash
I am writing a tese case for my API but when I run Python manage.py test It starts creating separate test_db And it is taking too long because there are more then 100 tables I just want to run test
Prakash
3.0.5
Муродали
i have a question about media in django
Cheap
3.0.5
there was some function like multi_db=false but i think django deprecated it since 2.2
Муродали
i have a question about media in django
the picture is coming from database but not shown in browser🤷🏻‍♂️
Муродали
who can help me?
Муродали
yeah i did
Муродали
are you from uzbekistan?
Муродали
oka djangoni yaxshi bilsez yordam qivorin shunga oldin bunaqa problem bomasdi manda qattadir xato qilganman topolmayapman )
Prakash
try test —keepdb, it will not destroy test db after test are completed and hence can be used again
Thanks bro Atleast it will save my lots of time Because without --keepdb Everytime it's asking to drop db and create again to continuetest
Prakash
Okk.. I will try it👍
Муродали
Jeevachaithanyan
One more doubt, django websites are mobile responsive by default ?
Cheap
@cheapgemmer hi, what do u think about it?
check media root, inspect browser developer tools and search for specific error. need more context
Aneesh
Anyone know how to add a button to create/edit admin page