GithubHelp home page GithubHelp logo

Comments (4)

timonweb avatar timonweb commented on May 21, 2024

Hello, usually you don't need more than one tailwind app in a project. Once installed, it works for all your templates, regardless number of other apps you use. What's your case? I'm curious.

from django-tailwind.

Alpha249 avatar Alpha249 commented on May 21, 2024

Well it's not a very interesting use case, its just that in the tutorials I have seen, its good practice to separate stuff like authentication in one app and other functionality in some other app.

Anyways, thanks for your response.

from django-tailwind.

timonweb avatar timonweb commented on May 21, 2024

@Alpha249 ok, I get it, but the Tailwind app works globally. You can use Tailwind classes across all your Django apps, as long as they belong to the Django project that has Tailwind installed.

from django-tailwind.

karimone avatar karimone commented on May 21, 2024

For more complex projects, you need to create an app only for tailwind and share the tailwind config and CSS between different apps. This could be an issue if you have very different websites running on your project.

E.g.

src/
  data/
  domain/
  interfaces/
     restapi/
     appsite/
     frontendsite/
     supportsite/
     shared_tailwind/ <<< this is the app registered with tailwind

appsite, frontsite and supportsite are 3 different interfaces website served by the same project. shared_tailwind contains the tailwind stuff.

This seems to be a border case situation, but if you think about this already happens in most of the Django projects. The Django admin is completely different from the frontend app

from django-tailwind.

Related Issues (20)

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.