刘凡 9ff4d1d109 add S3,archive,truncate | 2 years ago | |
---|---|---|
.. | ||
.github | 2 years ago | |
django_drive | 2 years ago | |
.gitignore | 2 years ago | |
Pipfile | 2 years ago | |
Pipfile.lock | 2 years ago | |
README.md | 2 years ago | |
requirements.txt | 2 years ago |
A demo Django project showcasing the use of Django Administration to upload files to Amazon S3.
This repository contains the code for this blogpost on StackAbuse.
Kindly ensure you have the following installed on your machine:
Clone the repository
$ git clone https://github.com/ro6ley/django-drive.git
Check into the cloned repository
$ cd django-drive
If you are using Pipenv, setup the virtual environment and start it as follows:
$ pipenv install && pipenv shell
Install the requirements
$ pip install -r requirements.txt
Run migrations
$ python manage.py makemigrations
$ python manage.py migrate
Create a super user
$ python manage.py createsuperuser
Run the application
$ python manage.py runserver
Log in to the admin dashboard and populate Cars at http://localhost:8000/admin
Navigate to http://localhost:8000/cars and view the cars
Please feel free to raise issues using this template and I'll get back to you.
You can also fork the repository, make changes and submit a Pull Request using this template.