Search code examples
djangodeploymentserverweb-deploymentlan

How can I setup my Django server on LAN


I have made a Django employee portal which will be accessed by LAN only. It works when another employee opens it by typing the IP address of the server on their web browser. However I don't have much experience with Django and I think that this is not the proper way to do so. I run my server using python manage.py runserver and use sqlite3 as database.

Is this the correct way to do so? How should I deploy my portal. I am very new to Django and would appreciate some help.

I am using a windows machine and I used pycharm to make my project.

And also I need to know how can I have the server running even when I close pycharm, as ctrl-C or closing pycharm breaks the server


Solution

  • Setting up Django and your web server with uWSGI and nginx

    There is not an official way to do it, what I do effectively, intranet solutions as well, is with nginx and uWSGI (on ubuntu).

    Serving with Windows? perhaps: https://www.toptal.com/django/installing-django-on-iis-a-step-by-step-tutorial is a proper way to do so.