diff options
author | 2018-03-06 20:05:44 +0100 | |
---|---|---|
committer | 2018-03-06 19:05:44 +0000 | |
commit | 5d685b27c5454e29809fe6039e0cf8945cbbb52f (patch) | |
tree | 2782bd8144f744bfc46924f64fb57f465cf31d67 /pysite/route_manager.py | |
parent | Fix user API test (diff) |
API for tags (#34)
* Help page and misc improvements
Committing so I can go home >:|
* [WIP] - API improvements for the tag features. Not completed.
* renaming tag.py to tags.py and refactoring the nomenclature of docs to tags
* fixed error message in tags, cleaning up app_test.py
* tests for the tags feature
* ignoring jsonify returns cause coverall can't handle them
* Catch-all error view for the API blueprint
* cleaning up APIErrorView a little
* bringing coverage for tags.py to 100%
* how did this get in here?
* how did this get in here? ROUND 2
* Removing the 503 database error handling. It's not in use and we should probably rethink that whole custom error handling system anyway.
* Converting the tags file to use the @api_params decorator instead of validating manually. Tested with bot staging.
Diffstat (limited to 'pysite/route_manager.py')
-rw-r--r-- | pysite/route_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pysite/route_manager.py b/pysite/route_manager.py index 53b24def..72517a3c 100644 --- a/pysite/route_manager.py +++ b/pysite/route_manager.py @@ -27,7 +27,7 @@ class RouteManager: self.db = RethinkDB() self.log = logging.getLogger() self.app.secret_key = os.environ.get("WEBPAGE_SECRET_KEY", "super_secret") - self.app.config["SERVER_NAME"] = os.environ.get("SERVER_NAME", "pythondiscord.com:8080") + self.app.config["SERVER_NAME"] = os.environ.get("SERVER_NAME", "pythondiscord.local:8080") self.app.before_request(self.db.before_request) self.app.teardown_request(self.db.teardown_request) |