@@ -11,7 +11,7 @@ Here are two ways to hack on python.org:
1111Easy setup using Vagrant
1212------------------------
1313
14- First, install Vagrant _ and Ansible _ on your machine.
14+ First, install Vagrant _ (2.0+) and Ansible _ (2.0+) on your machine.
1515You should then be able to provision the Vagrant box.
1616
1717::
@@ -21,7 +21,8 @@ You should then be able to provision the Vagrant box.
2121The box will be provisioned with a latest Python 3.6 version, a virtual
2222environment with all the requirements installed, and a database ready to use.
2323
24- Once this is done it's time to create some data and run the server::
24+ Once this is done it's time to create some data and start the development server
25+ for the first time::
2526
2627 # SSH into the Vagrant box.
2728 $ vagrant ssh
@@ -36,8 +37,15 @@ Once this is done it's time to create some data and run the server::
3637 # Run the server.
3738 $ ./manage.py runserver 0.0.0.0:8000
3839
39- Now use your favorite browser to go to http://localhost:8001/.
40- The admin pages can be found at http://localhost:8001/admin/.
40+ Now use your favorite browser to go to http://localhost:8001/. The admin pages
41+ can be found at http://localhost:8001/admin/. You can use your superuser
42+ credentials to log in to Django admin.
43+
44+ You will only need to run the following two commands the next time you want to
45+ work on python.org::
46+
47+ $ vagrant ssh
48+ $ ./manage.py runserver 0.0.0.0:8000
4149
4250.. _Vagrant : https://www.vagrantup.com/downloads.html
4351.. _Ansible : https://docs.ansible.com/ansible/intro_installation.html
@@ -55,7 +63,8 @@ Then create a virtual environment::
5563
5664 $ python3.6 -m venv venv
5765
58- And then you'll need to install dependencies::
66+ And then you'll need to install dependencies. You don't need to use ``pip3 ``
67+ inside a Python 3 virtual environment::
5968
6069 $ pip install -r dev-requirements.txt
6170
@@ -76,6 +85,9 @@ default. Run the following command to create a new database::
7685
7786 $ sudo -u postgres createdb pythondotorg -E utf-8 -l en_US.UTF-8
7887
88+ Note that this solution may not work if you've installed PostgreSQL via
89+ Homebrew.
90+
7991 If you get an error like this::
8092
8193 createdb: database creation failed: ERROR: new collation (en_US.UTF-8) is incompatible with the collation of the template database (en_GB.UTF-8)
@@ -88,7 +100,7 @@ To change database configuration, you can add the following setting to
88100variable)::
89101
90102 DATABASES = {
91- 'default': dj_database_url.parse('postgres:///your_database_name')
103+ 'default': dj_database_url.parse('postgres:///your_database_name'),
92104 }
93105
94106If you prefer to use a simpler setup for your database you can use SQLite.
0 commit comments