Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 428 Bytes

buildCommand.md

File metadata and controls

16 lines (14 loc) · 428 Bytes

After build react code copy static file into django static folder(create first in root) then create static-root and update settings.py

    STATIC_ROOT = os.path.join(BASE_DIR / "static-root") 

Then collect static files into static-root using below command

    python manage.py collectstatic

Check Test case test.py

    python manage.py test
    python manage.py test <APP_NAME>