刘凡 9ff4d1d109 add S3,archive,truncate | преди 2 години | |
---|---|---|
.. | ||
.github | преди 2 години | |
django_drive | преди 2 години | |
.gitignore | преди 2 години | |
Pipfile | преди 2 години | |
Pipfile.lock | преди 2 години | |
README.md | преди 2 години | |
requirements.txt | преди 2 години |
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.