Re: Django: Importing python modules into static webpage

2017-06-06 Thread yingi keme
By static files, i believe you are talking about webpage files. First of all, you cant import a module to a static files. What you can do is to use the jinja logic in your webpage files. But then you have to create a context that will enable you render python objects to your webpages. I deepl

Django: Importing python modules into static webpage

2017-06-06 Thread ABHIJIT ROY
I am very new to Django. Recently I was developing a site just for getting aquainted with the framework and I came to a point where I needed to import a python module such as request,pytube etc into a static webpage so that i can use their functions . So two questions arose - 1. Is it possib