These are chat archives for django/django

28th
Jun 2017
Shashank Parekh
@sp1rs
Jun 28 2017 05:21
@jdaltonchilders all those fields are in different model?
And is modeld also contains User Foreign key?
Christopher Ventura
@venturachrisdev
Jun 28 2017 14:14
For everyone having trouble with Django urls and regex's (or just want to make your life easier) try Djurl https://github.com/venturachrisdev/djurl
Bernardo Smaniotto
@besmaniotto_twitter
Jun 28 2017 18:52
Hey, I just started this lib to manage migrations with multiple branches in development environment, would appreciate some feedback: https://github.com/CheesecakeLabs/django-nomad
Wrote this article with the motivation and explaining some steps too: https://cheesecakelabs.com/blog/really-annoys-django-migrations/
Adam Hopkins
@ahopkins
Jun 28 2017 19:42

I have an opinion question for everyone. I am using discourse () along side my web app. The web app itself has a JS frontend and powered by django thru DRF on the backend.

In the past, I have handled authentication nicely with https://github.com/GetBlimp/django-rest-framework-jwt.

But, what I really want is for a user to "login" to one place only, be it on discourse or on my web app. Discourse has this handled nicely and allows for you to implement your own single sign on solution. I am using something adopted from here: https://gist.github.com/alee/3c6161809ef78966454e434a8ed350d1

This works nice but really only allows people credentials to my backend using DRF's SessionAuthentication. This is not really acceptable to me because my frontend will be on a different domain from my backend.

Anyone have some thoughts on what direction I should head?