Use STORAGGES setting to avoid deprecation warning
This commit is contained in:
		
							parent
							
								
									fcccd6f72f
								
							
						
					
					
						commit
						34b51240e9
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		|  | @ -123,12 +123,20 @@ TIME_ZONE = 'America/New_York' | |||
| LANGUAGE_CODE = 'en-us' | ||||
| USE_TZ = False | ||||
| 
 | ||||
| STORAGES = { | ||||
|     'default': { | ||||
|         'BACKEND': 'django.core.files.storage.FileSystemStorage', | ||||
|     }, | ||||
|     'staticfiles': { | ||||
|         'BACKEND': 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage', | ||||
|     }, | ||||
| } | ||||
| 
 | ||||
| STATIC_URL = '/static/' | ||||
| STATIC_ROOT = BASE_DIR.parent / 'collected_static' | ||||
| STATICFILES_DIRS = [ | ||||
|     BASE_DIR / 'static', | ||||
| ] | ||||
| STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage' | ||||
| 
 | ||||
| MEDIA_ROOT = BASE_DIR.parent / 'media' | ||||
| MEDIA_URL = '/media/' | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue