Unable to perform collectstatic

前端 未结 7 1335
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 02:42

I am new to django ! When I use the command python manage.py collectstatic I get this error

django.core.exceptions.ImproperlyConfigured: You\'re usi         


        
7条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-30 03:47

    You must have to give path in STATIC_ROOT in settings.py where all your static files are collected as for example:-

    STATIC_ROOT = "app-root/repo/wsgi/static"
    
    STATIC_URL = '/static/'
    
    STATICFILES_DIRS = (
        ('assets', 'app-root/repo/wsgi/openshift/static'),
    
        )
    

提交回复
热议问题