Eli Uriegas
2921e9f868
Merge pull request #463 from subyraman/patch-1
...
add sanic_compress extension
2017-02-18 18:56:17 -06:00
Suby Raman
70b7606cb8
add sanic_compress extension
2017-02-18 19:53:32 -05:00
Eli Uriegas
0cae91d525
Merge pull request #459 from seemethere/add_app_loop_safety
...
Add app loop safety
2017-02-18 16:53:49 -06:00
Eli Uriegas
2c2a28e46b
Add better error message around app.loop
2017-02-18 12:29:25 -06:00
Eli Uriegas
c75d484f23
Merge branch 'master' of github.com:channelcat/sanic into add_app_loop_safety
2017-02-17 07:10:59 -06:00
Eli Uriegas
072f7fec30
Merge pull request #460 from seemethere/fix_travis_build
...
Fix coverage build
2017-02-17 07:10:27 -06:00
Eli Uriegas
a73379495f
Fix coverage build
...
Moved `sanic.py` to `app.py` this change reflects that
2017-02-17 07:06:57 -06:00
Eli Uriegas
0b914866eb
Merge pull request #401 from youknowone/error-logging
...
Enhance error logging
2017-02-17 07:01:40 -06:00
Eli Uriegas
f12186d024
Merge pull request #438 from r0fls/coverage
...
add coverage to tox
2017-02-17 07:01:14 -06:00
Eli Uriegas
4a2835dc84
Merge pull request #458 from lixxu/master
...
add user_agent to request
2017-02-17 07:00:52 -06:00
Eli Uriegas
55dc45de33
Merge pull request #455 from seemethere/add_better_response_error_detection
...
Adds some safety around response types being wrong
2017-02-17 06:59:52 -06:00
Eli Uriegas
39aa64ff68
Remove un-needed loop assignment
2017-02-17 06:57:41 -06:00
Eli Uriegas
94bb91f2fa
Adds some safety around app loop property
2017-02-17 06:54:26 -06:00
Lix Xu
f553ca95a5
add user_agent to request
2017-02-17 15:12:07 +08:00
Jeong YunWon
b44e8167d7
Enhance error logging
...
- Prevent to fall into error logging recursion when it doesn't have
request info (Print 'Unknown' when the request is still `None`
- Print repr(e) rather than str(e)
2017-02-17 14:05:46 +09:00
Eli Uriegas
36c1122d20
Merge pull request #457 from seemethere/remove_double_logging_message
...
Removes the extra logging message for run
2017-02-16 21:53:25 -06:00
Eli Uriegas
ad13529eaa
Removes the extra logging message for run
...
Solves for #456
2017-02-16 21:51:19 -06:00
Eli Uriegas
04c8f4a5ed
Adds some safety around response types being wrong
...
Before we didn't check if the response object was actually a response
object. This PR catches the exception should it happen and reports it to
the user.
2017-02-16 17:49:14 -06:00
Eli Uriegas
850446195f
Merge pull request #441 from robintiwari/master
...
added sanic motor (async driver for mongodb) example
2017-02-16 17:19:42 -06:00
Eli Uriegas
865506546f
Merge pull request #440 from r0fls/isinstance
...
isinstance -> try/except
2017-02-16 17:19:04 -06:00
Eli Uriegas
fe72fadedd
Merge pull request #432 from agoose77/cleanups
...
Bugfix & simplfication for host based routing
2017-02-16 17:18:24 -06:00
Eli Uriegas
9cf9d3ad5c
Merge pull request #453 from seemethere/add_file_example
...
Adds file response object example
2017-02-16 17:17:29 -06:00
Eli Uriegas
426d0e6af1
Merge pull request #454 from seemethere/fix_empty_request_args
...
Default request.args to RequestParameters
2017-02-16 17:16:55 -06:00
Eli Uriegas
483b442b7d
Default request.args to RequestParameters
2017-02-16 15:54:20 -06:00
Eli Uriegas
9420b0c947
Adds file response object example
2017-02-16 15:53:31 -06:00
Eli Uriegas
dcfb7345f0
Merge pull request #451 from abuckenheimer/master
...
#449 use stdlib json module if ujson is unavailible
2017-02-16 14:14:45 -06:00
Alec Buckenheimer
f9ab24a077
#449 use stdlib json module if ujson is unavailible
2017-02-16 15:03:52 -05:00
Raphael Deem
f932d16ba7
Merge pull request #448 from Typhon66/patch-1
...
Adding sanic_crud to extensions
2017-02-16 09:57:58 -08:00
Typhon
7d9acc3c36
Adding sanic_crud to extensions
2017-02-16 09:49:48 -08:00
Eli Uriegas
72f735124f
Merge pull request #446 from subyraman/document-error
...
Fix blueprint documentation re: prefixes
2017-02-16 11:21:23 -06:00
Suby Raman
6ea5a4719a
add url_for doc in blueprint
2017-02-16 11:48:31 -05:00
Suby Raman
f8c50b7f1e
fix blueprints documentation
2017-02-16 11:46:19 -05:00
Eli Uriegas
feb1f1d71a
Merge pull request #444 from lixxu/master
...
simple motor wrapper
2017-02-16 09:46:09 -06:00
Lix Xu
550afc27dc
simple motor wrapper
2017-02-16 22:36:16 +08:00
@robintiwari
d13af4bdc4
updated examples
2017-02-15 22:11:16 -06:00
Robin
53a365dd2b
added sanic motor (async driver for mongodb) example
2017-02-15 21:42:25 -06:00
Raphael Deem
6726affa7e
isinstance -> try/except
2017-02-15 19:34:45 -08:00
Eli Uriegas
6ecf2a6eb2
Merge pull request #439 from seemethere/move_sanic_to_app
...
Moves sanic/sanic.py to sanic/app.py
2017-02-15 21:03:41 -06:00
Eli Uriegas
a359e11f97
Merge pull request #422 from r0fls/420
...
move logging to method in ErrorHandler
2017-02-15 21:03:15 -06:00
Eli Uriegas
54b2d74068
Get rid of relative imports
2017-02-15 20:54:00 -06:00
Eli Uriegas
c99aa7279b
Moves sanic/sanic.py to sanic/app.py
...
Functionality wise this won't change much for most users, unless you
were directly importing from `sanic.sanic` in which case I am sorry if
you're affected by this.
Main motivation was because jedi autocompletion didn't work with this
and we were using relative imports to compensate for the fact that
having a module inside of your module with the same name creates major
namespace problems.
2017-02-15 20:47:34 -06:00
Raphael Deem
4fa568ce8a
add coverage to tox
2017-02-15 15:20:43 -08:00
Eli Uriegas
874698b93f
Merge pull request #431 from subyraman/test-client-v2
...
Add Flask-like `test_client` to replace `sanic_endpoint_test`
2017-02-15 15:44:30 -06:00
Eli Uriegas
b286fc1e4a
Merge pull request #436 from lixxu/master
...
simple pagination support
2017-02-15 13:31:57 -06:00
Raphael Deem
1cf1024332
Merge branch 'master' into 420
2017-02-15 09:29:52 -08:00
Lix Xu
6b391b701b
simple pagination support
2017-02-15 13:27:58 +08:00
Raphael Deem
efc90f8f5a
Merge pull request #434 from agoose77/fix_warn_error
...
Fix mistake in warning
2017-02-14 16:46:37 -08:00
Angus Hollands
6535ba7c24
Fix mistake in warning
2017-02-14 20:53:55 +00:00
Angus Hollands
5c29c3d160
Merge branch 'master' of https://github.com/channelcat/sanic into cleanups
2017-02-14 20:47:28 +00:00
Angus Hollands
742d4bff78
Change to iterable as Python3.5 doesn't support Collection.
...
We don't really need the getitem and len attributes anyway
2017-02-14 20:46:14 +00:00