Add custom file upload
This commit is contained in:
parent
680de724ba
commit
44c4795282
3 changed files with 61 additions and 0 deletions
|
@ -60,6 +60,7 @@ from judge.views import (
|
|||
resolver,
|
||||
course,
|
||||
email,
|
||||
custom_file_upload,
|
||||
)
|
||||
from judge import authentication
|
||||
|
||||
|
@ -1193,6 +1194,7 @@ urlpatterns = [
|
|||
),
|
||||
),
|
||||
url(r"^resolver/(?P<contest>\w+)", resolver.Resolver.as_view(), name="resolver"),
|
||||
url(r"^upload/$", custom_file_upload.file_upload, name="custom_file_upload"),
|
||||
] + url_static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
||||
# if hasattr(settings, "INTERNAL_IPS"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue