<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks for that hint,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I should have known earlier… It turned out that the correct value for the field maintenance_frequency for the value “there are no plans to update the data”
 in the dropdown list is “notPlanned” (and not “not planned”).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Now I know where to look for the corresponding values for each dropdownlist entry.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks again,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Michael Haertel</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">GIS & Database Expert</span></i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">International Institute of Tropical Agriculture (IITA,
</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.iita.org"><b>www.iita.org</b></a></span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">)<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Headquarters and West Africa Hub</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">PMB 5320, Oyo Road, Ibadan 200001, Oyo State, Nigeria<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">International Mailing Address: IITA Limited, Part 7th Floor, Grosvenor House, 125 High Street, Croydon, Surrey, CR0 9XP<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Tel: +234 2 7517472  |  USA Tel: +1 201 6336094  |  Fax: +44 208 7113786<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">IITA is a member of the CGIAR Consortium</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"> (</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.cgiar.org"><span lang="EN-GB">www.cgiar.org</span></a></span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">)</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Simone Dalmasso [mailto:simone.dalmasso@gmail.com]
<br>
<b>Sent:</b> Friday, May 06, 2016 10:52 AM<br>
<b>To:</b> Haertel, Michael (IITA)<br>
<b>Cc:</b> geonode-devel@lists.osgeo.org<br>
<b>Subject:</b> Re: [GeoNode-devel] after mass data import : "KeyError: 'request'" when clicking on a document<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">No problems,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">don't think there are plans to make it a table. it is an enumaration and all possible values are in base/enumerations.py.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Glad you solved.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">2016-05-06 11:27 GMT+02:00 Haertel, Michael (IITA) <<a href="mailto:M.Haertel@cgiar.org" target="_blank">M.Haertel@cgiar.org</a>>:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hello Simone,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Field “maintenance_frequency” in base_resourcebase is of type “character varying(255)”. I put “not
 planned” there for each of the datasets. But I noticed that for the manually added documents it is NULL. So I tried to set the value to null for an imported document and it WORKED!</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">THANK YOU VERY MUCH!
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I also tried to put an empty String “” in there and it also works but as soon as I put a character
 in there I get the server error again! But now I see that there is a DropDown in GeoNode which provides the possible values for that field so it probably checks the contents of that field against a Lookup List.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Are there any plans to create a separate table for maintenance frequency and refer to those values
 with a key?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I didn’t think about the field maintenance_frequency even though it was clearly printed in the error
 log because I was just convinced that it was a free text field without double-checking the GUI in the application. Sorry about that.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">You saved my week, thanks again.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Have a nice weekend,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Michael Haertel</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">GIS & Database Expert</span></i><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">International Institute of Tropical Agriculture (IITA,
</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="http://../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.iita.org" target="_blank"><b>www.iita.org</b></a></span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">)</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Headquarters and West Africa Hub</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">PMB 5320, Oyo Road, Ibadan 200001, Oyo State, Nigeria</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">International Mailing Address: IITA Limited, Part 7th Floor, Grosvenor House, 125 High Street, Croydon,
 Surrey, CR0 9XP</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Tel:
