Download the folder uploader
and save it in your project directory.
On setting.py
add:
INSTALLED_APPS = [
'uploader',
...<other apps>...
]
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
On urls.py
add:
...<other imports>...
from django.urls import path,include
urlpatterns = [
...<other url patterns>...
path('uploader/', include('uploader.urls')),
]
$ python manage.py migrate
$ python manage.py runserver