Omps
I need some help with django, i am working on to build a frontend which can use strava api to call the details of the user on the page and display lists based on predefined criteria like people who covered longest miles, people who participating in a challeneg
Omps
And things like thay
Omps
I am wondering how it can be achieved
Omps
Any help will be wonderful.
Lapanit ☃️
good morning everynyuan how are you, fine sank you
Lapanit ☃️
I wish I were a bird
inchidi
omagaah
inchidi
Abhi
can we make with single tenant app with django to provide SAAS ?
Omps
Omps
Any other solution?
Omps
Flask?
Rohan
Rohan
We couple our web apps with django back end and angular front end
Omps
inchidi
Oh ok.. how do you suggest?
umm i work only with vuejs for frontend on a regular basis so i cant give you fair suggestion i think
Rohan
inchidi
Rohan
Django to provide data.
Rohan
Cuz that's how I do it usually.
Rohan
I see, that can be done with almost any JS framework that he finds comfortable
Rohan
I'd suggest angular
inchidi
Rohan
Rohan
Didn't really know you were into Django. Just saw you around Vivian's off topic :p
inchidi
haha yeah
inchidi
Abhi
Rohan
what ?
Can you explain your problem statement a bit more ?
Abhi
okay
Abhi
will do in a minute
Rohan
Sure, no rush.
Django Bot
>> Blogs
- Goodbye manage.py
Anonymous
How does one keep making request to an API to keep the data synched with the UI in real-time...
Is setTimeInterval() function in JavaScript the best way to do this or there are libraries to handle this for you in JavaScript considering django as the backend.
inchidi
Anonymous
Abhi
Sure, no rush.
https://quickleft.com/blog/introduction-to-designing-multi-tenant-web-applications/
Abhi
^^ this is the blog i read about Tenancy of the web application
Abhi
based out of the curiousity can we say that Slack is a Tenant web app and company is a SAAS ?
Rohan
I think so
Rohan
The app on my mind right now is discord
Abhi
so what if want to make something Slack to provide services to our client(B@B business) same using DJango ?
Rohan
Rohan
You can define some kinda hierarchy and particular views based on that hierarchy.
Rohan
@inchidi correct me if I'm wrong.
Thara bhai mudi
*corrects you*
inchidi
Rohan
inchidi
my answer is should be no matter but i think i can suggest something if i understand exactly what he need
Rohan
Rohan
Cause I think he can
Rohan
Cause I'm kinda doing that thing already :p
Rohan
But idk how much his idea of multi tenancy overlaps with mine.
inchidi
yeah if what he want is using one app for many company something or like that
inchidi
but if he have specific requirements like "the db should be separated", "each client has different user levels", etc then he will need more work than doing it at views part only
Rohan
Rohan
I am able to manage that with hierarchy within views
Rohan
Like putting checks based authorization levels and viewing permissions
Rohan
Within api view
inchidi
yes, that part should be done at views but he must prepare the models too to make it works well
Rohan
Rohan
Need extensive db planning
Rohan
TBH I learnt django in 3 days, So I don't know if I'm just hacking it to my advantage or doing it right :p
Rohan
Django Bot
>> Links
- Let's talk about usernames
- Scaling Django
Django Bot
>> Links
- A Production-ready Dockerfile for Your Python/Django App | Caktus Group
- rsinger86/django-lifecycle: Declarative model lifecycle hooks, inspired by
Abhi
Abhi
Iman
Hello
I've been reading the channles tutorial for django and came across the following code:
async_to_sync(channel_layer.send)('test_channel', {'type': 'hello'})
can anybody tell me how the syntax of
some_func(arg, *args, **kwargs)('string in tupple', {'dict': 'in tupple'})
works in python ?
EDITED:
Tutorial link:
https://channels.readthedocs.io/en/latest/tutorial/part_2.html#enable-a-channel-layer
full code:
$ python3 manage.py shell
>>> import channels.layers
>>> channel_layer = channels.layers.get_channel_layer()
>>> from asgiref.sync import async_to_sync
>>> async_to_sync(channel_layer.send)('test_channel', {'type': 'hello'})
>>> async_to_sync(channel_layer.receive)('test_channel')
{'type': 'hello'}
Django Bot
>> Links
- Django - Referencing the User Model
N S
Hi i would like to how to prepopulate a form that contains data from different tables. The two tables are linked by foreign key how do i achieve this
Anonymous
Anyone interested to make a simple Django website
Luis
Me