<a href="tel:%2B234%202%207517472" target="_blank">+234 2 7517472</a>  |  USA Tel:
<a href="tel:%2B1%20201%206336094" target="_blank">+1 201 6336094</a>  |  Fax: <a href="tel:%2B44%20208%207113786" target="_blank">
+44 208 7113786</a></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">IITA is a member of the CGIAR Consortium</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">
 (</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="http://../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.cgiar.org" target="_blank"><span lang="EN-GB">www.cgiar.org</span></a></span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Simone Dalmasso [mailto:<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>]
<br>
<b>Sent:</b> Friday, May 06, 2016 9:59 AM</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
<b>To:</b> Haertel, Michael (IITA)<br>
<b>Cc:</b> <a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [GeoNode-devel] after mass data import : "KeyError: 'request'" when clicking on a document<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">ok the error is that <span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">self.maintenance_frequency][0][1].title()</span>is empty. Did you correctly
 set it in base_resourcebase?<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">As a note base_resourcebase have to have the same id of the related document_document item.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hope this helps!<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">2016-05-06 10:40 GMT+02:00 Haertel, Michael (IITA) <<a href="mailto:M.Haertel@cgiar.org" target="_blank">M.Haertel@cgiar.org</a>>:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hello Simone,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you for attending to this so promptly.
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This is what is added to the error.log at the time I click on a link:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634679 2016] [:error] [pid 2361] Internal Server Error: /documents/98</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634741 2016] [:error] [pid 2361] Traceback (most recent call last):</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634752 2016] [:error] [pid 2361]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py",
 line 112, in get_response</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634764 2016] [:error] [pid 2361]     response = wrapped_callback(request, *callback_args,
 **callback_kwargs)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634772 2016] [:error] [pid 2361]   File "/usr/local/lib/python2.7/dist-packages/geonode/documents/views.py",
 line 103, in document_detail</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634792 2016] [:error] [pid 2361]     context_dict["social_links"] = build_social_links(request,
 document)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634800 2016] [:error] [pid 2361]   File "/usr/local/lib/python2.7/dist-packages/geonode/utils.py",
 line 609, in build_social_links</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634808 2016] [:error] [pid 2361]     caveats = build_caveats(resourcebase)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634816 2016] [:error] [pid 2361]   File "/usr/local/lib/python2.7/dist-packages/geonode/utils.py",
 line 589, in build_caveats</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634824 2016] [:error] [pid 2361]     caveats.append(resourcebase.maintenance_frequency_title())</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634831 2016] [:error] [pid 2361]   File "/usr/local/lib/python2.7/dist-packages/geonode/base/models.py",
 line 613, in maintenance_frequency_title</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634839 2016] [:error] [pid 2361]     return [v for i, v in enumerate(UPDATE_FREQUENCIES)
 if v[0] == self.maintenance_frequency][0][1].title()</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.634859 2016] [:error] [pid 2361] IndexError: list index out of range</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656303 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>] mod_wsgi (pid=2361): Exception occurred processing WSGI script '/var/www/geonode/wsgi/geonode.wsgi'.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656511 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>] Traceback (most recent call last):</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656645 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 206, in __call__</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656779 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     response = self.get_response(request)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656835 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 194, in get_response</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656885 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.656966 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 236, in handle_uncaught_exception</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657032 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     return callback(request, **param_dict)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657083 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 99, in _wrapped_view</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657310 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     response = view_func(request, *args, **kwargs)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657345 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/views/defaults.py", line 46, in server_error</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657404 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     return http.HttpResponseServerError(template.render(Context({})))</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657478 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657539 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     return self._render(context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657587 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657625 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     return self.nodelist.render(context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657673 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657787 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     bit = self.render_node(node, context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657856 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657897 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     return node.render(context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.657968 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 53, in render</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658012 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     result = self.nodelist.render(context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658061 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658100 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     bit = self.render_node(node, context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658131 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658171 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     return node.render(context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658242 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 155, in render</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658283 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     return self.render_template(self.template, context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658311 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 137, in render_template</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658347 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     output = template.render(context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658375 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658410 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     return self._render(context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658438 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658474 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     return self.nodelist.render(context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658502 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658537 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     bit = self.render_node(node, context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658563 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658598 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     return node.render(context)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658625 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/announcements/templatetags/announcements_tags.py", line 24, in render</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658662 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     request = context["request"]</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658890 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]   File "/usr/lib/python2.7/dist-packages/django/template/context.py", line 56, in __getitem__</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.658940 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>]     raise KeyError(key)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[Fri May 06 03:38:41.659002 2016] [:error] [pid 2361] [remote
<a href="http://127.0.0.1:20011" target="_blank">127.0.0.1:20011</a>] KeyError: 'request'</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Michael Haertel</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">GIS & Database Expert</span></i><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">International Institute of Tropical Agriculture (IITA,
</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="http://../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.iita.org" target="_blank"><b>www.iita.org</b></a></span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">)</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Headquarters and West Africa Hub</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">PMB 5320, Oyo Road, Ibadan 200001, Oyo State, Nigeria</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">International Mailing Address: IITA Limited, Part 7th Floor, Grosvenor House, 125 High Street, Croydon,
 Surrey, CR0 9XP</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Tel:
<a href="tel:%2B234%202%207517472" target="_blank">+234 2 7517472</a>  |  USA Tel:
<a href="tel:%2B1%20201%206336094" target="_blank">+1 201 6336094</a>  |  Fax: <a href="tel:%2B44%20208%207113786" target="_blank">
+44 208 7113786</a></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">IITA is a member of the CGIAR Consortium</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">
 (</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="http://../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.cgiar.org" target="_blank"><span lang="EN-GB">www.cgiar.org</span></a></span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Simone Dalmasso [mailto:<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>]
<br>
<b>Sent:</b> Friday, May 06, 2016 9:36 AM<br>
<b>To:</b> Haertel, Michael (IITA)<br>
<b>Cc:</b> <a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [GeoNode-devel] after mass data import : "KeyError: 'request'" when clicking on a document</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi, could you post the full trace of the error? is in /var/logs/apache2/error.log<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">2016-05-06 10:22 GMT+02:00 Haertel, Michael (IITA) <<a href="mailto:M.Haertel@cgiar.org" target="_blank">M.Haertel@cgiar.org</a>>:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Dear List,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I imported many datasets from a third party application into GeoNode by populating these database tables:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p>1.<span style="font-size:7.0pt">       </span>Base_resourcebase<o:p></o:p></p>
<p>2.<span style="font-size:7.0pt">       </span>Documents_document<o:p></o:p></p>
<p>3.<span style="font-size:7.0pt">       </span>Base_contactrole<o:p></o:p></p>
<p>4.<span style="font-size:7.0pt">       </span>Taggit_tag<o:p></o:p></p>
<p>5.<span style="font-size:7.0pt">       </span>Taggit_taggeditem<o:p></o:p></p>
<p>6.<span style="font-size:7.0pt">       </span>Base_link<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">However the link behind each document doesn’t work. I get an “Internal server error”. According to the log file the error is raised in
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D">-----</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">File "/usr/lib/python2.7/dist-packages/django/template/context.py", line 56, in __getitem__<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Raise KeyError(key)<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">KeyError: ‘request’<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D">-----</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I noticed that when I click on a link to a PDF document for the first time after it has been imported, the column “doc_file” is altered and a suffix is appended to the pdf file
 on disk. So I also checked file permissions but “www-data” (linux)  can write all files there. It only happens for the datasets that I imported myself. Manually added documents work fine.
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I also noticed that for Ids that were manually added and removed afterwards, the links (url: documents/<id>) still work and lead to a “file not found” page without any “internal
 server error” message. So GeoNode somehow knows which ids are valid (accessible) and which are not. Can somebody tell me how it works?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I am not yet very good in python yet and I don’t want to debug the code at this point.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thank you very much for your assistance,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Michael Haertel</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">GIS & Database Expert</span></i><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4A452A">International Institute of Tropical Agriculture (IITA,
</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><a href="http://../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.iita.org" target="_blank"><b>www.iita.org</b></a><b><span style="color:#4A452A">)</span></b></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Headquarters and West Africa Hub</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">PMB 5320, Oyo Road, Ibadan 200001, Oyo State, Nigeria</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">International Mailing Address: IITA Limited, Part 7th Floor, Grosvenor House, 125 High Street, Croydon, Surrey, CR0
 9XP</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif"">Tel:
<a href="tel:%2B234%202%207517472" target="_blank">+234 2 7517472</a>  |  USA Tel:
<a href="tel:%2B1%20201%206336094" target="_blank">+1 201 6336094</a>  |  Fax: <a href="tel:%2B44%20208%207113786" target="_blank">
+44 208 7113786</a></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">IITA is a member of the CGIAR Consortium</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif"">
 (</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><a href="http://../../../AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/FGKNP1ID/www.cgiar.org" target="_blank"><span lang="EN-GB">www.cgiar.org</span></a></span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif"">)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><br>
_______________________________________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-devel</a><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">--
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Simone <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">--
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Simone <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<p class="MsoNormal">Simone <o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>