You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p.s.
I also had theme/static/css/dist/styles.css missing from a corresponding git commit at first, because it had turned out to be ignored by .gitignore.
The solution:
Add line !/theme/static/css/dist to .gitignore
The text was updated successfully, but these errors were encountered:
paulrogov
changed the title
Missing styles.css after building styles with modern django-tailwind package
Missing styles.css after building styles with modern django-tailwind package (v3.1.1)
Feb 4, 2022
The current version of
django-tailwind
(3.1.1) package buildsstyles.css
into this folder:The previous version used in the video (Intermediate Django - Lesson 19.TailwindCSS Improvements) builds into this one:
So, after deploying it into production you'll get such an error (fullscreen):
And Server Error (500) on the prod.
Solution:
Fix a link to styles.css inside
templates/base.html
to be this:p.s.
I also had
theme/static/css/dist/styles.css
missing from a corresponding git commit at first, because it had turned out to be ignored by.gitignore
.The solution:
Add line
!/theme/static/css/dist
to.gitignore
The text was updated successfully, but these errors were encountered: