Running Python
-
Hi. I've just "upgraded" to Laragon Lite from XAMPP and I'm really enjoying the experience.
I have installed Python using Tools > Quick Add but when I try to visit a Python page in the browser it just displays the code.
Looking at the httpd.conf file there is no
AddHandler
directive. Do I need to add one? Something likeAddHandler cgi-script .cgi .py
?Thanks
-
Yey! I have fixed it.
I had to edit the httpd.conf file, uncommenting the AddHandler line and adding .py to the list of allowed extensions.
I'm not sure if I need .cgi but I'm leaving that.
(How do I mark this as solved?)