How to use Cassandra in Django framework - django

Is there any robust way of implementing Cassandra back end to a web application developed using Django web framework?

http://github.com/twissandra/twissandra is a django app with a Cassandra backend. It uses https://github.com/datastax/python-driver to talk to Cassandra.

There is new Cassandra engine (based on cqlengine) for Django - https://github.com/r4fek/django-cassandra-engine

There now is a prototype Cassandra backend for Django available here: http://github.com/vaterlaus/django_cassandra_backend

I haven't tried it out for myself, but this looks like something: http://github.com/dziegler/alexandra

Related

django - how can I write data to an external Mongo database?

I have a Django app that is using PostgreSQL. Everything is fine. However, I have a situation in which it would be very convenient for my Django app to update the Mongo database of an entirely different app that is running a different server, etc. How can I do this?
I dont know what Django is or how you are talking to Postgress, but ultimately, it boils down to using one of the MongoDB supported language drivers in order to communicate with MongoDB. The programming languages supported are here: drivers
One option to consider is MongoEngine, an Object-Document Mapper (ODM) that implements a declarative API similar to Django. You can then use Django's support for multiple databases to route requests appropriately.
See:
Django Support in MongoEngine
Django documentation: Multiple databases

Django, django-socketio and mongodb backend

I have a running django-nonrel application and I would like to add a real time module using web sockets.
I would like to use django-socketio but it seems that gevent (which is used to serve the site) does not work properly with mongodb (link) which is the backend of the Django application.
Does anyone already try to set up django-socketio with mongodb as a backend ?
Dry
I found that using Tornado/Tornadio2 with Django is much easier than the gevent-based alternatives. If you need help setting that up I'd be happy to share my runserver_socketio.py script.

Adding and Querying to MongoDB from Django

I am trying to build a DB system using Django as the framework and MongoDB for my database management system. How can I add things to a specific collection? Where should I specify the name of the collection?
Then, after I have added to the collection, how can I use a Django shell to ask for that information from Mongo?
You don't "add a collection" on MongoDB -- you just use them. In Django - MongoDB: (could not connect to localhost:27017) Connection refused you already got Django MongoDB Engine running, so I don't understand your question? You can use the Django ORM to get data into and out of MongoDB now.
There are many good tutorials of using mongodb with Django. One popular way is to use django-mongodb which integrates to django models. Here is their tutorial.
Another screencast: Integrating mongoDB and Django.

is tornado is the same as django?

is tornado is the same as django ?
can I upload tornado project to normal host providers
No. Tornado is a full web server. Django is a web framework that happens to have a web server included that can be used for testing. You will need more than just basic shared hosting to run it, preferably a full VPS.
Probably you will find this article interesting. Note that you cannot really compare Django to Tornado. Like #Ignacio said above they are not the same thing.
The article:
http://5cience.net/blog/tornado-vs-django,4258/
And yes if you can upload tornado project to normal host providers.

What is django? Can i use it with jsf?

Hello at present I am using jsf+hibernate+spring and i need to get data from session using django and iam new to it so any one can help me....
Django is a python web framework. JSF, Hibernate and Spring are Java technologies. You can't use them together (theoretically you could do some Jython magic, but not recommended).