Comments (4)
By recycling the code from https://github.com/jrief/django-websocket-redis, this should be quite easy and doable using the key-value store from Redis without its message-queue.
However, in order to get a kind of intermediate responsivness, I always would go for a long polling service in case for some reason you can't run websockets.
Long polling services have the serious drawback in that they don't scale well, since each open GET request blocks one worker. In that case it would probably be better to use an asynchronous framework side by side with Django.
If that answered your question, please close this issue.
from django-angular.
My hope was to be able to have rudimentary three way binding using just django and angular without having to install redis or another process in the server.
from django-angular.
In Angular you have a model and your scope. The scope is a POJO and Angular takes care to sync it with your model. If you want to have 3-way data-binding you need a third copy of that object on the server. How would you otherwise sync that data in an asynchronous environment? There is no free lunch for it, so I did it with Websockets and Redis.
from django-angular.
I guess my question is about the feasibility of offering a three data
binding using standard http polling as an alternative to installing redis.
On Jul 8, 2014 12:30 PM, "Jacob Rief" [email protected] wrote:
In Angular you have a model and your scope. The scope is a POJO and
Angular takes care to sync it with your model. If you want to have 3-way
data-binding you need a third copy of that object on the server. How would
you otherwise sync that data in an asynchronous environment? There is no
free lunch for it, so I did it with Websockets and Redis.—
Reply to this email directly or view it on GitHub
#79 (comment).
from django-angular.
Related Issues (20)
- Please test upcoming version of django-angular 2.0 HOT 12
- Issue in Client-Side Form Validation HOT 3
- ChoiceFieldRenderer not available in Django 2.x HOT 2
- Django 2.x - No module named 'django.core.urlresolvers' HOT 5
- 'unicode' object has no attribute 'url' HOT 3
- Ajax Validation unique fields. HOT 2
- Ajax Validation ImageField. Possibly bug? HOT 1
- Client side error, rmi-function is not a function HOT 1
- Automatically generated form names broken in Python 3 HOT 4
- Trouble integrating into django-cookiecutter project HOT 3
- How to create nested formsets
- angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module djangular-demo due to: HOT 2
- How to create new django-project?
- Dockerfile references a non existent image HOT 1
- AngularJS client form validation ignores model RegexValidator HOT 2
- Override Minimum Length Error Message CharField Forms
- from dJango.http import HttpResponse ModuleNotFoundError: No module named 'dJango'
- Django 3.0 Error: ImportError raised when trying to load 'djng.templatetags.djng_tags': cannot import name 'six' HOT 4
- module 'django.forms.forms' has no attribute 'BoundField' HOT 10
- Tag 2.3.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-angular.