Val
Anyone online???
Anonymous
yeap
Val
yeap
Need some help on django project.
Anonymous
Say it
Val
i am trying to work on a project that can enable user input on the search_input and it brings out a search repository from a github api as created in a descending order
Val
the codes is up and running with the help of my friend inchidi but i just found out the created date have to be in a descending order.
Val
the picture is an example see as the created date is in descending order..
Val
now this is my own the created date is not in descending order
Anonymous
You should use correct function to format output
Anonymous
What class you use?
Anonymous
Or models.DateTimeField?
Val
Or models.DateTimeField?
that is the code above
Val
Re-writing it to be give out a created date in a descending order 😊
Val
Show me your Model define
Didn't use that. The pic I sent is my view.py that is linked to my index.html
Anonymous
Where is date?
Val
Where is date?
I'm extracting information from a github api
Anonymous
So you translate format
Anonymous
Use your date to make a date object, than output
inchidi
looks like your sort parameter for github api not working https://developer.github.com/v3/search/#search-repositories
Val
looks like your sort parameter for github api not working https://developer.github.com/v3/search/#search-repositories
"https://api.github.com/search/repositories?per_page=5&sort=created&order=desc&q=" +str(query) Use this still did not work ah
Anonymous
what 's django girls ?
Lapanit ☃️
a django tutorial web page
Anonymous
thx, i thought django became sexist
inchidi
lel
Anonymous
what 's django girls ?
It's quiet bad actually
Anonymous
bad for experienced programmer who don't know python or guys who already know python
Anonymous
Given really generic explanation, which technically is wrong sometimes and or wrongly explained
Anonymous
really new people to programming
Anonymous
Well, I read it quiet a time ago
Anonymous
Well, I read it quiet a time ago
I read it few days ago. It's simplicity that make it ez to understand. Just like python philosophy,"clear readable syntaxist. One other important thing, it's up to date, doesnt depreciated like the one on tutorialspoint.
Anonymous
I think it's too simplified
Anonymous
I think it's too simplified
Why dont u try make one with more advance.
Anonymous
I am not enough advanced
Anonymous
😂
Anonymous
but,
Anonymous
djangobook.com
Anonymous
is really great
Anonymous
explains a lot of things
Anonymous
Val
please everyone i have a problem and here is it: why is https://api.github.com/search/repositories?per_page=5&sort=created&order=desc&q=django not give you sorted result" ????
Anonymous
sorted with respect to
Anonymous
what are you trying to do and say?
Val
i am using django
Anonymous
well, it is returning sorted result
Anonymous
DO what?
Anonymous
access what it is returning?
Anonymous
I dunno what are you doing?
Val
this is what it is giving me
Abhi
anyone had embedded youtube video player on simple html page ?
Abhi
i am trying to use iframe with simple 'youtube link'
Abhi
but getting the error Refused to display 'in a frame because it set 'X-Frame-Options' to 'sameorigin'.
inchidi
i am trying to use iframe with simple 'youtube link'
how is your youtube link looks like
Abhi
https://www.youtube.coms/watch?v=o8YOnfxGLPoasd
inchidi
try https://www.youtube.com/embed/o8YOnfxGLPoasd
Abhi
i found that i can only use embedded link
inchidi
nice
Abhi
one more thing
Abhi
i want to make something like when a user has connected his facebook, i want it post directly
Abhi
with any asking for permission
inchidi
with any asking for permission
afaik you cant do that coz social api always ask for write permission
Abhi
i once was solving codechef
Abhi
and when i solved a question , it automatically posted on my facebook
inchidi
hmm, thats first post from codechef?
inchidi
i think they will ask user permission at least once
Abhi
yeah,
Abhi
but how do i overwrite the pemission
Anonymous
Welcome
inchidi
#starterpack
Group Butler
#starterpack
New to Django? here is some resource to start Official docs tutorial Step by step tutorial Video tutorial Another video tutorial Books Django by Example Tango With Django
Anonymous
is using angular with django will replace templating in django ?
inchidi
is using angular with django will replace templating in django ?
yeah, because technically you gonna using REST or/and angular view coz angular has its own view
inchidi
your django just gonna give JSON data and your angular / another front end framework work with those datas
Anonymous
wow lastly i am ditching jinja!!!