paulb@548 | 1 | #!/usr/bin/env python |
paulb@548 | 2 | |
paulb@558 | 3 | from WebStack.Adapters.Django import deploy |
paul@765 | 4 | from SimpleWithLogin import get_site_map |
paul@765 | 5 | |
paul@765 | 6 | # Change this to be the exact URL. |
paul@765 | 7 | # eg. http://localhost:8000/django/myapp/login |
paul@765 | 8 | |
paul@765 | 9 | login_url="http://localhost:8080/django/webstack/login" |
paulb@548 | 10 | |
paul@765 | 11 | # Change this to be the URL base for your server. |
paul@765 | 12 | # eg. http://localhost:8000 |
paul@765 | 13 | |
paul@765 | 14 | app_url = "http://localhost:8080" # No trailing "/"! |
paul@765 | 15 | |
paul@765 | 16 | # Must match the key used elsewhere. |
paul@765 | 17 | |
paul@765 | 18 | secret_key = "horses" # Must match the login authenticator's key. |
paul@765 | 19 | |
paul@765 | 20 | resource = get_site_map(app_url, login_url, secret_key) |
paulb@548 | 21 | |
paulb@718 | 22 | simplewithlogin = deploy(resource, handle_errors=0) |
paulb@548 | 23 | |
paulb@548 | 24 | # vim: tabstop=4 expandtab shiftwidth=4 |