<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by AYUSHI SHARMA on Medium]]></title>
        <description><![CDATA[Stories by AYUSHI SHARMA on Medium]]></description>
        <link>https://medium.com/@ayushi21095?source=rss-713ee98c7f5e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Ga4dhPmpLp9um4JBJ7gC9Q.jpeg</url>
            <title>Stories by AYUSHI SHARMA on Medium</title>
            <link>https://medium.com/@ayushi21095?source=rss-713ee98c7f5e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 14:38:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayushi21095/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Show Last N Month Data Based On Selected Month]]></title>
            <link>https://medium.com/@ayushi21095/show-last-n-month-data-based-on-selected-month-19f0d9019eae?source=rss-713ee98c7f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/19f0d9019eae</guid>
            <category><![CDATA[last-n-month]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[tableau-community]]></category>
            <dc:creator><![CDATA[AYUSHI SHARMA]]></dc:creator>
            <pubDate>Fri, 17 Jul 2020 13:05:49 GMT</pubDate>
            <atom:updated>2020-07-17T17:00:23.757Z</atom:updated>
            <content:encoded><![CDATA[<h3>Show Last N Month Data Based On Selected Month In Tableau</h3><p>Hi Everyone,</p><p>So, In this article, we are going to see how we can visualize last N month data (Last 4 or 6-month data) in Tableau when we select any particular month.</p><blockquote><strong>“Month of Test Date” is my date Field</strong></blockquote><p><strong>STEP-1: </strong>Create a Parameter named “Date Parameter”</p><ol><li>Select <strong>Data Type</strong> as Date</li><li>If you need any particular date format you can change it from <strong>Display Format.</strong></li><li>Select List in <strong>Allowable Values</strong></li><li>Then Select “When workbook open” if your input sheet will keep on updating every month. If the data is fixed you can also select “Fixed”. After selecting as explained above choose the <strong>Date field</strong> from your data.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*QDgdudL46ls18de9QFHvIg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*Gc2-5kwtaBjCMsltyl8wIw.jpeg" /></figure><p><strong>STEP-2:</strong> Create Calculated Field “last 6 month”</p><blockquote>DATEDIFF(‘month’,[Month of Test Date],[Date Parameter]) &gt;=0 and <br>DATEDIFF(‘month’,[Month of Test Date],[Date Parameter]) &lt; 6</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*a6qj5RO4RFKKkBnUVq_DRw.png" /></figure><p><strong>STEP- 3:</strong> Drag Calculated field “last 6 months” to Filter and choose<strong><em>“TRUE”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*WPt-aW2W4CWnmJj9H6f5OQ.png" /></figure><p><strong>Step-4: </strong>Go to the parameter and select “<strong>Show Parameter Control</strong>”, now your parameter will be displayed on the right side in sheet and if you select any particular month from here, the last 6 months data will be displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*6OVlIP5BXaW1FmlLQZxh9A.png" /><figcaption>Select Show Parameter Control</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*HCx1jv3VmHD36-GrdwNyFg.png" /><figcaption>From here on the right part, you can select a Particular month</figcaption></figure><p>I hope this guide is useful to you.</p><p>Happy Learning !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19f0d9019eae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Refrigerators in India: 2020 (Expert Choices)]]></title>
            <link>https://medium.com/@ayushi21095/best-refrigerators-in-india-2020-expert-choices-1e0ad1ef0140?source=rss-713ee98c7f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e0ad1ef0140</guid>
            <category><![CDATA[best-refrigerators]]></category>
            <category><![CDATA[lg]]></category>
            <category><![CDATA[best-refrigerator-brand]]></category>
            <category><![CDATA[refrigerator]]></category>
            <dc:creator><![CDATA[AYUSHI SHARMA]]></dc:creator>
            <pubDate>Mon, 06 Jul 2020 15:14:27 GMT</pubDate>
            <atom:updated>2020-07-06T15:14:27.808Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are looking for the <strong>Best Refrigerator in India</strong> with their reviews and guidance, then this guide will surely be helpful to you. In this article, we have covered the <strong>Top best refrigerator in India in 2020</strong>.</p><p>I know the struggle of finding the <strong>Best Refrigerator</strong> is real because trust me selecting the best one to buy is no less than entering into a long-term relationship as you need to consider every aspect of it before making the final commitment.</p><p><strong>Refrigerators</strong> have now become a part of every family. We can totally rely on it whether it be summer or winter. They are not just used to provide cold water or ice cubes but also helps to keep food and vegetables fresh with their taste intact.</p><p>We are here to help our reader to buy the right choice of refrigerators from various range of fridge which available in the market.</p><p>If you want just refrigerators the opt anyone from the market but want to buy the best fridge then refer below link,</p><blockquote><a href="https://artistyles.com/top-9-best-refrigerator-in-india-2020-expert-choices/"><em>Top 10 Best Refrigerators with Buying Guides &amp; Reviews</em></a></blockquote><p><strong>If you refer and like this then just Clap for us!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e0ad1ef0140" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with SOAP based Web Service using Python]]></title>
            <link>https://medium.com/@ayushi21095/working-with-soap-based-web-service-using-python-8f532195bc6c?source=rss-713ee98c7f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f532195bc6c</guid>
            <category><![CDATA[soap]]></category>
            <category><![CDATA[web-services]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[zeep]]></category>
            <category><![CDATA[wsdl]]></category>
            <dc:creator><![CDATA[AYUSHI SHARMA]]></dc:creator>
            <pubDate>Fri, 24 May 2019 11:08:05 GMT</pubDate>
            <atom:updated>2020-08-17T12:19:34.000Z</atom:updated>
            <content:encoded><![CDATA[<p>Web services is a standardized way or medium to propagate communication between the client and server applications on the World Wide Web. Web services provide a common platform that allows multiple applications built on various programming languages to have the ability to communicate with each other</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0wsrKk90w9q-FIV7" /></figure><p><strong>What is SOAP?</strong></p><p>SOAP is known as the Simple Object Access Protocol.</p><p>SOAP is simply an XML-based messaging protocol for exchanging information among computers, , as explained in detail <a href="https://www.tutorialspoint.com/soap/what_is_soap.htm">here</a>. But hey, who would like to write lines of XML code for only a simple request? Yeah, neither would I. But, the good thing is that we actually need not to. Because, Zeep does all the “<em>hard work</em>” for us while all we need to do is to create a dictionary that contains the required fields.</p><p><strong>What is ZEEP ?</strong></p><p>Zeep is a pure-python module. Zeep inspects the WSDL document and generates the corresponding code to use the services and types in the document. This provides an easy to use programmatic interface to a SOAP server.</p><p>You can read the documentation for ZEEP <a href="https://python-zeep.readthedocs.io/en/master/">here</a>.</p><p><strong>Implementing ZEEP Client:</strong></p><p>The first thing that you’ll need to do is, install the zeep python library as:</p><pre>pip install zeep</pre><p>In my case, the client’s system had a relatively simple XML schema for requests. Pretty simple, I admit.</p><pre>&lt;username&gt;SAP_username&lt;/username&gt;<br>&lt;password&gt;SAP_password&lt;/password&gt;</pre><p>Now, in your python code, you’ll need to import Client from zeep and then instantiate the same by passing the WSDL URL. This can simply be done as follows:</p><pre><strong>from </strong>zeep <strong>import </strong>Client<br>wsdl = &quot;<a href="http://rr-se-00000240:8181/ws/BA00078?wsdl">http://xxxxxxxxxxx:8181/ws/xxxxxxxxx?wsdl</a>&quot;<br>client <strong>=</strong> Client(wsdl)</pre><p>You can also pass user autherntication details(username and passowrd) in case the wsdl is password protected. For this, you’ll need to create the Session object as shown below:</p><pre><strong>from</strong> zeep <strong>import</strong> Client<br>from zeep.transports import Transport<br><strong>from</strong> requests <strong>import</strong> Session<br><strong>from</strong> requests.auth <strong>import</strong> HTTPBasicAuth</pre><pre>wsdl <strong>=</strong> &lt;wsdl_url&gt;<br>session <strong>=</strong> Session()<br>session.auth <strong>=</strong> HTTPBasicAuth(&lt;username&gt;, &lt;password&gt;)</pre><p>#An additional argument ‘transport’ is passed with the authentication details</p><pre>client=Client(wsdl,transport=Transport(session=session))</pre><p><strong>Passing Parameters</strong></p><p>As I mentioned above, you just need to pass the request parameters as a standard python dictionary and zeep will internally convert it to the final xml.</p><pre>request_data={&#39;SAPUsername&#39; : SAP_username ,<br>              &#39;SAPPassword&#39; : SAP_password}</pre><p>Zeep detects the xml schema from the wsdl file that is passed while creating the client object. Wsdl(Web Service Description Language) contains the required description about the endpoint. It contains the list of operations available and also states the parameters that each operation requires. Zeep uses this information to map the passed request dictionary to the corresponding xml.</p><p><strong>Envoking Web Service Methods:</strong></p><p>You can use the operations defined in the wsdl using the simple syntax shown below:</p><pre>response=client.service.xxxxxxx(**request_data)</pre><pre>#Here &#39;request_data&#39; is the request parameter dictionary.</pre><p>It’s worth mentioning that I had my operation, i.e. “xxxxxxx” already defined in the client’s XML Schema as<strong>&lt;wsdl operation name=“</strong>xxxxxxx<strong>”&gt;</strong> So, it can return a valid response once it receives the required arguments, e.g. SAP_username, SAP_password.</p><p><strong>Last Words</strong></p><p>I hope this article helps you with making your first SOAP requests in Python and saves you some time from spending hours scrolling through pages of documentation for a very simple task. Here you can have a look at my script on <a href="https://github.com/ayushi21095/User_details">GitHub Gist</a> if you’d like to see the complete code.</p><p>#Assuming that the operation named &#39;sendData&#39; is defined in the passed wsdl.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f532195bc6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Steps to Deploy Python Django Web Application on Windows IIS Server]]></title>
            <link>https://medium.com/@ayushi21095/steps-to-deploy-python-django-web-application-on-windows-iis-server-379b2b87fcf9?source=rss-713ee98c7f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/379b2b87fcf9</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[web-applications]]></category>
            <category><![CDATA[windows-iis]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[AYUSHI SHARMA]]></dc:creator>
            <pubDate>Fri, 17 May 2019 14:41:13 GMT</pubDate>
            <atom:updated>2019-05-17T14:54:10.402Z</atom:updated>
            <content:encoded><![CDATA[<p>Though many Django Developer might find it might consider it blasphemous, sometimes it is actually necessary to deploy Django applications on Windows/IIS, especially when working with a client that has based its infrastructure around the Windows ecosystem.</p><p>This short, focused tutorial walks you through the basic setup of a Django project on Windows. It covers the installation of Python, activating environment.</p><h3>1. Install Python:</h3><ol><li>Download the latest Windows x86–64 executable installer from <a href="https://python.org/">https://python.org</a></li><li>Double-click the Python installer. If you get a security warning at this point, click “Run” to continue.</li><li>In the Python Setup dialog that appears, click “Customize Installation”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*swH7fqi4FcC1F48HDUsRfA.png" /></figure><p>4. On the Optional Features step, leave the default settings and click “Next”</p><p>5. On the Advanced Options step, make the following changes:</p><ul><li>Check the “Install for all users” box (note that this will also check the “Precompile standard library” box)</li><li>Check “Add Python to environment variables”</li><li>In the input box below “Customize install location” change the value to the following: C:\Python35</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*Ze504X4cyuUlnnNcrsfPAQ.png" /></figure><p>6. Click “Install”</p><p>7. When the installation is complete, click “Close”</p><h4>Confirm the Python Installation</h4><ul><li>Open a new Command Prompt. Note that if you already had a command prompt open you will need to close and reopen it, as the Python installation process added new environment variables and any open command prompts will not have the new environment variables available.</li><li>Type python and press Enter. This should open a Python interpreter:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*aF61-r5fYJSxXIoq2ZgyqA.png" /></figure><blockquote>If instead of seeing the Python interpreter you see the error “‘python’ is not recognized as an internal or external command …” this likely means the “Add Python to environment variables” box was not checked on the Advanced Options step of the installation process. If this occurs you can uninstall and reinstall Python and make sure to check the “Add Python to environment variables” checkbox, or add the following to the System environment “Path” variable:<br> C:\Python35;C:\Python35\Scripts</blockquote><ul><li>Exit the Python interpreter by typing exit() and pressing Enter.</li><li>Close the Command Prompt.</li></ul><h3><strong>2. Create and Configure a Python Virtual Environment for Your Application</strong></h3><p>Python virtual environments are used to isolate application-specific Python environments from the system-wide Python environment. Even if you will only be running one application on a server, it’s good practice to create a virtual environment for your application to keep the virtual environment free from any unanticipated side effects of system updates.</p><p>1. Open a Command Prompt.</p><p>2. Navigate to the root of the C: drive: <em>cd C:</em>\ [then press Enter]</p><p>3. Create a new directory in which to store your virtual environments:<br><em>mkdir virtualenvs</em> [then press Enter]</p><p>4. Navigate to the newly created virtualenvs directory:<br> <em>cd virtualenvs</em> [then press Enter]</p><p>5. Create a new virtual environment. We’ll use the name foo for the purposes of illustration. Note that if you change this, you’ll have to adjust the rest of the steps in this post accordingly. <em>python -m venv Eric</em> [then press Enter]</p><p><strong>Activate the Virtual Environment and Upgrade pip</strong></p><p>With the virtual environment created, the next steps are to activate the virtual environment and update pip, Python’s package installer.</p><p>First, we’ll activate the virtual environment:</p><ul><li>Open a Command Prompt</li><li>Navigate to the virtual environment’s directory:<br> cd C:\virtualenvs\Eric [then press Enter]</li><li>Activate the virtual environment:<br> Scripts\activate.bat [then press Enter]</li><li>At this point you will see (Eric) at the beginning of the command prompt, indicating the virtual environment is active:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*LRfgSean3HO-VONUKEVF_w.png" /></figure><blockquote>Once a virtual environment is active, all Python-related commands such as python, pip, etc. will be executed against the active virtual environment. For example, with the virtual environment active if a package is installed with pip, that package will only be available in the virtual environment, not in the system’s global Python environment.</blockquote><p>Next, to ensure we don’t run into installation or security issues with pip, let’s upgrade it:</p><ul><li>In the same Command Prompt, you opened above, with the virtual environment activated, run the following command:<br><em> python -m pip install — upgrade pip</em> [then press Enter]</li><li>If an update for pip is available, it will be downloaded and installed.</li><li>Then install all the dependent modules and packages related to the project using command and make sure you are running it in same path where requirement.txt file is present by- <em>pip install -r requirement.txt.</em></li></ul><h3><strong>3. Install Django and Download Django Application from github</strong></h3><ul><li>Install gitbash from <a href="https://git-scm.com/download/win">https://git-scm.com/download/win</a> for 64-bit</li><li>Open the gitbash and go to the path where you want to copy your project.</li><li>Download the project from git using command in git bash: <em>git clone </em><a href="https://github.com/ayushi21095/User_details.git"><em>https://github.com/ayushi21095/User_details.git</em></a></li><li>Go to the path where your project file is located in command prompt where virtual environment was activated.</li><li>In the Command Prompt with the virtual environment activated, install Django: <em>pip install wfastcgi</em> [then press Enter]</li><li>Start the Django development server: <em>python manage.py runserver</em> [then press Enter]</li><li>You should see the following output:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*pqmmiLTuX2N5wtl2tf1EPw.png" /></figure><ul><li>In a browser on the server, go to <a href="http://localhost:8000/">http://localhost:8000</a><br> You should see the following:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*sIGgV1i1zAxx-T1dPkab2Q.png" /></figure><ul><li>Go back to the Command Prompt and press Ctrl-C to stop the Django development server.</li></ul><h3><strong>4. Install IIS</strong></h3><p>Even if you already have IIS installed, you may need to go through these steps to install the CGI feature if it wasn’t installed as part of the original IIS installation.</p><ul><li>Open the Control Panel</li><li>In the search box in the top right, type “windows features” (without the quotes)</li><li>In the search results under “Programs and Features” click “Turn Windows features on or off.” This launches the Add Roles and Features Wizard.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*fCslzlgEUalsKzPNhp_E_Q.png" /></figure><ul><li>Make sure to check CGI box.</li></ul><h4><strong>Verify the IIS Installation</strong></h4><ul><li>Open a web browser on the server.</li><li>Enter <a href="http://localhost/"><em>http://localhos</em>t</a> in the address bar and press Enter. You should see the default IIS page.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*DHsFkM_g1h-1n-YIxHskBw.png" /></figure><ul><li>If you don’t see the default IIS page:</li></ul><blockquote>1. Open Control Panel</blockquote><blockquote>2. Type “services” in the search box</blockquote><blockquote>3. Under “Administrative Tools” click “View local services”</blockquote><ul><li>Scroll to the bottom of the list and ensure you see “World Wide Web Publishing Service” listed, and that the status is “Running”.</li></ul><h3><strong>5.Configure IIS to Serve Django Applications</strong></h3><p>Thus far we’ve accomplished the following:</p><ul><li>Installed Python</li><li>Installed IIS with CGI</li><li>Created and activated a Python virtual environment</li><li>Installed Django and wfastcgi in a Python virtual environment</li><li>Created a new Django project</li><li>Ran the Django project using the Django development server</li></ul><p>With all the underlying infrastructure in place, the last step is to configure IIS to serve Django applications. The Django development server is not designed for production use, so using a production-quality web server such as IIS is mandatory for production applications.</p><p>As with previous steps you’ll need to adjust accordingly for the actual application you want to deploy, but for the purposes of this documentation we’ll configure IIS to serve the test Django application we created in the previous steps.</p><h3><strong>6.Configure FastCGI in IIS</strong></h3><ul><li>Open the IIS Manager by clicking the Windows button, clicking on Administrative Tools, and double-clicking Internet Information Services (IIS) Manager</li><li>Click on the name of the server in the list on the left. If you see the following dialog box, check the box “Do not show this message” and click “No.” (You can always get to this later if necessary by clicking “Get New Web Platform Components” under “Actions” on the right-hand side of IIS Manager.)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*cWm_xOFEj_9DQ-YLRaMMZg.png" /></figure><ul><li>Double-click the “FastCGI Settings” icon</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*CwlWULgp4YJ8srfiwONADw.png" /></figure><ul><li>Under “Actions” on the right-hand side click “Add application …”</li><li>In the Add FastCGI Application dialog, in the “Full Path” box, type the path to the Python executable for the application’s virtual environment:<br> <em>C:\virtualenvs\Eric\Scripts\python.exe</em></li><li>In the Arguments input box, type the path to the wfastcgi.py file in the application’s virtual environment:<br> <em>C:\virtualenvs\Eric\Lib\site-packages\wfastcgi.py</em></li><li>At this point your settings in the Add FastCGI Application dialog should look like this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*HaxhagAFDsgFPOj94JI0DA.png" /></figure><ul><li>With the Add FastCGI Application dialog box still open, under the “General” section, click on the “Environment Variables” line, then click the gray “…” button that appears next to (Collection) on the right-hand side of the line. This opens the Environment Variables Collection Editor dialog.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*ypIUgcytOwHhw0Z9A6x4Jg.png" /></figure><ul><li>In the Environment Variables Collection Editor dialog, click “Add”</li><li>In the “Name properties” section on the right, click the input box to the right of “Name,” remove the “Name” text that is already in the input box, and enter DJANGO_SETTINGS_MODULE (note that this MUST be entered in ALL CAPS)</li><li>Click the input box to the right of “Value” and enter Ericsson.settings</li><li>Click “Add” again and enter the following:<br> Name: PYTHONPATH<br> Value: C:\User_details\Ericsson</li><li>Click “Add” again and enter the following:<br> Name: WSGI_HANDLER<br> Value: Ericsson.wsgi.application</li><li>At this point you will have three environment variables:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*LXuZJsFFETJgskV4sVixTw.png" /></figure><blockquote><strong>NOTE:</strong> All of these settings are CASE-SENSITIVE. They must be entered with exactly the case indicated here in order to work.</blockquote><ul><li>Click “OK” to close the EnviromentVariables Collection Editor.</li><li>Click “OK” to close the Add FastCGI Application dialog.</li></ul><h3><strong>7. Create and Configure a New IIS Web Site</strong></h3><p>Next we need to create a new web site in IIS for the Django application, and add a Handler Mapping to the newly created web site so that requests coming to the IIS web site are passed off to the Django application for processing.</p><ul><li>Open IIS Manager</li><li>On the left-hand side under Connections, expand the tree under the server name by clicking on the arrow to the left of the server name</li><li>Right-click on the Sites folder and click “Add Website …”</li><li>For the site name enter Ericsson</li><li>For the physical path, type the following: <em>C:\User_details\Ericsson</em></li><li>For the purposes of this example configuration, change the Port to 81, since the Default site is running on port 80. For a real-world application you’ll likely want to use name-based virtual hosting by adding bindings and run the site on port 80.</li></ul><p>You may leave the “Host name” blank. At this point the Add Website dialog should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*Vgvke0J_wneDaBIypBBDUg.png" /></figure><ul><li>Click “OK”</li></ul><p>Next, we’ll add a FastCGI handler mapping to this site so the requests coming into the site will be processed by the Django application.</p><ul><li>In IIS Manager, expand the Sites folder on the left-hand side and click on the site</li><li>On the right, double-click “Handler Mappings”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*bd11A-WO9dJCDNDZlbiPsQ.png" /></figure><ul><li>On the right, under “Actions,” click “Add Module Mapping”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*MUgFQ_XoHl_y99l4nKtGIQ.png" /></figure><ul><li>In the “Request path” box enter an asterisk: *</li><li>Click the arrow on the right-hand side of the “Module” box and select “FastCgi Module”</li></ul><blockquote>NOTE: Make sure to select <strong>FastCgi Module</strong>, <em>NOT</em> CgiModule</blockquote><ul><li>In the “Executable” box, enter the following:<br> C:\virtualenvs\Eric\Scripts\python.exe|C:\virtualenvs\Eric\Lib\site-packages\wfastcgi.py</li></ul><blockquote>Note that the character after python.exe is a pipe (|), which is entered by pressing Shift-\ on your keyboard</blockquote><ul><li>In the “Name” box, enter Django Handler (you can call this whatever you want; it’s merely a friendly name for the module mapping)</li><li>The Add Module Mapping dialog should now look like this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*hE2wNbis5JSKLEdIpL3iLw.png" /></figure><ul><li>Click the “Request Restrictions” button and uncheck the “Invoke handler only if request is mapped to:” checkbox</li><li>Click “OK” to close the Request Restrictions dialog</li><li>Click “OK” to close the Add Module Mapping dialog</li><li>When prompted “Do you want to create a FastCGI application for this executable?” click “No” since we created the application earlier.</li></ul><blockquote>Note that you CAN have it create the FastCGI application for you from the module mapping, but the settings seem to be different and the end result isn’t fully editable. I also detailed how to create the FastCGI application to be as thorough as possible with all the various pieces involved.</blockquote><ul><li>You will now see the Django Handler listed in the Handler Mappings for the foo website:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*9BXsty7-_TCL8wjAoZL90g.png" /></figure><p>At this point everything should be working, so verify by loading the application in a browser.</p><ul><li>Open a browser on the server</li><li>Browse to <a href="http://localhost:81/">http://localhost:81</a></li></ul><p>You should see the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*sIGgV1i1zAxx-T1dPkab2Q.png" /></figure><p>This is the same result as when we ran the Django test server earlier, but now the requests are being handled by IIS.</p><h3><strong>8. Additional Steps-</strong></h3><p>Make sure in setting.py file under you project folder you do:</p><p>1. DEBUG = False</p><p>2. ALLOWED_HOSTS= [‘localhost’,’server ip’]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=379b2b87fcf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>