I would like to know of what web framework is responsible off.
I'm thinking to start a web app project, so I'm digging what frameworks should I use. So for HTML/CSS I'm thinking of Foundation framework, for JS I have chose to use React framework.
For a backend I have chosen to use Django framework, and it says that Django is a web framework. Will I be able to implement Foundation and React to django, or django will take care off all those aspects?
Related
We have a Django based website with PostgreSql database. We don't want to develop any REST APIs for the current website. So we would like to know whether it is possible to develop a mobile app using Flutter when our website doesn't have REST APIs?
Best regards
You can use https://pub.dev/packages/webview_flutter just to implement browser features to your app.
But I prefer you NOT to use Flutter for this project. Just use Native Apps if you are not planning to add something in your app that needs cross-platform.
Building Native WebView apps will improve your app's performance more than Flutter.
i am new to the world of web development and i have a very good foundation on django for backend operations. i am also learning angular for front-end applications. so far i am quite happy writing in django for backend, but i dont like to work with the django templates. My question is, is there any way to integrate angular as the front-end portion in a django environment, keeping the django as the backend??
also while we at it, is there any good designing (UI design) courses available and where (free or paid)?
What you were doing was using Django as a backend and frontend framework. But you can use Rest Framework to build an API, keeping Django only on the backend. Once you have the API endpoints built, you can consume them with Angular or any other framework.
More info:
What is an API?
The tutorial in the official website of Django Rest Framework is a great start.
Django REST with SPA "within" or completely stand alone?
I'm diving into a new project where I'll try to build a SaaS web application and I've set on using Django Rest (with Postgres to utilize schemas) and React/Vue on the frontend.
What I'm unsure and what I can't seem to get an answer to is the way people structure these frameworks. E.g, on https://www.valentinog.com/blog/drf/ the author writes:
I see the following patterns (which are common to almost every web
framework):
React in its own “frontend” Django app: load a single HTML template
and let React manage the frontend (difficulty: medium)
Django REST as a standalone API + React as a standalone SPA
(difficulty: hard, it involves JWT for authentication)
Mix and match: mini React apps inside Django templates (difficulty:
simple)
And here are my advices.
If you’re just starting out with Django REST and React avoid the
option 2.
Go for option number 1 (React in its own “frontend” Django app) if:
you’re building an app-like website
the interface has lot of user interactions/AJAX
you’re fine with Session based authentication
there are no SEO concerns
you’re fine with React Router
Why is this beneficial, and is it actually different from having a stand alone rest api and a standalone SPA? The reason I wanna use Django is so I don't have to worry about authentication and authorization, and I also plan on utilising the admin panel - will this "not work" if I were to use two completely standalone applications for the backend and frontend? (e.g django rest with the sole purpose of exposing the api and the frontend to consume it).
What alleged benefits do I get from having django rest and SPA in the same "root" project
I want to use django framework to write a web site with static/dynamic pages (I will not be using angular/react - i.e. SPA technology) but I also want the web app to serve as the backend for a mobile app.
What's the best practice here? Can Django alone be used for it?
Will I need to use Django REST framework?
If you could recommend some specific modules to keep the app as simple as possible and avoid DRY code. That'd be great.
Thanks.
You have the right pointers in your question already.
Use django-rest-framework to create a rest service, create your web app in django to consume that service, create a mobile app to consume the same rest service.
In general, once you have a rest service, you can build anything on top of it. Just consume the service from whichever platform you want to build for.
I hope that helps.
I am trying to set up django with angularjs and play around with it. Most of the tutorials contain something about django REST framework, Creating endpoints for an application, APIs and so forth. What is django REST framework, what are endpoints, APIs, why are they important for angular?
First of all, you should learn what is angularJS and how it works, with that knowledge is pretty clear why there is need for an API.
In short words: You feed angularJS with template and data, AngularJS will take it and build correct site on client side. There won't be any benefits if you won't change data dynamically. That's why you need to have API for you app (to exchange data, not pre-build templates) and for that API, good choice is Django Rest Framework.