Azure-Samples / djangoapp

The polls app from the official Django tutorial, that demonstrates how to build data-driven Python apps in Azure App Service.
MIT License
54 stars 426 forks source link

Use blob storage and Azure CDN for static assets #25

Open ndanielsen opened 3 years ago

ndanielsen commented 3 years ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

It would be helpful to have an example and tutorial of deploying static assets to the Azure storages and CDN.

https://docs.djangoproject.com/en/3.1/howto/static-files/deployment/#serving-static-files-from-a-cloud-service-or-cdn

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

BillmanH commented 2 years ago

@ndanielsen I was able to do this using the same framework used in a VM monolith configuration. If you look here, I'm just using the conventional Django migration process. I found it one of the easier things to do about this build. The regular Django docs have some good resources on how to do this.