If you are here to help then this is the deal, I learnt python years ago and now in this pandemic time I mastered my python knowledge. And after that idk where to go and i jumped into webdevlop. So now there are many things to learn in javascript it's okay but what about my python I wanna use that also and javascript is like a hell for me. Is there any one who can answer me these questions
2q(question):should I use django or some js framework.
1q(question):is django useful for front end also or just backed and stuffs?
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (20)
Django is a powerful backend service, not really frontend. Apparently JavaScript has become the de facto language for web Development and it's not gonna change anytime soon. So JavaScript is a necessary evil if you wanna design a dynamic web page.
However, the Python community is hard at work developing important tools for web. If you wanna use your Python, you can use it to develop mainly desktop apps and games, also Ai projects and scientific projects. A lot of things can be done with Python, but for now if you wanna design webpages, you have to use JavaScript
Yeah.. your correct I'm must learn javascript seriously I think so for frontend. Thank you for the help🌟
If it's any help to you, maybe look at vue.js. I was in your shoes just a few months ago. Haven't developed Frontend in 13 years, back then in jquery, and wanted to extend my knowledge to be more competitive in the future.
I found vue.js to be the easiest to jump in and get things done. It's quite fun too actually
Yeah..I'm think of jumping in vue.js before react so that I may become comfortable with frontend. Thanks for the comment 🌟
Since everyone already gave the complex answers, I'll try to answer your actual questions.
1) "Should I use django or some js framework?"
Choosing to use a framework, whether in front end or back end, is a matter of requirements. Frameworks are very powerful, but they have a steep learning curve in the beginning. However, most webdev jobs today require candidates to know some of them, so you won't waste your time learning them. Django is a good option for back end, which takes me to your other question.
2) "Is django useful for front end also or just backed and stuffs?"
Django is a back end framework. This basically means that your python code executes on a server which can output different things, such as HTML views or a data payload (for example, a JSON result from an API).
Even if you use Django to render HTML views directly from the server, those views need JavaScript to have any dynamic functionality. If you don't use JavaScript, you're stuck with static pages and constant reloads.
In summary, if you just want to work as a back end developer, Python and Django, along with some other technologies like GraphQL, PostgreSQL, etc, can take you a long way, but if you want to be front end or full stack you will need that JavaScript knowledge. I would start with vanilla JavaScript and when you're comfortable with it, try a framework like Angular or React.
This is so clear and understandable for my question and much more information I got from your comment thank u🌟.
No problem 😁
Like other guys already wrote, Django is a super tool to write websites and web apps. you can youse Django to write a full web app all-in-one, backend and frontend in one app. That becomes a website where you serve ready-made HTML pages to the client-side.
You can use jQuery to add more dynamicity to it. Sorry about that, but jQuery is Javascript, and you will have to learn it.
But the other way, if the app is going to have only a browser version and if that website is not going to serve millions of users, I think that would be more than enough.
The other thing, if the data from the app is going to be consumed by mobile devices (iOS, Android, Windows mobile) then you definitely need to make it as a backend, using Django (as API) and respond in JSON, XML, or any other format. So that mobile devices are able to consume it.
Good luck Nirosh!
I was like you python dev for years then I kept trying to do web dev with python and is just not gonna work unless you plan on doing nothing but backend, yes you must learn js. It takes a bit of time to get used to it coming from python but after a few months you'll love it because there's so much stuff you can do with it. Backend, Frontend, Mobile, and the list goes on.
It depends cause your job market might be different for your country but if your a Django developer. You will never run away from doing backend development or building a front-end using bootstrap or some other front-end web framework.
It depends on how you would like to specialise. For me, I always specialise as a force multiplier as you can jump to Data Sci with ease due to the great libraries and the rich eco-system offered for Python.
As at the end of the day, AI & Data Science requires a strong backend developer to build these infrastructure to deliver data products or services.
Thank u mate🌟
Django is a web framework that handles a few things out the box. Database and migrations, CMS (user login in and can edit items) and a templating engine for rendering pages.
You might be able to find some integrations for Django that add specific JS behavior - for example there is an ecommerce version of Django adds on frontend and CMS behavior for you. But in general Django frontend side is intended to render HTML pages and it is up to you to write your own JS.
It's hard to answer your 2nd question without knowing what you want to build. You can use Django for your frontend and backend. You can also add your own JS on top of the HTML pages that Django renders. If you say JS is like hell for you, think Django will help you a bit by handling some stuff for you like sorting items on a page, forms and handling login. For anything more than that and for custom behavior not part of Django, you're going to have to write the JS yourself.
The typical Django experience is to give you a backend and frontend together, in fact no API just database use to render templates. It would feel weird to use Django only for your backend as there are other tools suitable for that which are lighter.
And for using Django on your frontend - I don't know what that means. It could be HTML templating, or it could be JS - again, you're going to have to write the JS yourself beyond the default behavior and you might find templating with a lighter Python library for your frontend more suitable. Or maybe you write your frontend using React or using Jekyll static site or something else and write your backend in Python. It's hard to know without the aim of what you are building or your knowledge of these tools.
Alternative...
It is well-known that Django is complex and opinionated, so you might feel like you are fighting to change something to get it to work the "Django way". While a lighter framework like Flask lets you build up only the things that you need and make choices yourself on how to do a CMS and a database (SQLAlchemy is a popular library for adding SQL functionality to Flask). Flask does handle templating well in a way similar to Django and Flask is also great for writing a REST API.
You can learn Js framework/Django rest/Django
Depends on the application you want to build or you can see your future in.
Most of the companies have frontend and backend in different technologies. (For, example frontend in REACT/Angular and backend in python/Java). They use the REST API to call the backend service. For that case, you can learn the Django rest framework.
Then when to use Django?
When you've templates/ you want to use basic HTML, CSS, Js. Django has built-in template tags and filters which you can use in your template to rendering data.
You could use Panel panel.holoviz.org/. It's a part of the HoloViz family of data viz tools. It's really, really powerful and works both for exploration in a Notebook and for deployment as web apps.
You can checkout awesome-panel.org for live app inspiration.
You can try panel.holoviz.org.
It is pure python and you can do awesome analytical webapps without touching Javascript.
And checkout awesome-panel.org for a gallery of data apps with code.
In my opinion, the tools you use will depend on the project you are going to develop, maybe you should sit down to review the functionalities of Django or any other framework / library and conclude if it fits the needs of the project or if I need another tool.
According to your second question, maybe this link will help you a bit: stackoverflow.com/questions/908112...
Regards!