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. -![pytonic folder structure](https://eduhubdirect.com/folder_structure.png) +![pytonic folder structure](https://betacodings.com/public/assets/img/folder_structure.png) 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 @@ - - + + {{title}} | {{name}} diff --git a/views/404.html b/views/404.html index 2d32b09..c67f216 100644 --- a/views/404.html +++ b/views/404.html @@ -6,8 +6,8 @@ - - + + {{title}} | {{name}} diff --git a/views/405.html b/views/405.html index 2d32b09..c67f216 100644 --- a/views/405.html +++ b/views/405.html @@ -6,8 +6,8 @@ - - + + {{title}} | {{name}} diff --git a/views/index.html b/views/index.html index 85d9607..13ac1cf 100644 --- a/views/index.html +++ b/views/index.html @@ -6,8 +6,8 @@ - - + + {{title}} | {{name}}