Can anyone suggest me a book on Django integration of Dash Plotly & Dockerizing the web app?

Thanks for the help in web app. @AnnMarieW

If you ever write a book on Django integration of Dash Plotly & Dockerizing the web app. Believe me I will be the first one to buy that book. Once again thanks for the help.

2 Likes

Hi @Prasad1

I’m happy to help, however I don’t have any experience with Django. Good news is that I know that others here on the forum have this expertise.

@PipInstallPython Do you have any recommendations?

Hey @Prasad1,

I haven’t found any book’s available on the subject but this is something I’ve worked on over my time as a developer using dash and django.

You have two approaches, firstly you can setup django-plotly-dash: django-plotly-dash · PyPI and cookiecutter-django: GitHub - cookiecutter/cookiecutter-django: Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly. this would combine some dash functionality into your django application.

Alternatively more difficult but more specific and featured you could setup two separate applications a django project and a dash project that communicate via an API. In this project I setup a base connection with the login of a django application’s user from the dash application. This is boiler plate without docker, however you can setup this with docker with a bit of work.

Reason for me setting up two applications one django and one with dash that communicate together is mainly because of mobile first development. The dash framework when designed appropriately has a better mobile feel than django in my opinion. Also you have access to the full capability of dash with this development style of separate applications but relationshiped functionality via the API, however this take a considerable amount of more development time as you are building out two full applications in conjunction and a full feature API…

So depending on your project needs these are the two options I’d consider. Currently building up a whole notebook on the subject and hopefully one day I can release more of a book or article on the subject. Have some content on youtube on my pip install python channel from a year ago that might be of useful reference.

Best of luck on your journey,
Pip

2 Likes