Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/suhailvs/djangofileupload

Django File Upload (https://stackoverflow.com/a/24066179/)
https://github.com/suhailvs/djangofileupload

django django-imageupload fileupload python

Last synced: 9 days ago
JSON representation

Django File Upload (https://stackoverflow.com/a/24066179/)

Awesome Lists containing this project

README

        

# simple django imageupload(django 3.x)

## [demo](https://djangofileupload.herokuapp.com/)

## usage

### 1. Download the folder `uploader`:

Download the folder `uploader` and save it in your project directory.

### 2. Update `setting.py` of your project:

On `setting.py` add:

INSTALLED_APPS = [
'uploader',
......
]

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'

### 3. Update `urls.py` of your project:

On `urls.py` add:

......
from django.urls import path,include

urlpatterns = [
......
path('uploader/', include('uploader.urls')),
]

### 4. Syncronize database

$ python manage.py migrate
$ python manage.py runserver

visit