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