Basic structure of a Python application

11 de agosto, 2016 @ 20:17 — 0 comentarios

In order to function properly a Python application must respect the following basic structure:

 |_____ public
 |_____ tmp

That is, your application must contain at least one file, which will be the gateway to your application.

In addition, your application should contain a directory called public, which will be the root of your website and where you will place the static files of your application (images, CSS, JS, ...).

Finally, you need a directory called tmp, which will allow you to force a reboot of your Python application. To do this you should run the following command from the command line:

touch tmp/restart.txt