<s> from django . conf . urls import url , include <EOL> from django import VERSION <EOL> from testapp . views import get_authors_with_books , book <EOL> if VERSION >= ( <NUM_LIT:1> , <NUM_LIT:9> ) : <EOL> def patterns ( prefix , * args ) : <EOL> return args <EOL> else : <EOL> from django . conf . urls import patterns <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , get_authors_with_books , name = '<STR_LIT>' ) , <EOL> url ( r'<STR_LIT>' , book , name = '<STR_LIT>' ) , <EOL> ) </s>
