diff --git a/README.md b/README.md index a372e54..b1bab36 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Build web applications using the pytonik Folder and file structure. - + This folder structure is commended by **pytonik** and should be used when developing web application. diff --git a/controller/__pycache__/ErrorController.cpython-36.pyc b/controller/__pycache__/ErrorController.cpython-36.pyc new file mode 100644 index 0000000..694a735 Binary files /dev/null and b/controller/__pycache__/ErrorController.cpython-36.pyc differ diff --git a/controller/__pycache__/IndexController.cpython-36.pyc b/controller/__pycache__/IndexController.cpython-36.pyc new file mode 100644 index 0000000..e15802b Binary files /dev/null and b/controller/__pycache__/IndexController.cpython-36.pyc differ diff --git a/public/__pycache__/index.cpython-36.pyc b/public/__pycache__/index.cpython-36.pyc new file mode 100644 index 0000000..9f66346 Binary files /dev/null and b/public/__pycache__/index.cpython-36.pyc differ diff --git a/requirements.txt b/requirements.txt index 5dabba8..74d707e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -pytonik==1.9.8a2 \ No newline at end of file +pytonik==1.9.8rc1 diff --git a/server.py b/server.py new file mode 100644 index 0000000..73afd67 --- /dev/null +++ b/server.py @@ -0,0 +1,8 @@ +from pytonik import serv +import os + +LOCAL_PORT = 6060 + +port = int(os.environ.get("PORT", LOCAL_PORT)) +host = "localhost" if os.environ.get("PORT") == None else "" +serv.run(host=host, port=port) diff --git a/views/400.html b/views/400.html index 2d32b09..c67f216 100644 --- a/views/400.html +++ b/views/400.html @@ -6,8 +6,8 @@ - - + +