Skip to content

Commit c733c84

Browse files
jaap3berkerpeksag
authored andcommitted
Tweak Vagrant setup instructions (#1303)
1 parent 3bfef20 commit c733c84

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

docs/source/install.rst

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,35 @@ Here are two ways to hack on python.org:
1111
Easy setup using Vagrant
1212
------------------------
1313

14+
First, install Vagrant_ and Ansible_ on your machine.
15+
You should then be able to provision the Vagrant box.
16+
1417
::
1518

1619
$ vagrant up
17-
$ vagrant ssh
18-
# go to pythondotorg/ directory and activate virtualenv, then run
19-
$ ./manage.py runserver 0.0.0.0:8000
20-
# on your local shell
21-
$ google-chrome http://localhost:8001/
2220

23-
The box will be provisioned by Ansible_ 2.4.1.0 with Python 3.5, a virtualenv
24-
set up with requirements installed, and a database ready to use.
21+
The box will be provisioned with Python 3.5, a virtual environment with all
22+
the requirements installed, and a database ready to use.
2523

26-
The box also creates a superuser with username ``cbiggles`` for you. However, you
27-
will need to set a password before using it::
24+
Once this is done it's time to create some data and run the server::
2825

26+
# SSH into the Vagrant box.
2927
$ vagrant ssh
30-
$ cd pythondotorg
28+
# Go to the pythondotorg/ directory and activate the virtual environment.
29+
$ cd ~/pythondotorg
3130
$ . venv/bin/activate
31+
# Create initial data for the most used applications (optional).
32+
$ ./manage.py create_initial_data
33+
# Set a password for the superuser "cbiggles". This username and password
34+
# can be used to login to the admin environment.
3235
$ ./manage.py changepassword cbiggles
36+
# Run the server.
37+
$ ./manage.py runserver 0.0.0.0:8000
3338

34-
.. note::
35-
36-
You will also need to run ``./manage.py create_initial_data`` to create
37-
initial data for the most used applications.
39+
Now use your favorite browser to go to http://localhost:8001/.
40+
The admin pages can be found at http://localhost:8001/admin/.
3841

42+
.. _Vagrant: https://www.vagrantup.com/downloads.html
3943
.. _Ansible: https://docs.ansible.com/ansible/intro_installation.html
4044

4145
.. _manual-setup:

0 commit comments

Comments
 (0)