[ckan-dev] Home/landing page
Andrew Brooks
arb at sat.dundee.ac.uk
Thu Mar 28 10:06:00 UTC 2019
1. home page rendering
it wasn't until I discovered layout1.html (use locate layout1.html to find
it, in templates/home/layout1.html)
that it began to become clear to me. From layout1.hmtl you can follow the
chain of blocks and snippets to see how the page is constructed.
2. debug mode
Remember to pip install -r dev-requirements.txt
otherwise it fails with ImportError: No module named flask_debugtoolbar
my notes also contain a workaround to a problem I've now forgotten, you
need to run
pip install --ignore-installed setuptools
To debug:set debug = true in your ini file
Then you need to edit
sudo vi /etc/apache2/sites-enabled/ckan_default.conf
and remove the processes and threads options from the WSGIDaemonProcess line
my notes also suggest I had to do something similar to this:
chmod go+w
/tmp/myusername/sessions/container_file_lock/b/bc/bc3e18ece69fcff196748bab27c1a1bd3822a351.lock
chmod go+w
/tmp/myusername/sessions/container_file/a/ae/ae26d583817845588f59247f68e3ac8c.cache
now when you get internal server error (and believe me, I've had this a
million times recently)
you will get a full error message either in the apache log
/var/log/apache2//ckan_default.error.log
or on screen. If it appears on screen it is fully interactive showing
variables and everything which is cool.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190328/97ebb10d/attachment-0002.html>
More information about the ckan-dev
mailing list