Code Monkey home page Code Monkey logo

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

bootstrap-studio-to-django-template

Build Status Coverage Status

Export a Bootstrap Studio design into a Django project folder.

Credit: Improvement of lingster/django-bootstrap-studio-tools

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, Bootstrap Studio developement must follow this architecture, create app subfolder and move file inside it. In Boostrap Studio, always create application subfolder inside Pages, Styles, JavaScript, Fonts and Images folders. (see tests)

Installation

Python

WARNING: Require python 3.6 or higher

Install project dependencies :

pip install -r requirements.txt

You can use a virtual env inside directory of the export script, and specify folder in env file using VIRTUAL_ENV (see env file).

Bootstrap studio

Go to Export Options.

  • In Advanced > Export Script, specify the absolute path of django_export.sh 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.

Env file

Rename env.template to env.

Available variables:

  • DJANGO_PROJECT (mandatory) : Absolute path of your django project folder.
  • VIRTUAL_ENV (optionnal) : relative path of virtual env directory, MUST BE within this script folder.

Test

To see if everything is running properly : python -m unittest discover test

Features

See all available features

Contribute

Your help is welcome ! Here some contribution example:

  • Ask/work for new feature
  • Add issue/fix for bug
  • Correct spelling/English mistake
  • Improve documentation
  • Code review
  • Test coverage
  • Whatever you have in mind for the software :)

License

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

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

Contributors

abcsxyz avatar

Watchers

 avatar  avatar

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.