Interactive web application with Django/Flask issue

Question:

I want to build a website that shows some data from a CSV file and collects some user data (which should be provided through some textbox widgets) and saves it in a CSV file(the same file). I already have a working Python code for the CSV handling.

The problem is that I’m not sure what programming languages I need to use besides Python in order to achieve that using Flask or Django. And I’m not familiar with web development.

Can I make it using only Python and Django/Flask(or any other web framework)? If not, what languages and resources do I need? And do I need a database for that? I tried some tutorials for both frameworks but Flask seems to need HTML and CSS, and Django wasn’t much clear to me. Thank you.

Asked By: Darkened

||

Answers:

I would recommend going with Flask rather than Django, as you’ll have far less to set up and far less to learn to get your project running.

You will need to learn HTML, and Jinja2 (flasks templating language) but this shouldn’t be too hard.
Focus on how to do tables in HTML, and then learn about for loops in Jinja2.

You won’t need to learn CSS unless you want to make it look pretty.

Answered By: BenDog

I would go with Flask and use Flask-Admin (https://flask-admin.readthedocs.io/en/latest/) for basic CRUD.

Suggestions:

  1. Move data from csv to sql database, you can start with sqlite.
  2. Use Flask-Admin/Flask-Sqlalchemy, with 5-10 lines of code you will be able to get the application up and running.
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.