diff options
| author | Andreu Vallbona <avallbona@gmail.com> | 2024-06-09 09:42:21 +0200 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2024-06-09 04:44:45 -0300 |
| commit | 9f03c6d59b94d4ef34fb7bb7fdcea133c95658d8 (patch) | |
| tree | d7ffa2edbf79083725e18dfde41c90257b540152 /docs | |
| parent | 25df397943f8b4a1bdc192b5fea599e1047a9aff (diff) | |
[5.0.x] Simplified tutorial 1 when describing how to run the dev server.
Backport of 3556f63c4c18440445d93ce5bfb3d652dd76bcb4 from main.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/intro/tutorial01.txt | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index 2d57620a96..e2fb7e38fd 100644 --- a/docs/intro/tutorial01.txt +++ b/docs/intro/tutorial01.txt @@ -151,30 +151,7 @@ Now that the server's running, visit http://127.0.0.1:8000/ with your web browser. You'll see a "Congratulations!" page, with a rocket taking off. It worked! -.. admonition:: Changing the port - - By default, the :djadmin:`runserver` command starts the development server - on the internal IP at port 8000. - - If you want to change the server's port, pass - it as a command-line argument. For instance, this command starts the server - on port 8080: - - .. console:: - - $ python manage.py runserver 8080 - - If you want to change the server's IP, pass it along with the port. For - example, to listen on all available public IPs (which is useful if you are - running Vagrant or want to show off your work on other computers on the - network), use: - - .. console:: - - $ python manage.py runserver 0.0.0.0:8000 - - Full docs for the development server can be found in the - :djadmin:`runserver` reference. +(To serve the site on a different port, see the :djadmin:`runserver` reference.) .. admonition:: Automatic reloading of :djadmin:`runserver` |
