Saturday, December 7, 2019

Deploy Django application on XAMPP apache Server (Windows)

Below are the steps to deploy the Django application on XAMPP apache server.

Assuming that you have already downloaded and installed the following.




  • After copying the file from the folder rename it with mod_wsgi.so and paste the file where the XAMPP server is installed on your system inside the modules.


  • Make change in the httpd.conf file



  • Add the below line in httpd.conf


  • Create a Django project inside the htdocs folder.

  • After completion of the project when ready to deploy once again open the httpd.conf and add few more lines of code.




  • After add the above lines of code then restart the system and run the XAMPP server to check 



6 comments:

  1. Hi, thanks for your contribution. I already tried this solution that you propose, and it works with sqlite, but it doesn't work with mysql. Could you help me how to do it with mysql.

    ReplyDelete
  2. Hi, just a question, will this method allow other computers on an intranet to connect to my django application? If so, what is the link that they would be following to do this?

    ReplyDelete
  3. Great job for publishing such a nice article about Xampp. Your article isn’t only useful but it is additionally really informative. Thank you because you have been willing to share information with us. how to change port number in xampp server

    ReplyDelete

Git Commands

Git Version   To check the git version Git -v       Git Clone To clone the repository, use the following command: Git clone [u...