How python can help me to make my website?
-
i want to develop a website in Python. Can someone tell me how I can do this. currently I am using ASP.NET MVC for web development. I want to make just the Hello world sample. It should print dynamically.
-
Answer:
Here is a solution using string Templates: #!/usr/bin/env python import string s=string.Template(""" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>My page</title> </head> <body> <p>$text</p> </body> </html> """) s.substitute(text='Hello World') Now, store the output into a file and open it in a browser... For more serious development, have a look at https://www.djangoproject.com/
user928770 at Stack Overflow Visit the source
Related Q & A:
- How can start to make a website like whateverlife.com?Best solution by Yahoo! Answers
- How much can you expect to make as a surgeon?Best solution by Yahoo! Answers
- What can I do to make this website more appealing?Best solution by Yahoo! Answers
- How much can a medical assistant make per year?Best solution by Yahoo! Answers
- Why many university student poor in english? how university can help them?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.