<?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: How to restart Django web framework? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-restart-Django-web-framework/m-p/133931#M1913</link>
    <description>&lt;P&gt;I talked to Splunk support, and they suggested the following: &lt;CODE&gt;$SPLUNK_HOME\bin\splunk.exe restartss&lt;/CODE&gt; You'll have to enter splunk admin credentials the first time, and it's not as fast as I'd like, but it does restart Django. &lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2015 17:27:16 GMT</pubDate>
    <dc:creator>bnorthway</dc:creator>
    <dc:date>2015-06-10T17:27:16Z</dc:date>
    <item>
      <title>How to restart Django web framework?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-restart-Django-web-framework/m-p/133929#M1911</link>
      <description>&lt;P&gt;I am developing a Splunk app. As with normal Django development (using runserver or your favorite application server), sometimes it is necessary to restart the Python process that is running Django. I don't need to restart the whole Splunk service. Does anyone know how I would restart the Python executable that loads the Django bindings/etc? Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 19:09:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-restart-Django-web-framework/m-p/133929#M1911</guid>
      <dc:creator>bnorthway</dc:creator>
      <dc:date>2015-06-02T19:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to restart Django web framework?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-restart-Django-web-framework/m-p/133930#M1912</link>
      <description>&lt;P&gt;According to what I'm seeing and reading, it appears to me that you can't do this with the default configuration. (And in fact, a netstat on the splunkd process shows that it's a single PID that owns both ports being opened - 8000 and 8089, so while they're separate logical entities, it's the same process running both.)&lt;/P&gt;

&lt;P&gt;Reading further, I found that in order for this to work, you need to run Splunk in  &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Admin/StartSplunk"&gt;legacy mode&lt;/A&gt;- which according to the documentation is not the best way to run splunk. (See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Admin/StartSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Admin/StartSplunk&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 19:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-restart-Django-web-framework/m-p/133930#M1912</guid>
      <dc:creator>KenWhitesell</dc:creator>
      <dc:date>2015-06-02T19:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to restart Django web framework?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-restart-Django-web-framework/m-p/133931#M1913</link>
      <description>&lt;P&gt;I talked to Splunk support, and they suggested the following: &lt;CODE&gt;$SPLUNK_HOME\bin\splunk.exe restartss&lt;/CODE&gt; You'll have to enter splunk admin credentials the first time, and it's not as fast as I'd like, but it does restart Django. &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 17:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-restart-Django-web-framework/m-p/133931#M1913</guid>
      <dc:creator>bnorthway</dc:creator>
      <dc:date>2015-06-10T17:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to restart Django web framework?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-restart-Django-web-framework/m-p/133932#M1914</link>
      <description>&lt;P&gt;I have the same problem - developing apps using the django bindings every time you make a change you need to restart the splunk service according the docs. Not sure how this will fly in production. &lt;/P&gt;

&lt;P&gt;The &lt;CODE&gt;restartss&lt;/CODE&gt; method mentioned works as an alternative, still not optimal though.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 02:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-restart-Django-web-framework/m-p/133932#M1914</guid>
      <dc:creator>andrewthyrd</dc:creator>
      <dc:date>2018-01-31T02:58:56Z</dc:date>
    </item>
  </channel>
</rss>

