abcsxyz / bootstrap-studio-to-django-template Goto Github PK
View Code? Open in Web Editor NEWConvert a bootstrap studio file in a django (Jinja like) template.
License: GNU Affero General Public License v3.0
Convert a bootstrap studio file in a django (Jinja like) template.
License: GNU Affero General Public License v3.0
When I tried to export BSS Project, I encountered this error
Mon Jul 05 2021 14:45:06 GMT+0800 (**标准时间)
Traceback (most recent call last):
File "/Users/yao/Desktop/bootstrap-studio-to-django-template-master/converter.py", line 6, in
Mon Jul 05 2021 14:45:06 GMT+0800 (**标准时间)
FileManager()
File "/Users/yao/Desktop/bootstrap-studio-to-django-template-master/bss_converter/file_manager.py", line 22, in init
self.apps = self._retrieve_django_apps()
File "/Users/yao/Desktop/bootstrap-studio-to-django-template-master/bss_converter/file_manager.py", line 60, in _retrieve_django_apps
project_dirs = self._retrieve_folders(self.django_project)
File "/Users/yao/Desktop/bootstrap-studio-to-django-template-master/bss_converter/file_manager.py", line 49, in _retrieve_folders
absolute_ls = [os.path.join(directory, filename) for
File "/Users/yao/Desktop/bootstrap-studio-to-django-template-master/bss_converter/file_manager.py", line 49, in
absolute_ls = [os.path.join(directory, filename) for
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/posixpath.py", line 76, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
`
platform: windows
........F
======================================================================
FAIL: test_static_links (test_tag_converter.TagConverterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\Him\Documents\bootstrap-studio-to-django-template\test\test_tag_converter.py", line 111, in test_static_links
self.compare_file("static_links", "link_conversion")
File "C:\Users\Him\Documents\bootstrap-studio-to-django-template\test\test_tag_converter.py", line 57, in compare_file
self.compare_file_content(copy_file, django_file)
File "C:\Users\Him\Documents\bootstrap-studio-to-django-template\test\test_tag_converter.py", line 83, in compare_file_content
self.assertEqual(reference_content, result_content)
AssertionError: '{% load static %}\n<img alt="" src=\'{% static "home\\img\\logo.png" %}\'/>' != '{% load static %}\n<img alt="" src=\'{% static "home/img/logo.png" %}\'/>'
{% load static %}
- <img alt="" src='{% static "home\img\logo.png" %}'/>? ^ ^
+ <img alt="" src='{% static "home/img/logo.png" %}'/>? ^ ^
----------------------------------------------------------------------
Ran 9 tests in 1.553s
FAILED (failures=1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.