Skip to content

FruitfulApproach/BS2Daisy

 
 

Repository files navigation

🌼 BS2Daisy

BS2Daisy = "Bootstrap Studio to Django, AI System"

Summary

Advanced 👽 technology.

Current Development ToDo's:

  1. Integrate MergeCode class into export process.

  2. Work on MergeCode algorithm. A comprehensive-enough structural merge combining two sources.

    • Python
    • Javascript
    • HTML
    • requirements.txt - check using stackoverflow methods (fastest) for library install, install with correct version if not
  3. Create some default boiler plates using ChatGPT free.

  4. Work on AJAX / crispy form support & Bootstrap Studio special tag annotations.

  5. Test BS2Daisy by building out a couple of parts of mathapp.

  6. Make auto-translations of page links such as /features.html to {% url 'features' %}, so that BSS site templates work right away.

  7. Fix column stretch settings from within Qt Designer and init code of export mapper widget. Right now column widths are fixed and non-adjustable.

  8. Start work on ChatGPT support and purchase $20/month API access.

Exports a Bootstrap Studio design into a Django project for an exhilerating low-code web design experience. Allows you to write as much custom/critical code as you would like.

Credit: Improvement of AbcSxyZ/bootstrap-studio-to-django-template

Index

How it works

This export script will allow you to create custom HTML attributes while developing design with Bootstrap Studio. Those attributes will be convert to their corresponding django template tag inside an export directory.

Finally, export script will move all html/css/js/img generated by Bootstrap Studio to a Django project.

Django is having an application based architecture, create app subfolder and move file inside it. In Boostrap Studio, always create application subfolder inside Pages, Styles, JavaScript, and Images folders.

If you were to put folders in the root, say Images, then the output will go into DjangoRoot/static/img instead of DjangoRoot/appfolder/static/appfolder/img. I am not sure why we need to output the subfolder of appfolder under appfolder/static. That's just the way Django works by default.

The default file placement locations are however, of course, modifiable from the GUI! See this screenshot:

Export mapper screen

Installation

Download the .EXE from the releases section of this page. Run the EXE and it will give you instructions on the first tab. These entail essentially, from within BSS:

Go to Export Options.

  • In Advanced > Export Script, specify the absolute path of bss_to_django.exe on your local machine.
  • Enable options Use a CDN for libraries, Use absolute paths
  • Specify Export destination as well

Save your configuration for later export.

Features

License

Free software under AGPL. Please share your modification to respect term of license :)


Written with StackEdit.

About

Convert a bootstrap studio file in a django (Jinja like) template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 57.5%
  • Python 28.9%
  • JavaScript 7.5%
  • CSS 6.1%