From cfc7c3f52544af8a71d3fa3988a06fee200d2c24 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 19 Feb 2014 09:29:17 +0200 Subject: better --- it/settings.py | 3 +++ it/urls.py | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'it') diff --git a/it/settings.py b/it/settings.py index 9512a31..5b348d7 100644 --- a/it/settings.py +++ b/it/settings.py @@ -36,6 +36,7 @@ INSTALLED_APPS = ( 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'django.contrib.humanize', 'south', 'bootstrap3', 'apps.it', ) @@ -86,3 +87,5 @@ STATIC_URL = '/static/' TEMPLATE_LOADERS = ( 'django.template.loaders.app_directories.Loader', ) + +MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads') diff --git a/it/urls.py b/it/urls.py index e57ae45..3a26f43 100644 --- a/it/urls.py +++ b/it/urls.py @@ -12,6 +12,13 @@ urlpatterns = patterns('apps.it', url(r'^issues/(\d+)/edit/$', 'views.edit_issue', name='edit_issue'), url(r'^issues/(\d+)/tasks/add/$', 'views.edit_task', name='add_task'), url(r'^issues/(\d+)/tasks/(\d+)/$', 'views.edit_task', name='edit_task'), - url(r'^issues/(\d+)/metoo/(\d+)/$', 'views.metoo', name='metoo'), + url(r'^tasks/(\d+)/delete/$', 'views.delete_task', name='delete_task'), + url(r'^issues/(\d+)/users/(\d+)/add/$', 'views.metoo', name='metoo'), + url(r'^issues/(\d+)/users/(\d+)/remove/$', 'views.remove_user', name='remove_user'), url(r'^issues/(\d+)/files/add/$', 'views.add_files', name='add_files'), + + url(r'^stuff/$', 'views.list_stuff', name='list_stuff'), + url(r'^stuff/(\d+)/$', 'views.view_asset', name='view_asset'), + + url(r'^files/(\d+)/delete/$', 'views.delete_file', name='delete_file'), ) -- cgit v1.2.3