mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			297 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			297 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.urls import include, path, re_path
 | |
| 
 | |
| urlpatterns = [
 | |
|     path("foo/", lambda x: x, name="foo"),
 | |
|     # This dollar is ok as it is escaped
 | |
|     re_path(
 | |
|         r"^\$",
 | |
|         include(
 | |
|             [
 | |
|                 path("bar/", lambda x: x, name="bar"),
 | |
|             ]
 | |
|         ),
 | |
|     ),
 | |
| ]
 |