Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for an Advice...
#1
Hi friends! I have learned very basics of python, and now I want to make software for windows and a website using python. Please give me a roadmap to start with software and website developing using python. Thanks
Reply
#2
Good Frameworks where you can start

I like flask very much, because the framework is very lightweight. In other frameworks you have for example the one way to do something, if you like it or not. It's a good start point and if you currently don't know classes and the oop behind, this is not a problem. Flask works with decorated functions.

A very easy example:

from flask import Flask
from flask import jsonify
from flask import request
import jinja2


app = Flask(__name__)
html = '<html><head><meta charset="utf8" /><title>{{title}}</title></head><body><p>{{message}}</p></body></html>'
template = jinja2.Template(html)


@app.route('/')
def root():
    return 'Hello World'


@app.route('/test', methods=['GET', 'POST'])
def test():
    response = {'method': request.method, 'form': request.form, 'data': request.data}
    return jsonify(response)


@app.route('/test2')
def test2():
    return template.render(title='/test2', message='This is a test message')


if __name__ == '__main__':
    app.run()
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Forum Jump:

User Panel Messages

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