🏗️」 wip: cgi workinggg

This commit is contained in:
2025-05-27 22:33:04 +02:00
parent 833458e293
commit adde9e0362
25 changed files with 261 additions and 149 deletions

6
test.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/nix/store/kjvgj2n3yn70hmjifg6y0bk9m4rf7jba-python3-3.12.10/bin/python3
# Import modules for CGI handling
import cgi
@ -11,7 +11,9 @@ cgitb.enable()
form = cgi.FieldStorage()
# Set the content type to HTML
print("Content-Type: text/html\n")
print("Content-Type: text/html")
print("")
# Output a simple HTML page
print("<html>")