For my setup I have my Django website on my Windows laptop, a GitHub repository, and a clone of the repo on PA. I plan to make changes from both the website (add/modify SQLite records) and the laptop (major design changes as well as db adds/mods) with regular syncs to the GitHub repo.
What's the best way to set up STATIC_ROOT?
I keep static files both in a project /static/ folder as well as application /static/ folders.
To get up & running I followed the PA tutorial: I kept STATIC_DIR = os.path.join(BASE_DIR, "static")
, added STATIC-ROOT = "/home/TitaniumVentures/website/static"
, and ran python3.6 manage.py collectstatic
- which essentially copied all my static files to a folder outside my project folder of /home/TitaniumVentures/website/titanium. This was fine - everything worked - but it doesn't fit the "sync back up to the mothership" model.
I wanted to set STATIC_ROOT to the same os.path.join(BASE_DIR, "static")
as STATIC_DIR, figuring that collectstatic would just copy the application files into the project directory - unfortunately this raised a django.core.exception "ImproperlyConfigured: The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting"
What am I missing? -Mike