mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 09:12:11 +01:00 
			
		
		
		
	Do not serve static files outside of debug server
This commit is contained in:
		@@ -36,8 +36,9 @@ urlpatterns = [
 | 
				
			|||||||
    path('coffee/', include('django_htcpcp_tea.urls')),
 | 
					    path('coffee/', include('django_htcpcp_tea.urls')),
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
 | 
					# During development, serve media files
 | 
				
			||||||
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
 | 
					if settings.DEBUG:
 | 
				
			||||||
 | 
					    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if "cas_server" in settings.INSTALLED_APPS:
 | 
					if "cas_server" in settings.INSTALLED_APPS:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user