mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
dev_urls: Give the user_avatars URLPattern a name.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
1c80188648
commit
b41165fd01
@@ -84,7 +84,9 @@ i18n_urls = [
|
||||
|
||||
# On a production instance, these files would be served by nginx.
|
||||
if settings.LOCAL_UPLOADS_DIR is not None:
|
||||
urls += [
|
||||
re_path(r'^user_avatars/(?P<path>.*)$', serve,
|
||||
{'document_root': os.path.join(settings.LOCAL_UPLOADS_DIR, "avatars")}),
|
||||
]
|
||||
avatars_url = re_path(
|
||||
r'^user_avatars/(?P<path>.*)$',
|
||||
serve,
|
||||
{'document_root': os.path.join(settings.LOCAL_UPLOADS_DIR, "avatars")},
|
||||
)
|
||||
urls += [avatars_url]
|
||||
|
||||
Reference in New Issue
Block a user