If you're wondering how to use React & Django to create a media fileuploader, you're in the right place. Also you can upload multi images at the time using multi select or adding them one by one. After hitting the save button, information will be sent to the database.
- Clone Repository:
git clone https://github.com/parsaasaber/django-react-upload-multiple-images-drag-and-drop.git
cd django-react-upload-multiple-images-drag-and-drop
- Create a virtual environment and activate it:
python -m venv .venv
source .venv/bin/activate # On Windows use `.\.venv\Scripts\activate`
- Install the required Python packages:
pip install -r req.txt
- Run the Django migrations:
python manage.py migrate
- Open a new terminal in command line and navigate to
frontenddirectory:
cd frontend
- Install the required npm packages:
npm install
- Navigate to
Backenddirectory and run the project:
python manage.py runserver
- In the other terminal, navigate to the
frontenddirectory and start the application:
npm start