Django - Static file not found

前端 未结 13 779
旧巷少年郎
旧巷少年郎 2020-11-30 20:46

I\'ve seen several posts for this issue but didn\'t found my solution.

I\'m trying to serve static files within my Django 1.3 development environment.

Here a

13条回答
  •  执笔经年
    2020-11-30 21:19

    Another error can be not having your app listed in the INSTALLED_APPS listing like:

    INSTALLED_APPS = [
        # ...
        'your_app',
    ]
    

    Without having it in, you can face problems like not detecting your static files, basically all the files involving your app. Even though it can be correct as suggested in the correct answer by using:

    STATICFILES_DIRS = (adding/path/of/your/app)
    

    Can be one of the errors and should be reviewed if getting this error.

提交回复
热议问题