Mastering Development

I need to upload templates through django admin panel which contain index file along with static files

I am trying to make a portal where I take landing page template from different users and check manually that template is working file or not. If everything looks good then I want to upload that theme from my django admin panel which create a new folder for every template like in this case its […]

Development Docker

Where to run collectstatic when deploying django app to heroku using docker?

I am deploying a Django app to Heroku using Docker. When I put RUN collectstatic –noinput in the Dockerfile, it fails because there is no value set for the environment variable DJANGO_SECRET_KEY. My understanding is that this is because config vars aren’t available during build time. When I run collectstatic as a release command, […]