![]() |
Can someone explain Python on the web to me? I dont get it at all
how does Python work on the web?
I understand PHP and ASP totally because they're embedded into the html page, but with Python how does that work on the web? Where does the code go, and how does it work with web pages? |
|
Python is a programming language that lets you work more quickly and integrate your systems more effectively... Although Python, includes some modules that are helpful for creating plain CGI programs. 70 % is backend database 2 cents:
|
you don't use Python for web development. You could, but you shouldn't. Slow as fuck, you need special servers, coding to work between WSGI and HTML is a nightmare (let alone mod_python), you gotta restart the server every time yo make a change... well, unless you're a real geek who doesn't plan to use the site, can't even imagine why would you want to use Python on a web environment, at least on its current state.
The above being said, Python for desktop apps is amazing :thumbsup |
Quote:
http://wiki.python.org/moin/PythonVsPhp http://www.sitepoint.com/the-real-di...hp-and-python/ |
Quote:
If they're that different then I might as well be searching for "Apple Banana differences" |
Quote:
https://encrypted-tbn1.gstatic.com/i...Ng_r3m28tHUs5w |
Quote:
Quote:
thanks guys. I just felt so confused how "Google is written in python" and "youtube is written in python" so I dont understand how its done. thanks |
Quote:
Anyway, take what I say with a pinch of salt: I'm a noob at Python, what I'm telling you comes from my professor since the first thing i asked him (obviously) was the same question you're doing here. And that's the answer I got: use it for desktop, avoid web for now until new tools and frameworks are developed. If you still wanna try it, I suggest Django+Jinja , it's pretty easy for people like me, and I'm a retard! :1orglaugh |
Quote:
Please accept my most sincere and humble apologies. |
Quote:
|
Quote:
thanks anyways |
Quote:
|
Quote:
I concede, you win! |
I hate phyton, linux gnome is written in it and i cant figure out where it store it's configuration files no matter what.
|
Python is for scientists and NASA so no one in GFY should ever touch it.
|
I tried it with a Google apps site - It gave me a headache - Don't worry about it would be my suggestion....
|
I don't know if it still is, but reddit used to be powered by web.py - a phyton framework.
It have powerful libraries for data manipulation and analysis, that makes it great for "big data". (Huge linklists, tubes, image db's and that sort of functions) The code is all serverside, so you don't embed it as you do with PHP, JS and the likes. |
Quote:
When we released Python version 2.0, Guido and the rest of us concentrated on adding features that would enhance the evolution and adoption of the language. In addition to releasing the language from the restrictive CNRI license (which was of critical importance to us), we saw some of these features (garbage collection, etc) as opening Python up to a broader user base. I personally left the team shortly after the release of 2.0, and don't currently code in Python for anything other than prototyping .. but it's still great for that. |
here is an example of python for the web
Open-source project, using Django, Python, jQuery, Bazaar, Launchpad, HTML5, Bootstrap from Twitter http://www.bashoneliners.com/ |
Interesting link, fris.
|
and Dropbox is "Written in python" i still dont get it.
are the modules written that go on the server? Like microsoft COM components with ASP.net? |
Quote:
|
Python is slow and difficult? Python has to be one of the easiest languages to learn, this is the reason it is used by NASA/ google as it is so close to a prototyping language. Also for speed you should be concerned about memory/cpu as none of us will probably ever come across a project where php, ruby or python would be an issue in our projects. You should choose a language as a tool based on what feels more natural to you and gets the job done correctly and quickly.
Check out django book for more on python/django: http://www.djangobook.com/en/2.0/index.html |
Quote:
The output is the HTML-file. Google "Server-side scripting" |
All times are GMT -7. The time now is 09:38 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123