Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13891

Have to run python manage.py collectstatic everytime I make change in my static files to show the changes in Django

$
0
0

I am creating a Django application and right now it's in development phase. I am using Google Cloud Storage, so I have to change settings accordingly, but after that I have to always run

python manage.py collectstatic

to show the changes in css or js file, no matter how small they are.

settings.py

STATIC_URL = 'static/'DEBUG = TrueDEFAULT_FILE_STORAGE = 'storages.backends.gcloud.GoogleCloudStorage'GS_BUCKET_NAME = 'videovogue'STATICFILES_STORAGE = 'storages.backends.gcloud.GoogleCloudStorage'service_account_key_path = os.getenv("GOOGLE_APPLICATION_CREDENTIALS")GS_CREDENTIALS = service_account.Credentials.from_service_account_file(service_account_key_path)

What is going wrong?MAX_FILE_SIZE = 209715200 # 200 MB


Viewing all articles
Browse latest Browse all 13891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>