From 41c04042c3364d664c7dcf93db0eaa424a4f2fa1 Mon Sep 17 00:00:00 2001 From: Guillaume Chanaud Date: Tue, 9 Jul 2024 07:06:11 +0200 Subject: [PATCH] [UPDT] Adding 'manage.py collectstatic' in documentation (#242) --- .gitignore | 3 +++ README.md | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 8d9efc133..ea03e0209 100755 --- a/.gitignore +++ b/.gitignore @@ -137,6 +137,9 @@ dmypy.json # media file media/ +#collected static files +staticfiles/ + #node_modules node_modules/ diff --git a/README.md b/README.md index 6b792f69c..bbd3df41e 100755 --- a/README.md +++ b/README.md @@ -155,6 +155,10 @@ Enter the details asked for creating the admin user for the project. python manage.py compilemessages ``` +6. Collect all the static files in the 'settings.STATIC_ROOT' directory (your_project/staticfiles/ by default). In production, you should serve this directory directly by your webserver. + ```bash + python manage.py collectstatic + 7. Running the project To run the project locally, execute the following command: