This seems to make it work. NFI
Works in prod mode, dies in dev with a warning/error Doco seems to suggest that mixing these directories together is an error as it means user uploads mingle with site files.
This commit is contained in:
		
							parent
							
								
									befa544bec
								
							
						
					
					
						commit
						187d900d81
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -36,9 +36,13 @@ USE_TZ = True | |||
| MEDIA_ROOT = os.path.join(PACKAGE_ROOT, "site_media", "media") | ||||
| MEDIA_URL = "/site_media/media/" | ||||
| 
 | ||||
| STATIC_ROOT = os.path.join(PROJECT_ROOT, "static", "dist") | ||||
| STATIC_ROOT = os.path.join(PROJECT_ROOT, "static", "distx") | ||||
| STATIC_URL = "/static/dist/" | ||||
| 
 | ||||
| STATICFILES_DIRS = [ | ||||
|     os.path.join(PROJECT_ROOT, "static", "dist"), | ||||
| ] | ||||
| 
 | ||||
| STATICFILES_FINDERS = [ | ||||
|     "django.contrib.staticfiles.finders.FileSystemFinder", | ||||
|     "django.contrib.staticfiles.finders.AppDirectoriesFinder", | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Sachi King
						Sachi King