diff options
| author | Bobby <[email protected]> | 2023-06-16 21:06:20 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-06-16 21:06:20 -0400 |
| commit | 3f58ec2e918d6dcdc1213c58caec2d1691c81d3d (patch) | |
| tree | 3609454888405e60e65ac3755bbcd7da91da3593 /middleware | |
| parent | 66af49f7d066320a409bbc3a305d67dc96c4e281 (diff) | |
| download | thatcomputerscientist-3f58ec2e918d6dcdc1213c58caec2d1691c81d3d.tar.xz thatcomputerscientist-3f58ec2e918d6dcdc1213c58caec2d1691c81d3d.zip | |
Sending complete article in RSS
Diffstat (limited to 'middleware')
| -rw-r--r-- | middleware/translationMiddleware.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/translationMiddleware.py b/middleware/translationMiddleware.py index a67453d0..06373877 100644 --- a/middleware/translationMiddleware.py +++ b/middleware/translationMiddleware.py @@ -1,8 +1,8 @@ import os -from bs4 import BeautifulSoup -from django.http import HttpResponse +from bs4 import BeautifulSoup from django.conf import settings +from django.http import HttpResponse from google.cloud import translate_v2 as translate cred_path = os.path.join(settings.BASE_DIR, 'credentials-translate.json') |
