mardi 11 août 2015

Where to start python web page?

I'm at beginner level, I've given my 2 months at basics level in python. I'm familiar with algorithms, matrix and etc programming stuffs into python.

I want to give my whole life to django. But problem is i don't anything about web python stuffs except starting server on it.

I've started my server using:

import http.server
import socketserver

PORT = 8000

def playServer():
    handler = http.server.SimpleHTTPRequestHandler
    httpd = socketserver.TCPServer(("", PORT), handler)

    print("Serving at port", PORT)
    httpd.serve_forever()

But when i call my simple web page, It still shows the codes of python, Please take a look at SCREENSHOT.

Please help me, How to make web page using python coding? Also let me know, Am i capable to start giving time with django? I've heard django is a framework, So i should give basics time to learn some python web page stuffs? right?

HELP WOULD BE APPRECIATED!!




Aucun commentaire:

Enregistrer un commentaire