Charly
that's why djasngo should not handle 500 error pages
cj
unless you play with those thing in the webserver side, e.g. nginx
Charly
but your webserver
cj
4XX errors: "User fucked it" 5XX errors: "You fucked it"
Javi
and one for just mp3 files
You can use FileField with FileExtensionValidator
cj
You can use FileField with FileExtensionValidator
*user uploads a .exe file with .mp3 extension*
Javi
ja, yes...
Javi
so, you can use the FileExtensionValidator + content_type == "audio/mpeg"
Paco
Hello everybody. I'm new in Django. Someone can tell why does the warning " '' should be object " appear in Firefox when I just make the "hello world" app ?
Rakesh
When I click on any link it gives me type error ...Got an unexpected keyword argument ..Is there any mistake in url path....
Rakesh
This link is not in main homepage
My url path is- path(' ',views.blog_home,name='blog_home'), path(' ' views.detail,name='detail')
Abdukakhkharov Yorkin
My url path is- path(' ',views.blog_home,name='blog_home'), path(' detail/' ,views.detail,name='detail')
Rakesh
Ok
Anonymous
does anyone know if i create order by login one user, that specific order will only display on the user tab...which method we have to use...
Rakesh
My url path is- path(' ',views.blog_home,name='blog_home'), path(' ' views.detail,name='detail')
Abdukakhkharov Yorkin
you missed , after 'detail/'😄😄😄 path(' ',views.blog_home,name='blog_home'), path(' detail/' ,views.detail,name='detail')
Abdukakhkharov Yorkin
check it again)
Abdukakhkharov Yorkin
My url path is- path(' ',views.blog_home,name='blog_home'), path(' ' views.detail,name='detail')
giving this kind of path for url is not correct cuz you cannot give 2 path for one url i mean this part path(' ', path('detail/'
Ayobami
Not working
What is your error code?
Rakesh
What is your error code?
Error Reverse for 'detail' with argument '(1,)' not found . 1 pattern tried
Ayobami
Error Reverse for 'detail' with argument '(1,)' not found . 1 pattern tried
I guess you are using a function based view. Let's see the views.py.
Fajar
hello guys, i'm new in django and i wanna ask some question. I try to deploy django in openshift, and i got some problem. I confuse should i ask this in openshift group or this group. i got error when i try to build my django. here is the log: Cloning "http://10.62.61.105:8081/fajarmn19/tes.git" ... Commit: 64337d85d4fe85679068953cdff5ce385e6affbb (Update settings.py) Author: *** <***> Date: Thu Feb 25 14:25:29 2021 +0700 ---> Installing application source ... Running post commit hook ... sh: cannot set terminal process group (-1): Inappropriate ioctl for device sh: no job control in this shell sh: ./manage.py: Permission denied error: build error: container "openshift_s2i-build_django-psql-example-2_django2_post-commit_602043d5" returned non-zero exit code: 126 what should i do to solve this error? Thankyou
learner
I want to install django on Linux production server. But it uses Python 2.7 If i update Python to 3.8 and install pip, django will it have any negative impact on production?
Idk
How do I pass a variable from input field to views.py in django ?
TheDoc
How do I pass a variable from input field to views.py in django ?
https://docs.djangoproject.com/fr/3.1/topics/forms/
Nurgazy
social auth with google,facebook
Mirco
social auth with google,facebook
python-social-auth or django-allauth
Anonymous
social auth with google,facebook
Search on YouTube you get many tutorial and use https for redirect uri search on google for https
Nurgazy
i can't find full tutorial
Doragonsureiyā
i can't find full tutorial
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
Mirco
i can't find full tutorial
https://learndjango.com/tutorials/django-allauth-tutorial
Nurgazy
i wanna make with django-rest-framework-social-oauth2
Mirco
i wanna make with django-rest-framework-social-oauth2
read their doc and start writing code
Abdukakhkharov Yorkin
Doragonsureiyā
yes but this is not logical bro)😄
I'm not your bro, bro; we weren't hatched from the same egg 🐍🥚
Mirco
yes but this is not logical bro)😄
obvs but it's not correct to say it's not possible in Django 😊
A
can someone help me with this issue? https://stackoverflow.com/questions/66455448/convert-html-form-data-to-pdf-in-django
Anonymous
I want user can fb page post through django app
Anonymous
I'm go through fb graph api
Anonymous
But how can i implement in django
Uday
so im working on an already built (horribly) project. a dictionary is being passed from api i need to get the value from key on template for example i need products["category"]
Uday
how can this be done on template?
Uday
if i just type product, im getting a dictionary
Uday
in template products["category"] = products.category
my bad i just checked, its give me list of dictionaries, i need to take value from a key only once
Carl
any good lib to take a screenshot of a website from my django app?
Rakesh
Same error
Rakesh
My url path is- path('',views.blog_home,name='blog_home'), path('<int:blog>/ ' views.detail,name='detail_page')
Anonymous
_init__() got an unexpected keyword argument 'name' How to solve this error
path('',views.blog_home,name='blog_home'), path('<int:blog>/ ' , views.detail,name='detail_page')
Erfan
Anyone knows why model.object returns id ? Name and name_id both same
Idk
Use a form
Thanks. It worked.
Rakesh
insert comma before views.detail
It's already there Sir
Rakesh
Rodrigo
My url path is- path('',views.blog_home,name='blog_home'), path('<int:blog>/ ', views.detail,name='detail_page')
Rodrigo
Install and configure flake8 in your visual studio code to find syntax errors
Rodrigo
Also please use autopep8 as formatting
Raj
Gys help me
Raj
When I type