These are chat archives for django/django

16th
Jul 2017
John
@flyboy1565
Jul 16 2017 03:07
@Cosbgn think about this... Pinterest run off of Django. It just depends on how your architecture
Vg.
Costantin
@Cosbgn
Jul 16 2017 03:09
Hi @flyboy1565 I know but Pinterest uses one logins per person
I could have 1000 people using the same login/user
That's my doubt
Sorry my previous message doesn't make a lot of sense it seems a message got lost
John
@flyboy1565
Jul 16 2017 03:11
Again, you could have 15 servers handling that one request.. I have a django project that uses channels. My user base is about 60. No issues on one server. But getting ready to scale up to about 300 users
Costantin
@Cosbgn
Jul 16 2017 03:11
I have a view live demo view
Which just logs in a demo account
John
@flyboy1565
Jul 16 2017 03:11
You could always build a test case with fake users hitting the login in parallel
Costantin
@Cosbgn
Jul 16 2017 03:12
With login(request,demo_)
*login(request, demo_user)
John
@flyboy1565
Jul 16 2017 03:12
Yes
Costantin
@Cosbgn
Jul 16 2017 03:12
So I was wondering if 100s of same user sessions are a problem
John
@flyboy1565
Jul 16 2017 03:12
Look up the testing goat
Costantin
@Cosbgn
Jul 16 2017 03:13
The book?
John
@flyboy1565
Jul 16 2017 03:14
Yup
Costantin
@Cosbgn
Jul 16 2017 03:15
Ok 😁
John
@flyboy1565
Jul 16 2017 03:15
Yes
Np! Happy coding
Costantin
@Cosbgn
Jul 16 2017 03:16
Thanks
Nikhil Allamsetti
@niklul
Jul 16 2017 20:05

Hi,

Need help with django rest framework.

I'm trying to build a chat feature in my application made on django-rest-framework.

DRF doesn't provide real-time support yet. Any good API's that I can use to make this easy?

I don't know much about django channels. Can I use it within the same Django project as DRF?

John
@flyboy1565
Jul 16 2017 21:24
Yes
You can use Django channels with drf. You might also look into channels-api from linuxlewis
I have on my git repo a project that is using drf and channels. It provides real-time issues for a Google map.