Forums

Dummy question - Is it forced to use the directory structure of sample welcome app?

Hello brothers,

I have just signed to pythonanywhere.com. And it is my first day to use Python for programming a web based simple CRUD application.

I run the bash shell and copy the welcome folder udner applications directory as my sample application path for example a2pro. The directory structure under my application folder like that :

total 68    
-rw-r--r-- 1 ayvos registered_users   55 Apr  8 13:37 ABOUT    
-rw-r--r-- 1 ayvos registered_users  208 Apr  8 13:37 LICENSE   
-rw-r--r-- 1 ayvos registered_users    1 Apr  8 13:37 __init__.py    
-rw-r--r-- 1 ayvos registered_users  119 Apr  8 13:36 __init__.pyc
drwxr-xr-x 2 ayvos registered_users 4096 Apr  8 13:36 controllers
drwxr-xr-x 2 ayvos registered_users 4096 Apr  8 13:37 cron
drwxrwxr-x    2 ayvos registered_users 4096 Apr  8 13:37 databases
drwxrwxr-x 2    ayvos registered_users 4096 Apr  8 13:36 errors 
drwxr-xr-x 2 ayvos    registered_users 4096 Apr  8 13:37 languages 
drwxr-xr-x 2 ayvos    registered_users 4096 Apr  8 13:37 models 
drwxr-xr-x 2 ayvos    registered_users 4096 Apr  8 13:37 modules 
drwxrwxr-x 2 ayvos    registered_users 4096 Apr  8 13:37 private    
-rw-r--r-- 1 ayvos registered_users 1470 Apr  8 13:37 routes.example.py 
drwxrwxr-x 4 ayvos registered_users 4096 Apr  8    13:37 sessions 
drwxr-xr-x 5 ayvos registered_users 4096 Apr  8 13:37    static 
drwxrwxr-x 2 ayvos registered_users 4096 Apr  8 13:37 uploads    
drwxr-xr-x 3 ayvos registered_users 4096 Apr  8 13:36 views

So, should i protect this structure in order to run my custom application on pythonanywhere.com?

[edied by admin: formatting]

Hi there -- welcome to PythonAnywhere!

It looks like you're using web2py. I think in general it's best to leave its directory structure as it is unless you understand it very well and have a particularly good reason to change it. So probably best to leave it is for now!

Thanks giles. I will continue with the initial structure as you suggested. It is running so no need to change currently especially at start point.

Regards, Eray