/html2dj

Simple tool for convert html template to django template

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

html2dj

Simple tool for convert html template to django template

Usage:

  1. pip install bs4

  2. place html2dj.py inside the html template folder (folder contains html files)

  3. python html2dj.py

Note: Change the parameter of the startwith function, Default value is 'assests'

assets should be changed to js if the root folder of js file is 'js' and also image, css respectively