From the course: Deploying Django Apps: Make Your Site Go Live

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Static and media files

Static and media files

From the course: Deploying Django Apps: Make Your Site Go Live

Start my 1-month free trial

Static and media files

let's make the modifications to our project, so that we can write things to that bucket, and also read things back from that bucket. So, in order to do this let's go ahead and first add a few different things that will help us be able to access this bucket, and so we're going to get back into our virtual environment, we'll say source../eb-virt/bin/activate. we need to install a few things via pip so we're going to say pip, install, and we want django-storages, again these are different chunks of code that our going to help us read and write from S3, and also boto3. Okay so go ahead and hit enter on that, get all those installed. Now that we've added some new things via pip, we need to make sure they're in our requirements.txt file, so we're going to go ahead and do a pip freeze, and move this into the requirements.txt file. So we'll go ahead and hit enter on that. Now that that's been fixed the next thing that we need to do is move over into our settings. So let's go ahead and use…

Contents