Giter Site home page Giter Site logo

django-tailwind's Introduction

Django + Tailwind

This is example how to setup Django with Tailwind CSS framework.

Requirements

  1. Python 3.4 or higher
  2. Node.js
  3. npm or yarn - package managers
  4. pip - tool for installing and managing Python packages
  5. virtualenv - tool to keep the dependencies required by different projects in separate places

Installation

These commands are valid for Mac/Ubuntu OS. If you develop on Windows, you should replace them with proper commands, If you are using the default Windows Command Line.

  1. Create virtual environment in your project folder python3 -m venv venv
  2. Activate the virtual environment source venv/bin/activate
  3. Install required libraries and packages pip3 install -r requirements.txt
  4. Navigate to the project root
  5. Install Tailwind python3 manage.py tailwind install
  6. Setup path to your npm installation which npm (or yarn)
  7. Setup ENV variable in project/settings.py
    NPM_BIN_PATH={your path}
  8. Install Tailwind dependencies python3 manage.py tailwind install
  9. Migrate database python3 manage.py migrate
  10. Run server python3 manage.py runserver in one terminal
  11. Run Tailwind python3 manage.py tailwind start in another terminal

django-tailwind's People

Contributors

svetlanam 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.