root / snf-astakos-app / astakos / admin / admin_urls.py @ 0452c7c9
History | View | Annotate | Download (1.8 kB)
1 | c8a38c0e | Christos Stavrakakis | # Copyright 2013 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | c8a38c0e | Christos Stavrakakis | #
|
3 | c8a38c0e | Christos Stavrakakis | # Redistribution and use in source and binary forms, with or
|
4 | c8a38c0e | Christos Stavrakakis | # without modification, are permitted provided that the following
|
5 | c8a38c0e | Christos Stavrakakis | # conditions are met:
|
6 | c8a38c0e | Christos Stavrakakis | #
|
7 | c8a38c0e | Christos Stavrakakis | # 1. Redistributions of source code must retain the above
|
8 | c8a38c0e | Christos Stavrakakis | # copyright notice, this list of conditions and the following
|
9 | c8a38c0e | Christos Stavrakakis | # disclaimer.
|
10 | c8a38c0e | Christos Stavrakakis | #
|
11 | c8a38c0e | Christos Stavrakakis | # 2. Redistributions in binary form must reproduce the above
|
12 | c8a38c0e | Christos Stavrakakis | # copyright notice, this list of conditions and the following
|
13 | c8a38c0e | Christos Stavrakakis | # disclaimer in the documentation and/or other materials
|
14 | c8a38c0e | Christos Stavrakakis | # provided with the distribution.
|
15 | c8a38c0e | Christos Stavrakakis | #
|
16 | c8a38c0e | Christos Stavrakakis | # THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
17 | c8a38c0e | Christos Stavrakakis | # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
18 | c8a38c0e | Christos Stavrakakis | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
19 | c8a38c0e | Christos Stavrakakis | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
20 | c8a38c0e | Christos Stavrakakis | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21 | c8a38c0e | Christos Stavrakakis | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22 | c8a38c0e | Christos Stavrakakis | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
23 | c8a38c0e | Christos Stavrakakis | # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
24 | c8a38c0e | Christos Stavrakakis | # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
25 | c8a38c0e | Christos Stavrakakis | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
26 | c8a38c0e | Christos Stavrakakis | # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
27 | c8a38c0e | Christos Stavrakakis | # POSSIBILITY OF SUCH DAMAGE.
|
28 | c8a38c0e | Christos Stavrakakis | #
|
29 | c8a38c0e | Christos Stavrakakis | # The views and conclusions contained in the software and
|
30 | c8a38c0e | Christos Stavrakakis | # documentation are those of the authors and should not be
|
31 | c8a38c0e | Christos Stavrakakis | # interpreted as representing official policies, either expressed
|
32 | c8a38c0e | Christos Stavrakakis | # or implied, of GRNET S.A.
|
33 | c8a38c0e | Christos Stavrakakis | |
34 | c8a38c0e | Christos Stavrakakis | from django.conf.urls import url, patterns |
35 | c8a38c0e | Christos Stavrakakis | |
36 | c8a38c0e | Christos Stavrakakis | from astakos.admin import views |
37 | c8a38c0e | Christos Stavrakakis | from django.http import Http404 |
38 | c8a38c0e | Christos Stavrakakis | |
39 | c8a38c0e | Christos Stavrakakis | |
40 | c8a38c0e | Christos Stavrakakis | def index(request): |
41 | c8a38c0e | Christos Stavrakakis | raise Http404
|
42 | c8a38c0e | Christos Stavrakakis | |
43 | c8a38c0e | Christos Stavrakakis | |
44 | c8a38c0e | Christos Stavrakakis | urlpatterns = patterns( |
45 | c8a38c0e | Christos Stavrakakis | '',
|
46 | c8a38c0e | Christos Stavrakakis | url(r'^$', index),
|
47 | c8a38c0e | Christos Stavrakakis | url(r'^stats$', views.get_public_stats),
|
48 | c8a38c0e | Christos Stavrakakis | url(r'^stats/detail$', views.get_astakos_stats),
|
49 | c8a38c0e | Christos Stavrakakis | ) |