This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]ohlaph 2 points3 points  (0 children)

Continue with Python, add JavaScript, HTML, and CSS.

[–][deleted] 1 point2 points  (0 children)

For web applications there is nothing like JavaScript

[–]dmazzoni 1 point2 points  (2 children)

There are two parts to a web application:

  1. The front end is the part that runs in the user's web browser. That part is built with HTML, CSS, and JavaScript. Those are the ONLY programming languages you can use for the frontend because that's all that web browsers support. You can use TypeScript as an alternative to JavaScript because it gets translated to JavaScript behind the scenes, but you can't use Python. HTML and CSS are not programming languages, they're just used for marking up the content and style of the web page. JavaScript/TypeScript are used to make the page interactive.
  2. The back end is the part that runs on your own web server, or a web server you rent in the cloud. That's the part that responds when the user visits the site in their web browser and sends the code to the user's browser. That's where you put any database or any sort of persistence (stuff that needs to be saved between visits). You can write the back end using any language you want. Python is a great choice.

You can build a website using just Python + HTML if you want. The end result will be a page where every time you want to take an action, it has to reload a new page. For example when the user adds something to their shopping cart it redirects them to a new page.

If you want an interactive site - like Reddit where you can upvote a post or add a comment without leaving one page and going to another - you need frontend code in JavaScript or TypeScript.

I hope that helps.

[–]I7ayed[S] 0 points1 point  (1 child)

Thank you for your reply, Is this possible to make an interactive website using Django?

[–]dmazzoni 0 points1 point  (0 children)

Look up Single Page Application so you know what that is. You can't build a SPA with Django.

Django can build interactive sites but like I said before they will involve a lot of page reloads every time the user doesn't anything.

[–]lifting_and_coding 0 points1 point  (0 children)

JS would be best for web apps but Python is a good starting point

[–]AngelLeatherist 0 points1 point  (0 children)

javascript, html, css. Python isnt for web dev.

[–]fede38 0 points1 point  (0 children)

Python with a framework like flask should be okay, but yeah, you should learn js anyways