Tuesday, June 6, 2017

Django: Importing python modules into static webpage


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 possible to have python code embedded in static content.

2. How can I import a python module into a static webpage.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4df7680f-b916-410d-b865-ca744e555734%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment