@@ -4,6 +4,12 @@ Files for the PythonKC.com website.
4
4
5
5
## Development Quickstart Option 1 (vagrant)
6
6
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
+
7
13
```
8
14
vagrant plugin install vagrant-hostmanager
9
15
vagrant plugin install vagrant-hostsupdater
@@ -23,6 +29,25 @@ cd ~/vagrant/ansible
23
29
ansible-playbook vagrant.yml
24
30
```
25
31
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
+
26
51
## Development Quickstart Option 2 (virtualenv)
27
52
28
53
```
@@ -38,3 +63,8 @@ Profit! $$$
38
63
## More Detailed Instructions
39
64
40
65
See: 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