Have a question may be silly but want to know when using a library like the
Python rx library package
how would I use it in django?
Would I have to create a model?
or could I use it in a View Thanks
I was thinking in a View but was unsure if i could with a Function view
instead
Thanks
IF y
Hi.
Django is just Python so you can use any library as you see fit.
You don't need to create any special models for that unless you want to
store something to database.
If that package creteates output you want to show in template just calling
it from a view is sufficient.
11.3.2018 20.10 "dja
Hi Jani thanks
I was thinking something like this
from rx import Observable, Observer
people = ['robert', 'anna', 'jake', 'harry', 'lacey']
class MyObserver(Observer):
templates = 'peron/people.html'
context = {}
def on_next(self, x):
print("Found: {}".format(x))
de
3 matches
Mail list logo