Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS is not showing on heroku django app

Tags:

django

heroku

I'm having trouble showing my CSS/Static files on my django app I just deployed on Heroku. It doesn't show any debugging errors, so I don't know where to start.

Here is my code:

SETTINGS_DIR = os.path.dirname(__file__)
PROJECT_PATH = os.path.join(SETTINGS_DIR, os.pardir)
PROJECT_PATH = os.path.abspath(PROJECT_PATH)

STATIC_PATH = os.path.join(PROJECT_PATH, 'static')
STATIC_ROOT = 'staticfiles'
STATIC_URL = '/static/'
STATICFILES_DIRS = (
    STATIC_PATH,
    )
like image 575
hokatvcu Avatar asked May 23 '15 13:05

hokatvcu


1 Answers

Used WhiteNoise to collectstaticfiles. Thanks for helping.

https://devcenter.heroku.com/articles/django-assets for documentation.

like image 179
hokatvcu Avatar answered Sep 28 '22 06:09

hokatvcu