I have build an simple chatbot in python, but the framework for the UI in python is not what I want to use to build a UI. I want to use react to make the UI for better and more professional look to the chatbot.
So my question is can I do that, if yes, then how? And I would like to test it on an mobile app as well, how do you guys suggest I go forward with that?
I appreciate every respond.
You could use a framework like Django and the Django-rest-framework for the backend, and use React for the frontend. You could also use React-native to build mobile apps out of it.
Related
I have an application which uses flask and flask-security-too in the rest layer. Since flask-security contains some nice, out-of-the-box solutions for user signup, registration etc. including some override-able views. I would really like to use it if possible.
However, I would instead like to plug in a react frontend to get the SPA things going. I read in the documentation for flask-security that the views are indeed possible to override but not sure if/how I would manage to get this working for a built react app?
To summarize my question: Can I use React.js still benefit from flask-security features?
Please read:
https://flask-security-too.readthedocs.io/en/stable/spa.html
basically - you will be using the JSON api rather than forms.
I have a django webapp, which is a repository for alumni. Users can sign up using the extended user model and fill-in multiple fields. Then there is a detail page for each user that shows their respective data. All this is built using function based views. This bit is fine. But I also want to make its corresponding mobile apps for android and ios hopefully in flutter otherwise react native. My question is, should I host this as it is, or there are some basic things that I already need in the code so I can make a REST API and connect mobile apps later? I don't really have any knowledge about mobile apps and connecting django's REST API? So please guide me in this regard.
Thanks :)
There two ways to do it based in my knowldge :
1- using flutter web view in packages website only pick the best pkg for you .
2-or using HTTPS req by http pkg and make sure you have get and post in your backend like flask in paython or laraval php .
I hope I answred your question :)
I was wondering if it is possible for me to use Django code I have for my website and somehow use that in a mobile app, in a framework such as, for example, Flutter.
So is it possible to use the Django backend I have right now and use it in a mobile app?
So like the models, views etc...
Yes. There are a couple ways you could do it
Use the Django Rest Framework to serve as the backend for something like React Native.
Build a traditional website for mobile and then run it through a tool like PhoneGap.
Use the standard Android app tools and use Django to serve and process data through API requests.
Update for 2022: This article from AppPresser provides alternatives to PhoneGap which was mentioned in the other answer. These alternatives can be used to package web native sites as mobile apps.
The alternatives listed are:
Bitrise
Ionic
The honorable mentions were:
Appcircle
Appcenter
CodeMagic
Codeship
I am going to develop a auto text summarization tool as my FYP. I am going to use Python and it's going to be a web application. Since, there would be no database involved in my tool is it a good idea to use Django? Can anyone recommend any other framework? Thanks.
If there's no database in your application then you presumably won't be using Django's ORM, which is one main reason to use it rather than something lighter.
Having said that, if you're familiar with Django, use Django. If you're not and are looking for a Python web framework, how about something like Flask? The templating module (Jinja2, I think) is a bit more powerful than Django's templates.
It doesn't matter if database is involved or not, but for overall web development, it's an easy to use framework.
I wanna build a simple social network use python. Just like twitter but smaller than twitter.I just wanna make a few features like follow,BE followed,view others profile,etc.
My question is that i should use web.py or Tornado?
BTW, is there any tutorial about Tornado? I feel it hard to understand when i read the documenations on the offical.
(Oops,my english is week. :P )
these two are different things.
Tornado is web server while web.py is a framework.
therefore you can use both of them.
Answer to your Q:
write your app with web.py ! I'm sure we can build a twitter copy based web.py very soon .
And then , you'd better to know these:
web.py is a small but charp python web framework
tornado is a web server, but also can do more things .
The document of tornado http://www.tornadoweb.org/documentation/index.html is good,and I guess you want some examples ? Click here https://github.com/facebook/tornado/tree/master/demos
You might consider using Pinax. When I used it, it had the self-concept of 'django with an opinion.' I'm not sure where it's at now, but my experience was that it was best suited for exactly what you want to do. One of the base projects is actually a fully functional social network site. You could then customize from there.