@@ -6,6 +6,12 @@ Files for the PythonKC.com website.
66
77## Development Quickstart Option 1 (vagrant)
88
9+ First, copy ` pythonkc_site/.env.example ` to ` pythonkc_site/.env ` and add
10+ your own [ meetup api key] [ ] and a unique [ django secret key] [ ] (` .env ` will
11+ be ignored by git)
12+
13+ Then you have to install some vagrant plugins and build your vagrant box:
14+
915```
1016vagrant plugin install vagrant-hostmanager
1117vagrant plugin install vagrant-hostsupdater
@@ -25,6 +31,25 @@ cd ~/vagrant/ansible
2531ansible-playbook vagrant.yml
2632```
2733
34+ To run the Django development server:
35+
36+ ```
37+ vagrant ssh
38+ django-admin runserver 192.168.100.101:8000
39+ ```
40+
41+ Now go to ` http://192.168.100.101:8000 ` in your browser. You can edit the files
42+ on your local machine and the server should reload automatically.
43+
44+ For now, this is a Python 2 project. If you want to start using Python 3
45+ and help us fix our problems, set Ansible's ` python_version ` variable to 3
46+ and it will build the virtualenv using Python 3:
47+
48+ ```
49+ ansible-playbook vagrant.yml -e python_version=3
50+ ```
51+
52+
2853## Development Quickstart Option 2 (virtualenv)
2954
3055```
@@ -40,3 +65,8 @@ Profit! $$$
4065## More Detailed Instructions
4166
4267See: docs/local_development
68+
69+
70+
71+ [ meetup api key ] : https://secure.meetup.com/meetup_api/key/
72+ [ django secret key ] : http://www.miniwebtool.com/django-secret-key-generator/
0 commit comments