#3 Setting up Media and Static root
This commit is contained in:
		@@ -37,6 +37,8 @@ INSTALLED_APPS = [
 | 
			
		||||
    'django.contrib.sessions',
 | 
			
		||||
    'django.contrib.messages',
 | 
			
		||||
    'django.contrib.staticfiles',
 | 
			
		||||
    'responsive_images',
 | 
			
		||||
    'web_galleries',
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
MIDDLEWARE = [
 | 
			
		||||
@@ -115,9 +117,13 @@ USE_TZ = True
 | 
			
		||||
# Static files (CSS, JavaScript, Images)
 | 
			
		||||
# https://docs.djangoproject.com/en/4.1/howto/static-files/
 | 
			
		||||
 | 
			
		||||
STATIC_ROOT = BASE_DIR / 'static'
 | 
			
		||||
STATIC_URL = 'static/'
 | 
			
		||||
 | 
			
		||||
# Default primary key field type
 | 
			
		||||
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
 | 
			
		||||
 | 
			
		||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
 | 
			
		||||
 | 
			
		||||
MEDIA_ROOT = BASE_DIR / 'media'
 | 
			
		||||
MEDIA_URL = 'media/'
 | 
			
		||||
		Reference in New Issue
	
	Block a user