Comments (4)
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.
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.
@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.
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)
- Add Docs/Perhaps Tooling to Install Plugins
- `django-tailwind` should not have a hard dependency on `django-browser-reload` HOT 3
- Preventing CSS caching
- Setting an item to not visible as the default then visible at any larger breakpoint doesn't work HOT 1
- Responsive Breakpoint Partially Working
- tailwind start not working
- Some classes didnt work
- Does not work with S3 HOT 5
- Changelog file is not updated. HOT 1
- Installation Error with "django-tailwind[reload]" Package HOT 1
- ModuleNotFoundError: No module named 'maintailwind'
- Global base styles HOT 1
- Freeze on tailwind init
- Multi-apps support
- [Solved] How to have the `theme` folder in a nested folder? HOT 1
- Not rebuilding automatically when new classes are added to templates HOT 4
- python manage.py tailwind start with SyntaxError: Unexpected token '.' HOT 2
- "theme" app created in parent dir when initiated in parent dir HOT 2
- FYI How to use with NGINX proxy HOT 1
- python manage.py tailwind start causes "sh: 1: cross-env: Permission denied" message
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-tailwind.