Coder Social home page Coder Social logo

bootstrap-studio-to-django-template's People

Contributors

abcsxyz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bootstrap-studio-to-django-template's Issues

Mac (Linux)path error

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
`

Windows: path related issue

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.