Shaun
Django rest framework or what?
No. I am pulling json from a third party not having it pushed to me.
ᎯⅅℳℐℕℐЅᏆℛᎯᏆᎾℛ
Static files .CSS connect at html. No work...
Dishant
Static files .CSS connect at html. No work...
Might be issue with debug settings...
Shaun
Write your own utils, might have problem with escape characters when using deserialization 😀
Yeah that's whay i ended up doing. I stick a utility def in the models.py
Dishant
Yeah that's whay i ended up doing. I stick a utility def in the models.py
Haha! Great. I see, devs are working to clear this out in future releases.
Dishant
Django developer's google group.
Shaun
nice thanks
Islomjon
Hi guys
Islomjon
I wanna learn a django framework.that's why pls advice me.
Doragonsureiyā
I wanna learn a django framework.that's why pls advice me.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Nitish
AssertionError: Expected a Response, HttpResponse or HttpStreamingResponse to be returned from the view, but received a <class 'NoneType'>
Nitish
help me to resolve this error
Anonymous
AssertionError: Expected a Response, HttpResponse or HttpStreamingResponse to be returned from the view, but received a <class 'NoneType'>
It seems that your view expected type is httpresponse or httpstreemingresponse but your view got NoneType value
Nitish
my is_valid function is not working did you know the reason
Anonymous
Cesar
my is_valid function is not working did you know the reason
Can someone with telepathic powers answer here???
Nitish
What your is_valid function received ?
serializer = UserSerializer(data=data) if serializer.is_valid():
Nitish
What is "data"?
its a form data coming from api
Anonymous
its a form data coming from api
Inspect what is wrong with your data variable
Anonymous
its a form data coming from api
If you want real help from community your question should be full and complete
Nitish
i will take care from next time
Anonymous
i will take care from next time
You can register on stackoverflow and growth your question asking skill on it. It really good skill for developer
Anonymous
Video conversion flow for HLS (m3u8) with Django and CloudFront. I was trying to find out how to do something like HLS to prevent BEGINNERS from hacking my content, and I think I got it a little after researching all night. Currently, I know I have to do the following: - install ffmpeg - convert the video after upload (I think it will be this way) - send the files, and offer the link to the .m3u8 file (which will be together with the .ts files) The question now is: - I don't know yet how to set the cloudfront - I don't know if I will need to use signed urls / cookies - I don't know how to create the video conversion stream (I must use ffmpeg to convert and create the files, and then use the aws Python SDK to upload to AWS, and then change the video field, or even even delete the original video after upload, maybe in the save method?)
Василий
So documentation has to be your best friend 💪🏻
I solved this problem. Thanks for your help!))
Dishant
Daro
hi, i know this question is a little offtopic, but can u tell me some framework that works well with django, to design the page, i mean css,html and stuff
Daro
yes thanks but need recomendations
Mirco
yes thanks but need recomendations
There's no recommendations, choose the one you prefer
Mirco
If you like bootstrap go for it, if you like bulma or tailwind go for them
Mirco
It's up to you
Василий
I need help) I replaced the admin panel with Grappelli. Everything works fine on a localhost. But after downloading to the Heroku server, the server gives an error: at=error code=H10 desc="App crashed" method=GET path="/" host=new-testing-heroku.herokuapp.com request_id=aa6c2a33-8d39-46e8-95f6-60a3d4580f19 fwd="95.27.151.139" dyno= connect= service= status=503 bytes= protocol=https
Василий
What is the problem? I uploaded the static files.
Василий
2020-03-29T21:21:17.662056+00:00 heroku[web.1]: State changed from crashed to starting 2020-03-29T21:21:25.680993+00:00 heroku[web.1]: State changed from starting to up 2020-03-29T21:21:26.682002+00:00 heroku[web.1]: State changed from up to crashed
Vasya
Hi everyone, What is a default way to upload and attach files to model at one page (files have different model that is bend to main entity with foreign key). There are two ways I see it and both i dont like. 1) upload files one by one and return their ids and append them to main model form, after submit bind them to newly created model 2) at page load create empty model and update the model with files/fields So the first way requires to customize serializers and views a lot, second requires nullable fields in db, that may lead to currupted objects. I’m using drf for api, react for front-end things
Yacov
Can anyone help me, I'm sending a json to my api in django, {'stars': 3} but the api doesn't read it as a Json so I can't find the stars in the request, it show like is all one string...
Yacov
Yes
Yacov
Mmm the api sees it probably as a dict
How can I force the request to converte the Json tô a dict?
George
You are probably confusing something
George
Json is text
George
You decide how you interpret the text
Yacov
You decide how you interpret the text
Ohj thank you, I just figured out here, it was my headers that was like application/x-form-data
Anonymous
Hello
Anonymous
May I ask some questions about django?
Doragonsureiyā
May I ask some questions about django?
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 56k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
how can I write Django URL for get request?
Anonymous
with ID
George
how can I write Django URL for get request?
write? what do you mean? Like a view?
Anonymous
http://127.0.0.1:8000/api/v1/show/3923-2342-3234
Anonymous
for This api, 3923-2342-3234 is ID
George
http://127.0.0.1:8000/api/v1/show/3923-2342-3234
api urls are called through javascript normally
Anonymous
in django urls, how can I?
George
Anonymous
url(r'^show/$', views.show)
Anonymous
Is it write?
George
url(r'^show/$', views.show)
Have you read the django tut?
Anonymous
Not yet
Anonymous
I am a beginner :)
George
Not yet
Don't ask questions before reading the django tutorial jesus christ and the holy saints of ducking PYTHON DJANGO DOCUMENTATION
Anonymous
Ok, thanks for your advise
Doragonsureiyā
Ok, thanks for your advise
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
George
Do you understand that you are putting work on others that you haven't bothered to do yourself?
Anonymous
I did many googling but I didn't find out
Anonymous
I can see many examples from rest framework but those are not what I am looking for, ok?