i renames main.py to web.py and when i tried to run clientele.py scirpt from browser i get:
tail -f ../logs/error_log [Fri Sep 07 15:45:05.455295 2018] [wsgi:info] [pid 18657] mod_wsgi (pid=18657): Exiting process 'web'. [Fri Sep 07 15:45:05.611418 2018] [wsgi:info] [pid 18981] mod_wsgi (pid=18981): Attach interpreter ''. [Fri Sep 07 15:45:05.621563 2018] [wsgi:info] [pid 18983] mod_wsgi (pid=18983): Attach interpreter ''. [Fri Sep 07 15:45:05.646347 2018] [wsgi:info] [pid 18981] mod_wsgi (pid=18981): Imported 'mod_wsgi'. [Fri Sep 07 15:45:05.646440 2018] [wsgi:info] [pid 18981] mod_wsgi (pid=18981, process='downloads', application=''): Loading Python script file '/home/nikos/public_html/downloads.py'. [Fri Sep 07 15:45:05.654268 2018] [wsgi:info] [pid 18982] mod_wsgi (pid=18982): Attach interpreter ''. [Fri Sep 07 15:45:05.656422 2018] [wsgi:info] [pid 18983] mod_wsgi (pid=18983): Imported 'mod_wsgi'. [Fri Sep 07 15:45:05.656504 2018] [wsgi:info] [pid 18983] mod_wsgi (pid=18983, process='web', application=''): Loading Python script file '/home/nikos/public_html/web.py'. [Fri Sep 07 15:45:05.702511 2018] [wsgi:info] [pid 18982] mod_wsgi (pid=18982): Imported 'mod_wsgi'. [Fri Sep 07 15:45:05.702629 2018] [wsgi:info] [pid 18982] mod_wsgi (pid=18982, process='clientele', application=''): Loading Python script file '/home/nikos/public_html/clientele.py'. [Fri Sep 07 15:45:19.194047 2018] [wsgi:error] [pid 18983] [remote 188.165.200.217:28837] /usr/lib64/python3.6/site-packages/pymysql/cursors.py:170: Warning: (1265, "Data truncated for column 'browser' at row 1") [Fri Sep 07 15:45:19.194133 2018] [wsgi:error] [pid 18983] [remote 188.165.200.217:28837] result = self._query(query) [Fri Sep 07 15:45:27.754748 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] [2018-09-07 15:45:27,753] ERROR in app: Exception on /clientele.py [GET] [Fri Sep 07 15:45:27.754783 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] Traceback (most recent call last): [Fri Sep 07 15:45:27.754787 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] File "/usr/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app [Fri Sep 07 15:45:27.754790 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] response = self.full_dispatch_request() [Fri Sep 07 15:45:27.754793 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request [Fri Sep 07 15:45:27.754797 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] rv = self.handle_user_exception(e) [Fri Sep 07 15:45:27.754800 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception [Fri Sep 07 15:45:27.754803 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] reraise(exc_type, exc_value, tb) [Fri Sep 07 15:45:27.754806 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise [Fri Sep 07 15:45:27.754809 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] raise value [Fri Sep 07 15:45:27.754812 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request [Fri Sep 07 15:45:27.754815 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] rv = self.dispatch_request() [Fri Sep 07 15:45:27.754818 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request [Fri Sep 07 15:45:27.754821 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] return self.view_functions[rule.endpoint](**req.view_args) [Fri Sep 07 15:45:27.754824 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] File "/home/nikos/public_html/web.py", line 338, in index [Fri Sep 07 15:45:27.754827 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] pagehit = cur.fetchone()[0] [Fri Sep 07 15:45:27.754832 2018] [wsgi:error] [pid 18983] [remote 46.103.174.201:10246] TypeError: 'NoneType' object is not subscriptable Although i'am hitting other scripts web.py tried to load instead. Why it keeps wanting to load web.py when i clearly give http://superhost.gr/clientele.py or http://superhost.gr/downloads.py I mean even the precedence in conf file is correct. I have web.py last. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
