@@ -17,10 +17,8 @@ development machine so that it pretends to be
17
17
18
18
2 . Create a new consumer, with these details:
19
19
20
- Consumer Name: Boston Python Study Groups
21
- Application Website: http://dev-studygroup.bostonpython.com
22
- De-authorization URL: http://dev-studygroup.bostonpython.com/deauth
23
- Redirect URI: http://dev-studygroup.bostonpython.com/
20
+ Consumer Name: Boston Python Study Groups (Dev)
21
+ Redirect URI: http://localhost:8080/
24
22
25
23
3 . Create a settings_local.py alongside settings.py, with details from the
26
24
OAuth consumer you just created:
@@ -32,23 +30,17 @@ development machine so that it pretends to be
32
30
33
31
4 . Create the database tables:
34
32
35
- $ sudo python manage.py create_tables
33
+ $ python manage.py create_tables
36
34
37
- 5 . You have to be able to visit your dev machine using the domain name
38
- "dev-studygroup.bostonpython.com". The simplest way to do this is to edit
39
- /etc/hosts. Add this line to the file:
35
+ 5 . Start the server:
40
36
41
- 127.0.0.1 dev-studygroup.bostonpython.com
37
+ $ python run_server.py -p 8080
42
38
43
- 6 . Start the server:
44
-
45
- $ sudo python run_server.py
46
-
47
- 7 . Visit the page in your browser using the URL http://dev-studygroup.bostonpython.com .
39
+ 6 . Visit the page in your browser using the URL http://localhost:8080 .
48
40
You should see the Study Group page, and your server window should show
49
41
URLs being served.
50
42
51
- 8 . If you click the Sign In Now button, it should take you to meetup.com and
43
+ 7 . If you click the Sign In Now button, it should take you to meetup.com and
52
44
ask you to authorize Boston Python Study Groups.
53
45
54
46
0 commit comments