Konstantin vz'One Enchant
Konstantin vz'One Enchant
`CacheTag.hash_args()` uses deprecated `django.utils.http.urlquote()` function. While running the tests, I get an error. ``` django.utils.deprecation.RemovedInDjango40Warning: django.utils.http.urlquote() is deprecated in favor of urllib.parse.quote(). ``` I have prepared a simple fix.
Recently PyYAML was released new version 5.1 and tests for my application detects new warning `yaml.YAMLLoadWarning` for `aiohttp-swagger`: ``` Traceback (most recent call last): File "/home/_/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap...
`request.get_host()` raises DisallowedHost exception if request came with HOST witch not configured in ALLOWED_HOSTS setting. Django provides special methods `request._get_raw_host()` and `request.get_raw_uri()` to get values like `get_host()` and `build_absolute_uri()` but...
Test code: ``` python ##### Init class Account(Document): name = StringField(unique=True) connect(...) ##### Focus: Account.drop_collection() acc_1 = Account.objects.create(name='test') try: acc_1_dup = Account.objects.create(name='test') except OperationError: print 'Good' # Now drop again...
I run swftp-sftp and try to upload 100 MB file by FileZilla. In log I see few message: ``` [SSHService ssh-connection on SwiftSSHServerTransport,63,18.3.26.5] adding 65793 to 65279 in channel 0...