mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-31 07:57:55 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			314 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			314 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.conf.urls.defaults import patterns, url
 | |
| from resourceexample.views import ExampleView, AnotherExampleView
 | |
| 
 | |
| urlpatterns = patterns('',
 | |
|     url(r'^$',                 ExampleView.as_view(), name='example-resource'),
 | |
|     url(r'^(?P<num>[0-9]+)/$', AnotherExampleView.as_view(), name='another-example'),
 | |
| )
 |