mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	not push only try to import debug_toolbar if settings.debug is true
This commit is contained in:
		
							parent
							
								
									02654f6eda
								
							
						
					
					
						commit
						6bbebdd37c
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -19,8 +19,11 @@ urlpatterns = [
 | 
			
		|||
]
 | 
			
		||||
 | 
			
		||||
if settings.DEBUG:
 | 
			
		||||
    try:
 | 
			
		||||
        import debug_toolbar
 | 
			
		||||
 | 
			
		||||
        urlpatterns += [
 | 
			
		||||
            path('__debug__/', include(debug_toolbar.urls)),
 | 
			
		||||
        ]
 | 
			
		||||
    except:
 | 
			
		||||
        pass
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue