🏳️‍🌈Robby [ Private Message = Spam]
what about expiration of token
They expire on their own.
Manish
Manish
expiration time.
🏳️‍🌈Robby [ Private Message = Spam]
how to set that?
It's set by default
🏳️‍🌈Robby [ Private Message = Spam]
https://jwt.io <- Read up on JWT works
inchidi
non expiring token are more dangerous than jwt
i dint get what you mean, do you think you cant make token based auth expired?
🏳️‍🌈Robby [ Private Message = Spam]
i dint get what you mean, do you think you cant make token based auth expired?
if you're doing token-based auth and storing it on the db — then the way you expire the token is to delete it from the db
🏳️‍🌈Robby [ Private Message = Spam]
JWT's stateless nature is what makes it handy — no need to store it
inchidi
yeah this is what i meant.
the basic diff between JWT and normal token are JWT not stored in db to make it stateless, while normal token stored. so by checking creation time of the token, you can define token expiration
inchidi
Manish
@Inchidi i got your point.
🏳️‍🌈Robby [ Private Message = Spam]
Manish
JWT handles this
not for jwt @robbyoconnor i was asking
🏳️‍🌈Robby [ Private Message = Spam]
Manish
BTW thanks mate.
🏳️‍🌈Robby [ Private Message = Spam]
You COULD do a hash of: current time stamp + email address + some secret only you know to create an opaque token :)
🏳️‍🌈Robby [ Private Message = Spam]
woah that sound super secure😂😂
There's a part that only you know, so unless that is compromised...
Shekhar
I want to upload an audio file and compress in into <64kb wav file in django..Is there any library in python for that??
Shekhar
pymedia
Shekhar
django-audio
Shekhar
django-audio
this one is useful but in windows it's painful
Shekhar
django-audiofield*
Anonymous
Php or python ? for web development
🏳️‍🌈Robby [ Private Message = Spam]
Puranjay
Does anyone know how to make a binary search tree view in html file ?
Sulistyo
anyone can give me a link who review autocomplete input
Sulistyo
sorry bad english
DmitryKyd
Hi! Does somebody know, how to turn off context menu in django-ckeditor last version? I tried to remove plug-ins which demand the context menu, but it didn't work.
Jatin
I want to develop a eCommerce site.so, where to learn frontend for django backend. i do know html,css, JavaScript.
Mohit
Anybody has experience with Facebook graph api
Mohit
I want to edit the page info of the pages owned by user
Mohit
Facebook graph api not working with django 2.2
Aadhi
Can be able to use list view and detail view between two models?
raven
can you elaborate it?
Aadhi
can you elaborate it?
Actually I have two models called Team and players. My first aim is to display all the teams which are currently registered. That is from the Team model Secondly when a user click on the team name (from Team model) I need to display all the players associated with that particular team. Here players details has been stored in Player model.
raven
its easy 👍
raven
there might be a foreign key relationship between those models
Aadhi
Make a detail view for Player and use links in your Team list view
Okay. Then we can use list and detail view for multiple models right
Mirco
Okay. Then we can use list and detail view for multiple models right
You can build list and detail views for every models you want Your doubts are just about joining them
raven
👍 it will fetch all the thing from that model ( team ) using pk and give a detail view .
Aadhi
Okay thank you so much both😊😊😊
Mirco
yw 😃
Puranjay
In jinja template how to change the value of a variable
Puranjay
I have declared that using 'with' tag'
Mirco
I have declared that using 'with' tag'
? the value should be changed on python side
Puranjay
I want to change it in jinja only(because i am declaring it in jinja)
Puranjay
Like {% with i=0 %}
Puranjay
I want to increment i
Mirco
I want to change it in jinja only(because i am declaring it in jinja)
that's not the right way imho template should just render data, make calculations on backend side and pass it to template
Name
Hi to all
Name
I have an gunicorn.errors.HaltServer Can anyone help me please to solve it
Mohit
Easiest way to setup. Django running with angular 6 frontend?
Dairon Ian 
Hii
Dairon Ian 
I got a problem, I’m trying to import data from an excel with openpyxl library, so I can’t to get the value of some cell which are referenced to another sheet
Jimmies San
I have an gunicorn.errors.HaltServer Can anyone help me please to solve it
check the wsgi fiie and if you're loading it in the right way
X
jinja2.exceptions.TemplateSyntaxError: expected token 'in', got '.'
X
Anybody?
Name
check the wsgi fiie and if you're loading it in the right way
Thank you for reply. I can run the script manually and use the page via 8000 port
Name
But when I’m trying to run with gunicorn then the script stops to working
🏳️‍🌈Robby [ Private Message = Spam]
Name
Logs tell there is a keyerror with getting env variable
X
jinja2.exceptions.TemplateSyntaxError: expected token 'in', got '.'
X
Please Help
🏳️‍🌈Robby [ Private Message = Spam]
Please Help
https://www.google.com/search?q=jinja2.exceptions.TemplateSyntaxError%3A+expected+token+%27in%27%2C+got+%27.%27 Google errors.
Jimmies San
Please Help
cmon people try to google a bit before to ask
Jimmies San
just paste the error on browser and surf a bit
🏳️‍🌈Robby [ Private Message = Spam]
cmon people try to google a bit before to ask
They don't ever do that Why bother when someone else can debug their code