This project is intended to demostrate the AWS CloudFront with the Django.
pip install -r requirements.txt
python manage.py makemiragions
python manage.py migration
python manage.py runserver
This will run the code with debug mode enabled now we need to run the code with the aws cloudfront.
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_STORAGE_BUCKET_NAME
STATIC_DISTRIBUTION_ID
DEBUG = false
python manage.py collectstatic
python manage.py runserver
Got to http://localhost:8000/api/
The private files api is in http://localhost:8000/api/private_image
The private files api is in http://localhost:8000/api/public_image