Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-28-2013, 08:09 PM   #1
clickhappy
Confirmed User
 
Industry Role:
Join Date: Mar 2004
Posts: 4,027
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?
clickhappy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 08:39 PM   #2
lagwagon
Confirmed User
 
lagwagon's Avatar
 
Join Date: Jul 2001
Location: az
Posts: 8,464
__________________

FTVGirls - FTVMilfs - DanielleFTV
lagwagon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 08:43 PM   #3
digitaldivas
..I Heart Cannibal Corpse
 
digitaldivas's Avatar
 
Industry Role:
Join Date: Sep 2007
Location: California
Posts: 4,327
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:
__________________
...

Last edited by digitaldivas; 04-28-2013 at 08:44 PM..
digitaldivas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 08:50 PM   #4
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
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
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 08:52 PM   #5
Fetish Gimp
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Posts: 1,699
Quote:
Originally Posted by clickhappy View Post
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?
Google is your friend. Do not fear it.

http://wiki.python.org/moin/PythonVsPhp
http://www.sitepoint.com/the-real-di...hp-and-python/
__________________
Strapon Seduction - femdom blog | Twitter
Fetish Gimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 09:05 PM   #6
clickhappy
Confirmed User
 
Industry Role:
Join Date: Mar 2004
Posts: 4,027
How dafuq will searching for "python php differences" tell me how python is used for the web?
If they're that different then I might as well be searching for "Apple Banana differences"
clickhappy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 09:09 PM   #7
clickhappy
Confirmed User
 
Industry Role:
Join Date: Mar 2004
Posts: 4,027
Quote:
Originally Posted by lagwagon View Post
Actually its named after this ;o)
clickhappy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 09:11 PM   #8
clickhappy
Confirmed User
 
Industry Role:
Join Date: Mar 2004
Posts: 4,027
Quote:
Originally Posted by harvey View Post
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
Quote:
Originally Posted by digitaldivas View Post
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:

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
clickhappy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 09:27 PM   #9
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by clickhappy View Post
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
none of them are written in Python. They use specific features written in Python, which are undisclosed, but I assume they're using Python for the heavy burden of algorithms and back end tools, like video processing and database management. For that, Python is impressive, it just doesn't handle web well (At least not directly or not known, who knows what 2 of the most technologically advanced companies in the world have under their sleeves) .

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!
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

Last edited by harvey; 04-28-2013 at 09:28 PM..
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 09:29 PM   #10
Fetish Gimp
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Posts: 1,699
Quote:
Originally Posted by clickhappy View Post
How dafuq will searching for "python php differences" tell me how python is used for the web?
If they're that different then I might as well be searching for "Apple Banana differences"
I'm sorry if suggesting you use Google or any other search engine to find information about a subject you're curious about, something which is one of the main purposes of the internet, offended you.

Please accept my most sincere and humble apologies.
__________________
Strapon Seduction - femdom blog | Twitter
Fetish Gimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 09:36 PM   #11
clickhappy
Confirmed User
 
Industry Role:
Join Date: Mar 2004
Posts: 4,027
Quote:
Originally Posted by harvey View Post
none of them are written in Python. They use specific features written in Python, which are undisclosed, but I assume they're using Python for the heavy burden of algorithms and back end tools, like video processing and database management. For that, Python is impressive, it just doesn't handle web well (At least not directly or not known, who knows what 2 of the most technologically advanced companies in the world have under their sleeves) .

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!
awesome just what I was looking for thank you
clickhappy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 09:40 PM   #12
clickhappy
Confirmed User
 
Industry Role:
Join Date: Mar 2004
Posts: 4,027
Quote:
Originally Posted by Fetish Gimp View Post
I'm sorry if suggesting you use Google or any other search engine to find information about a subject you're curious about, something which is one of the main purposes of the internet, offended you.
I took "google is your friend" to mean that im so stupid I dont know how to search on Google for my question, which wouldnt be answered with your suggestion anyways.
thanks anyways
clickhappy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 09:44 PM   #13
Fetish Gimp
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Posts: 1,699
Quote:
Originally Posted by clickhappy View Post
I took "google is your friend" to mean that im so stupid I dont know how to search on Google for my question, which wouldnt be answered with your suggestion anyways.
thanks anyways
Any time
__________________
Strapon Seduction - femdom blog | Twitter
Fetish Gimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-28-2013, 10:01 PM   #14
lagwagon
Confirmed User
 
lagwagon's Avatar
 
Join Date: Jul 2001
Location: az
Posts: 8,464
Quote:
Originally Posted by clickhappy View Post
Actually its named after this ;o)

I concede, you win!
__________________

FTVGirls - FTVMilfs - DanielleFTV
lagwagon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2013, 01:21 AM   #15
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
I hate phyton, linux gnome is written in it and i cant figure out where it store it's configuration files no matter what.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2013, 04:41 AM   #16
adultmobile
No, I am not banned
 
adultmobile's Avatar
 
Industry Role:
Join Date: Nov 2003
Location: ChatGF.com
Posts: 5,345
Python is for scientists and NASA so no one in GFY should ever touch it.
__________________

TubeCamGirl.com
adultmobile is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2013, 04:59 AM   #17
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,040
I tried it with a Google apps site - It gave me a headache - Don't worry about it would be my suggestion....
__________________
-

Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels
EddyTheDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2013, 05:14 AM   #18
Ferus
Bye - Left to do stuff
 
Industry Role:
Join Date: Feb 2013
Posts: 4,108
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.

Last edited by Ferus; 04-29-2013 at 05:16 AM..
Ferus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2013, 08:22 AM   #19
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by clickhappy View Post
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
Google has since been re-written in compiled languages, but the reason for originally being developed in Python was pretty simple: Python is well-suited to rapid prototyping, and is an excellent "glue" language for combining programming languages.

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.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2013, 10:58 AM   #20
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,297
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/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2013, 01:49 PM   #21
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Interesting link, fris.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2013, 05:55 PM   #22
clickhappy
Confirmed User
 
Industry Role:
Join Date: Mar 2004
Posts: 4,027
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?
clickhappy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-29-2013, 05:59 PM   #23
marlboroack
So Fucking Banned
 
Industry Role:
Join Date: Jul 2010
Location: ☣
Posts: 9,327
Quote:
Originally Posted by lagwagon View Post
lolololollol
marlboroack is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2013, 04:12 AM   #24
Zoxxa
Confirmed User
 
Zoxxa's Avatar
 
Industry Role:
Join Date: Feb 2011
Location: Ontario, Canada
Posts: 1,026
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
__________________
[email protected]
ICQ: 269486444
ZoxEmbedTube - Build unlimited "fake" tubes with this easy 100% unencoded CMS!
Zoxxa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2013, 09:27 AM   #25
Ferus
Bye - Left to do stuff
 
Industry Role:
Join Date: Feb 2013
Posts: 4,108
Quote:
Originally Posted by clickhappy View Post
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?
It's serverside, like ASP.net
The output is the HTML-file.


Google "Server-side scripting"
Ferus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.