What is django? Can i use it with jsf? - django

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).

Related

Python Web Frameworks For Production Level

I have been using Flask for Building REST API on the development level. I want to create REST API at Production Level. So which Python web framework would be Best?
These frameworks I saw while searching:
CherryPy
Flask
Django
Pyramid
TurboGears
Pylons
Web2py
Falcon
Bottle
Etc.
Django has a big support for REST API. According to my own experience I'd advice Django.
See more here: https://www.django-rest-framework.org/
For a REST API, I would use FastAPI. It has a strong reputation.
I have used it for several projects, and I like it because it fairly easily lets you do the right thing without much work. For instance, it relies upon pedantic to ensure the proper data types for what you are sending/receiving.

Django auth with redis

I try to plug in my django aplication into microservice architecture.
Authentication is made by component written in spring boot. It stores session in redis in following format:
"spring:session:sessions:71f06a1d-b169-4bb9-a4c8-013bb82742ee"
Is it possible to configure some existing django lib (configure namespace) to use build in auth system? I would like to avoid write down whole thing from scratch.
Any help will be welcome.
I managed the problem - that kind of functionality provides custom authentication
http://www.django-rest-framework.org/api-guide/authentication/#example .

Clojure and noir for a classic web application

How would one go about using Noir with user authentication and an ORM.
Would it all have to be accessed via java objects?
Are there any rails style "blog" tutorials that go about user auth and database access?
Take a look at https://github.com/ibdknox/Noir-blog. It uses a simple file-based db, but it shouldn't be too hard to replace it with for example MongoDB using CongoMongo, or a different one.
I made a small noir-based webapp which lists the contents of an 'users' table from MySQL using the korma library. It's pretty simple but you can check it here: https://github.com/dfuenzalida/noir-showdate

Django on GAE: use_library vs Django-nonrel

I am really new to the world of App Engine development and I want to start with a test project on Django and GAE. I've done some research and found out that there are two major ways to use Django in my app on GAE.
Django-nonrel + djangoappengine
use_library() to load Django from SDK
Please tell about pros and cons of each way.
Is there anything better than django-nonrel if i will decide to distribute Django code with my project?
It's not a matter of two different ways to use Django - it's two different versions of Django. App Engine comes bundled with versions 0.96, 1.0 and 1.1 of Django, unmodified from the mainline release. Django-nonrel is a branch of Django, which adds support for App Engine for the database backend.
If you're writing a new app, and you want to use Django for the whole app, including the models, you should use Django-nonrel.
When using django-nonrel you can use all Django features (including admin, auth, models, queries). I don't have a complete list of django modules which are either not working or partly not working in app engine.
If you use the Django version via use_library you have to be careful with app engine's limitations (use their model api, their auth via google accounts and so on).

How to use Cassandra in Django framework

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