IMHO, it's a lack of documentation/bug issue, not a python question. I've read through your documentation at least 10 times and watched your video at least 5 times through. The video doesn't even mention anything about the constants.py file. The documentation asks to "check the filesystem paths to make sure they are ok". To me, that means to make sure I have rights to write into the system path that I've specified in constants.py. It doesn't actually say that app.log should be created. Perhaps the following in setupDemo.py is needed:
```
os.system("/bin/touch %s" % LOG_FN)
```
Shall I create a bug report?
setupDemo.py does indeed create the database with shelve, so no need to create the file.
With my corrections, setupDemo.py now works. Unfortunately, I'm still getting an issue when I try to log in:
```
[Fri Mar 31 15:35:10.514620 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: Traceback (most recent call last):, referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.514890 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: File "/var/www/www.domain.org/cgi-bin/redirect-to-login.cgi", line 12, in <module>, referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515029 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: , referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515105 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: auth_url = oxc.get_authorization_url(), referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515212 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: File "/usr/local/lib/python2.7/dist-packages/oxdpython/client.py", line 132, in get_authorization_url, referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515327 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: , referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515396 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: self.register_site(), referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515495 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: File "/usr/local/lib/python2.7/dist-packages/oxdpython/client.py", line 105, in register_site, referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515595 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: , referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515670 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: self.oxd_id = self.__clear_data(response).oxd_id, referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515767 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: File "/usr/local/lib/python2.7/dist-packages/oxdpython/client.py", line 64, in __clear_data, referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515866 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: , referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.515926 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: raise RuntimeError(error), referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.516002 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: RuntimeError, referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.516058 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: : , referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.516122 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: OxD Server Error: internal_error, referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.516177 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: Description:Unknown internal server error occurs., referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.516230 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] AH01215: , referer: https://www.domain.org/cgi-bin/home.cgi
[Fri Mar 31 15:35:10.521045 2017] [cgi:error] [pid 7693] [client 10.131.0.227:51645] End of script output before headers: redirect-to-login.cgi, referer: https://www.domain.org/cgi-bin/home.cgi
```