Compare commits
No commits in common. "37d5a7a20d3f07aaa8a4041cd3e6092789c1e6d1" and "7fcc3c87887dffd8c773e21412b2be042646452f" have entirely different histories.
37d5a7a20d
...
7fcc3c8788
3 changed files with 545 additions and 888 deletions
1426
Pipfile.lock
generated
1426
Pipfile.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -3,6 +3,3 @@ from .base import *
|
|||
ALLOWED_HOSTS = ['*']
|
||||
SECURE_SSL_REDIRECT = False
|
||||
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
STATIC_ROOT = path.join(BASE_DIR, 'media')
|
||||
|
|
|
@ -21,9 +21,9 @@ def libravatar(request, hash):
|
|||
try:
|
||||
size = int(size)
|
||||
except ValueError:
|
||||
size = 80
|
||||
return utils.bad_req('size parameter must be an integer')
|
||||
if not 1 <= size <= 512:
|
||||
size = 512
|
||||
return utils.bad_req('size parameter must be between 1 and 512')
|
||||
|
||||
if len(hash) == 32:
|
||||
where = Q(email_md5=hash)
|
||||
|
|
Loading…
Reference in a new issue