Python Forum
How to change language line by line?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change language line by line?
#1
This below website built by php.but i want to change it to python.is it possible?

https://www.dialbro.com
Reply
#2
(Sep-18-2017, 03:16 PM)dialbrocom Wrote: This below website built by php.but i want to change it to python.is it possible?
That is possibly,not to much work site is pretty basic and using Bootstrap.
I would have done it Flask.
A quick demo how to start,a little tutorial here.
from flask import Flask, render_template, jsonify, request   app = Flask(__name__) # The main page html and css load here @app.route('/') def index():    return render_template("index.html")   # Push Dance button taken to a new route,the load html and css for this route. @app.route('/top-10-best-dance-classes-in-chennai',  methods=['GET']) def dance():    return render_template("dance.html")   @app.errorhandler(404) def page_not_found(e):    return render_template('404.html'), 404   if __name__ == '__main__':    app.run()
Reply
#3
Of coarse it's possible.  Python can do anything php can do.

It looks like it doesn't change that much, so you could even use a static site generator so everything was just plain text files.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  No new line from print in a browser Lou 13 1,101 Dec-01-2025, 06:39 PM
Last Post: noisefloor
  cannot unpack non-iterable int object in urllib3/util/wait.py", line 85, ping_chen_ibm_us 2 891 Aug-01-2025, 02:05 PM
Last Post: ping_chen_ibm_us
  [SOLVED] Why does regex fail cleaning line? Winfried 7 4,852 Jul-11-2025, 11:52 PM
Last Post: Pedroski55
  I am a newbie I like to use the command line Mikel2025 1 1,020 Jun-13-2025, 03:20 PM
Last Post: Gribouillis
  Βad Input on line 12 Azdaghost 5 2,163 Apr-19-2025, 10:22 PM
Last Post: Azdaghost
Question [SOLVED] [Beautiful Soup] Move line to top in HTML head? Winfried 0 946 Apr-13-2025, 05:50 AM
Last Post: Winfried
  Insert command line in script lif 4 2,169 Mar-24-2025, 10:30 PM
Last Post: lif
  Entry field random pull from list, each return own line Bear1981 6 1,847 Feb-25-2025, 06:09 AM
Last Post: Pedroski55
  How to revert back to a previous line from user input Sharkenn64u 2 2,995 Dec-28-2024, 08:02 AM
Last Post: Pedroski55
  Pandas - error when running Pycharm, but works on cmd line zxcv101 2 3,507 Sep-09-2024, 08:03 AM
Last Post: pinkang

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020
This forum uses Lukasz Tkacz MyBB addons.
Forum use Krzysztof "Supryk" Supryczynski addons.