I am new here, I have set up my first python project in my XAMPP server. I started my first project with the Django framework. My project setup and running are working fine. I want to access my project URL from another computer. How can I access my Django app from other computers using the XAMPP local server?
Hi, You can access easily you Django app from other computers, just follow these steps:
1. Make sure in settings.py: ALLOWED_HOSTS = [’*’]
2. Run: python manage.py runserver Your IP:8000 // For example if your IP like 192.168.0.100, your command will be python manage.py runserver 192.168.0.100:8000
3. After that accept allowed
Now you can access by the another computer by IP address
Question and answer is powered by AnsPress.io