7👍
Unfortunately (I am said teacher), I can’t provide a linux host – only a linux server and a windows host to do development on.
He’s actually running the web server correctly, with the command provided by Paul. But for some reason, it’s only visible in Firefox/Chrome, IE just provides a generic “Webpage cannot be displayed”
But this problem can be solved by using the entire address: http:// isn’t optional like it is in Chrome and Firefox.
5👍
When you run the development server, you can make it available on the local network by specifying the IP address 0.0.0.0
for it, like this:
python manage.py runserver 0.0.0.0:8000
If your Linux box’s local IP address is e.g. 192.168.1.37, you’d access the development server at:
http://192.168.1.37:8000
- [Django]-Django – Using F() expression but obtaining non atomic update
- [Django]-How to manually build a django `HttpRequest`
1👍
Setup nginx to listen on a public port and proxy all of the requests to the django runserver.
- [Django]-What are some of the core conceptual differences between C# and Python?
- [Django]-Django Generated polish plurals form in .po file not working
- [Django]-Django invite code app recommendation?
- [Django]-Can this result in a deadlock in django + postgres?
- [Django]-405 POST method no allowed on heroku with django
1👍
You need to specify the IP clearly in the command line like this in order to let other clients to access. You also have to enable the port 8000 in the firewall:
python manage.py runserver 192.168.1.37:8000
- [Django]-Does Neomodel support modelform? If so, why isn't it picking up default meta attributes / how do I set them?
- [Django]-Doubled POST requests instead of single
- [Django]-Django Meta ordering in related query
- [Django]-Django: related_name attribute (DatabaseError)