Created
December 14, 2017 23:19
-
-
Save jrbenny35/20ffece02aef7a337f1a6149eb6a07cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -11,7 +11,7 @@ from olympia.lib.settings_base import * # noqa | |
45 | |
44 WSGI_APPLICATION = 'olympia.wsgi.application' | |
43 | |
42 -DEBUG = True | |
41 +DEBUG = False | |
40 DEBUG_PROPAGATE_EXCEPTIONS = False | |
39 | |
38 # These apps are great during development. | |
37 diff --git a/src/olympia/landfill/serializers.py b/src/olympia/landfill/serializers.py | |
36 index a8475e3f53..f979f4be07 100644 | |
35 --- a/src/olympia/landfill/serializers.py | |
34 +++ b/src/olympia/landfill/serializers.py | |
33 @@ -120,7 +120,7 @@ class GenerateAddonsSerializer(serializers.Serializer): | |
32 icon_type=random.choice(default_icons), | |
31 name=u'Ui-Addon-Install', | |
30 public_stats=True, | |
29 - slug='ui-test-2', | |
28 + slug='ui-test-install', | |
27 summary=u'My Addon summary', | |
26 tags=['some_tag', 'another_tag', 'ui-testing', | |
25 'selenium', 'python'], | |
24 diff --git a/src/olympia/versions/views.py b/src/olympia/versions/views.py | |
23 index 1c225b92c9..e85475f166 100644 | |
22 --- a/src/olympia/versions/views.py | |
21 +++ b/src/olympia/versions/views.py | |
20 @@ -143,6 +143,15 @@ def download_file(request, file_id, type=None, file_=None, addon=None): | |
19 | |
18 loc = urlparams(file_.get_file_cdn_url(attachment=attachment), | |
17 filehash=file_.hash) | |
16 + print(attachment) | |
15 + print('==================') | |
14 + print(loc) | |
13 + print('==================') | |
12 + print(request.APP.browser) | |
11 + print('+++++++++++++++++++') | |
10 + print(type) | |
9 + # return HttpResponseSendFile(request, file_.file_path, content_type='application/x-xpinstall') | |
8 + | |
7 response = http.HttpResponseRedirect(loc) | |
6 response['X-Target-Digest'] = file_.hash | |
5 return response | |
4 diff --git a/tmp/addons/.gitignore b/tmp/addons/.gitignore | |
3 deleted file mode 100644 | |
2 index 72e8ffc0db..0000000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment