Python Forum
Web app structure with python as backend
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Web app structure with python as backend
#2
(Oct-06-2020, 07:44 AM)alt19 Wrote: As I'm more interested in backend I wanted to use free templates for fronted.
1. Is there any source where I can find such free templates [HTML+CSS+JS]?
I would be perfect if there can be user logging feature.

Are you talking about "login feature"?; There are a lot of free html/css/js templates, just search via google.
And you can find templates that include some "registration" fields, which the user should fill and send
his or her data to your server. However, you need to implement what will be happening behind the scene, when someone send the registration data. This could be done by means of Flask, Django etc.

Quote:2. Web Server
Can I create such server using python?
I was using Flask so far - as I understand Flask is Web Server it self?

I wouldn't say that. Flask is a framework for building web-applications; Once a user makes a request, and you need
to process this request somehow, there are a lot of micro-tasks raised: e.g. parsing url parameters, requests routing, session management etc. This is where Flask (or other tool) can be helpful.

When we're talking about implementing your own full-featured server, we are talking about quite complex problem; however, if your server is expected to response just "Hello World" (or return a couple of static web-pages),
you can likely implement it.

Quote:4. DataBase
Can I build DataBase server also on my own?
It depends. In general, databases are complex things: they solved various problems, such as data consistency,
collision management etc. However, if you database is expected to store only a few textual phrases and you can guarantee that there is no writing collision to it (e.g. users can only read data from it), you can probably build a "database" around "shelve" Python module (or use dict-like structure as an in-memory database).

It is very important in software development (particularly, web developement) to reuse things that
already created and well tested. There are a lot of database servers, web-servers and frameworks; Many of them are open-source. If you want to imagine what amount of work you encounter when trying to implement your own web-server, database-server etc, you could just try to dive into and understand its source code.
Reply


Messages In This Thread
Web app structure with python as backend - by alt19 - Oct-06-2020, 07:44 AM
RE: Web app structure with python as backend - by scidam - Oct-06-2020, 11:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to display XML tree structure with Python? sonicblind 13 42,613 Aug-12-2020, 02:05 PM
Last Post: mreshko
  Python for Backend Development jayarora 1 2,041 Dec-25-2019, 10:16 AM
Last Post: ralhanashwarya
  Django REST - input of some form fields is send twice to the backend ann 4 4,111 Jan-03-2018, 05:43 PM
Last Post: ann
  Selenium to pick data from excel and enter into backend Prince_Bhatia 0 3,044 Aug-30-2017, 10:32 AM
Last Post: Prince_Bhatia

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020