Skip to content

[FIx] instruction of static #1

@bamjun

Description

@bamjun

배포시 정적파일 배포

  • python manage.py collectstatic
STATIC_URL = '/static/'
STATICFILES_DIRS = [ BASE_DIR / 'static' ]
STATIC_ROOT = BASE_DIR / "staticfiles"

STATICFILES_DIRS : 개발환경에서 사용하는 Dir
static_root : 정적파일 모으는 폴더 (배포환경에서 사용)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions