<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Simple django binding app failed to show template in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164621#M2195</link>
    <description>&lt;P&gt;I know it is a long shot, that can be far away from solving your problem, but... Did you generated python project files? Before building django application you have to run:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunkdj createapp your_app_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;More info on this: &lt;A href="http://dev.splunk.com/view/webframework-djangobindings/SP-CAAAEMS"&gt;http://dev.splunk.com/view/webframework-djangobindings/SP-CAAAEMS&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2014 09:45:50 GMT</pubDate>
    <dc:creator>MaverickT</dc:creator>
    <dc:date>2014-02-25T09:45:50Z</dc:date>
    <item>
      <title>Simple django binding app failed to show template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164620#M2194</link>
      <description>&lt;P&gt;I'm working on a app by django binding. It works fine on my windows server.&lt;BR /&gt;
But on CentOS server when I click a nav menu the following error happens.&lt;/P&gt;

&lt;P&gt;"The path '/ja-JP/dj/redirector/&lt;APPNAME&gt;/home' was not found"&lt;/APPNAME&gt;&lt;/P&gt;

&lt;P&gt;Very basic error. Links to XML views works. &lt;/P&gt;

&lt;P&gt;I installed Splunk on CentOS with rpm and I can import and search data on it.&lt;BR /&gt;
Maybe something is wrong with Django, Python or Web Framework, but I don't know how to check it.&lt;BR /&gt;
Please give me some hint to make djanto binding work. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 09:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164620#M2194</guid>
      <dc:creator>ryu_kahou</dc:creator>
      <dc:date>2014-02-25T09:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Simple django binding app failed to show template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164621#M2195</link>
      <description>&lt;P&gt;I know it is a long shot, that can be far away from solving your problem, but... Did you generated python project files? Before building django application you have to run:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunkdj createapp your_app_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;More info on this: &lt;A href="http://dev.splunk.com/view/webframework-djangobindings/SP-CAAAEMS"&gt;http://dev.splunk.com/view/webframework-djangobindings/SP-CAAAEMS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 09:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164621#M2195</guid>
      <dc:creator>MaverickT</dc:creator>
      <dc:date>2014-02-25T09:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Simple django binding app failed to show template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164622#M2196</link>
      <description>&lt;P&gt;Yes, I created it that way.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 09:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164622#M2196</guid>
      <dc:creator>ryu_kahou</dc:creator>
      <dc:date>2014-02-25T09:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simple django binding app failed to show template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164623#M2197</link>
      <description>&lt;P&gt;I found out why. For anyone with the same problem here is my answer.&lt;BR /&gt;
In ${SPLUNK_HOME}/var/log/splunk/web_service.log there is a error says:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IOError: [Errno 13] Permission denied: '/opt/splunk/etc/apps/framework/.splunkdjrc_splunkweb'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you read the source code of root.py in /opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/&lt;BR /&gt;
you will find it tries to create config file .splunkdjrc_splunkweb if not exists. &lt;BR /&gt;
But my framework directory is dr-xr-xr-x so appdo.py (called by root.py) failed to create a new config file.&lt;BR /&gt;
It is simple to fix it. Give splunk write permission and restart splunkweb.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;chmod u+x framework
splunk restart splunkweb
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't know why splunk user don't have the write permission to framework directory. I installed splunk by rpm according to the following page. Maybe something is wrong with the rpm on CentOS 6.5 64bit.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/Installation/InstallonLinux" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/Installation/InstallonLinux&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:58:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164623#M2197</guid>
      <dc:creator>ryu_kahou</dc:creator>
      <dc:date>2020-09-28T15:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Simple django binding app failed to show template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164624#M2198</link>
      <description>&lt;P&gt;This fixed the same problem for me, but I think you meant:&lt;BR /&gt;
    chmod u+w framework&lt;BR /&gt;
Rather than u+x&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 13:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164624#M2198</guid>
      <dc:creator>mattparlette</dc:creator>
      <dc:date>2014-04-09T13:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Simple django binding app failed to show template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164625#M2199</link>
      <description>&lt;P&gt;Additionally, the whole framework directory tree needs permissions to allow Splunk to create the .pyo files for each .py file.&lt;/P&gt;

&lt;P&gt;This happened to me because of how I was copying the whole tree for testing purposes.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Nov 2014 22:11:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Simple-django-binding-app-failed-to-show-template/m-p/164625#M2199</guid>
      <dc:creator>StephenMarwick</dc:creator>
      <dc:date>2014-11-02T22:11:15Z</dc:date>
    </item>
  </channel>
</rss>

