On Tue, Apr 28, 2009 at 02:03:45PM +0300, Oleg Oltar wrote: > I just wanted to make tests on development server from other PC > (with IE installed), on my local network. How can I do it?
The information you seek is easily accessible to you via a number of methods that require no specific knowledge of Django. I'll answer your question and also explain how you could have found the answer yourself so that you can more easily find the answer to future questions you may have. You will need to make the development server listen on a network interface that is accessible from other hosts on your network. By default it listens on the loopback interface [1], which is only accessible from the host on which it is running. You can specify the IP address of a particular network interface or you can use "0.0.0.0" which will cause it to listen on all available interfaces. Instructions for specifying the IP address to use can be found in the documentation of the development server [2]. This documentation can be found by searching the Web for "django development server" [3]. That documentation states: >> runserver >> >> django-admin.py runserver [port or ipaddr:port] >> >> Starts a lightweight development Web server on the local machine. >> By default, the server runs on port 8000 on the IP address >> 127.0.0.1. You can pass in an IP address and port number >> explicitly. >> >> [...] >> >> Note that the default IP address, 127.0.0.1, is not accessible >> from other machines on your network. To make your development >> server viewable to other machines on the network, use its own IP >> address (e.g. 192.168.2.1) or 0.0.0.0. [1]: <http://en.wikipedia.org/wiki/Loopback> [2]: <http://docs.djangoproject.com/en/1.0/ref/django-admin/#runserver> [3]: <http://lmgtfy.com/?q=django+development+server> Such information is also provided by the in-built help for django-admin.py and manage.py. If you run either of them without arguments, it will print a message suggesting that you run it again with the argument "help". If you run "manage.py help" or "django-admin.py help" (or if you run them with the --help switch) a list of topics will be presented. One of those topics is "runserver". If you run "manage.py help runserver" or "django-admin.py help runserver" usage information specific to the development server will be shown. >> $ ./manage.py help runserver >> Usage: manage.py runserver [options] [optional port number, or ipaddr:port] >> >> Starts a lightweight Web server for development. It is very common for command line utilities to print usage information when you run them with the --help switch or without any arguments. It's a good idea to try this when you are unsure about how to use such a utility. When you are using UNIX or a a UNIX-like operating system (e.g., GNU/Linux or Apple Mac OS X) this information is also available as a manual page [4] for django-admin.py. To see that page, run "man django-server.py". On such operating systems, manual pages are available for nearly all installed programs. In many technical forums (e.g., mailing lists, newsgroups, and Web forums) it is considered courteous to explore all of the aforementioned sources of information prior to posing a question such as yours to other people [5], and also to indicate in your message to others what attempts you have already made at finding your answer. This shows that you respect other people's time and that you are not simply being lazy. Failing to do so is relatively common for people who are new to such technical discussions on the Internet, and it's common in places other than the django-users list for experienced participants to ignore such requests for help or to simply reply with "RTFM" [6]. Sometimes this is rudeness, and sometimes it is simply the result of busy people moving on to help solve problems that people cannot be expected to solve for themselves by simply reading documentation and searching the Web. [4]: <http://en.wikipedia.org/wiki/Man_page> [5]: <http://www.catb.org/~esr/faqs/smart-questions.html#before> [6]: <http://www.catb.org/~esr/faqs/smart-questions.html#rtfm> -- Phil Mocek --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---