urls.py
changeset 5 962b45987a02
parent 4 ac11fee16880
child 7 e49daa7af035
equal deleted inserted replaced
4:ac11fee16880 5:962b45987a02
    14 
    14 
    15     # Uncomment the next line to enable the admin:
    15     # Uncomment the next line to enable the admin:
    16     # (r'^admin/(.*)', admin.site.root),
    16     # (r'^admin/(.*)', admin.site.root),
    17 	(r'^$','spoken_tut.upload.views.upload_file'),
    17 	(r'^$','spoken_tut.upload.views.upload_file'),
    18 	(r'^download/$','spoken_tut.upload.views.file_archive'),
    18 	(r'^download/$','spoken_tut.upload.views.file_archive'),
    19 	(r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'template/'}),
    19 	(r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    20 )
    20 )