diff options
Diffstat (limited to 'snakeplan/urls.py')
-rwxr-xr-x | snakeplan/urls.py | 57 |
1 files changed, 5 insertions, 52 deletions
diff --git a/snakeplan/urls.py b/snakeplan/urls.py index 8a469b2..591c69f 100755 --- a/snakeplan/urls.py +++ b/snakeplan/urls.py | |||
@@ -1,60 +1,13 @@ | |||
1 | from django.contrib import admin | ||
2 | from django.conf.urls.defaults import patterns, include | 1 | from django.conf.urls.defaults import patterns, include |
3 | 2 | ||
3 | from django.contrib import admin | ||
4 | admin.autodiscover() | ||
5 | |||
4 | # Just get the admin stuff, don't actually do anything with it | 6 | # Just get the admin stuff, don't actually do anything with it |
5 | from snakeplan.projects import admin as snakeplan_admin | 7 | from snakeplan.projects import admin as snakeplan_admin |
6 | 8 | ||
7 | 9 | ||
8 | admin.autodiscover() | ||
9 | |||
10 | |||
11 | urlpatterns = patterns('', | 10 | urlpatterns = patterns('', |
12 | (r'^admin/', include(admin.site.urls)), | 11 | (r'^admin/', include('django.contrib.admin.site.urls')), |
13 | (r'^projects/', include('snakeplan.projects.urls')), | 12 | (r'^project/', include('snakeplan.projects.urls')), |
14 | ) | 13 | ) |
15 | |||
16 | |||
17 | """ | ||
18 | ====== ======================== ======================================== | ||
19 | Method URL What it does | ||
20 | ====== ======================== ======================================== | ||
21 | GET /modelname/ Lists model instances, using filters | ||
22 | like ?key=value1&key=value2 | ||
23 | |||
24 | GET /modelname/search displays a search form | ||
25 | |||
26 | GET /modelname/id displays a readonly instance | ||
27 | |||
28 | GET /modelname/edit/id displays an edit form | ||
29 | |||
30 | POST /modelname/update/id updates an instance and redirects | ||
31 | |||
32 | POST /modelname/upsert Updates or inserts an instance and | ||
33 | redirects | ||
34 | |||
35 | GET /modelname/upsert Draws a form to do an upsert. | ||
36 | |||
37 | GET /modelname/upsertform Draws a form to do an upsert. | ||
38 | |||
39 | GET /modelname/create displays an insert form | ||
40 | |||
41 | GET /modelname/insertform displays an insert form | ||
42 | |||
43 | GET /modelname/remove/id displays a form that posts to | ||
44 | /model/delete/id | ||
45 | |||
46 | POST /modelname/insert inserts a new record and redirects | ||
47 | |||
48 | POST /modelname/delete/id deletes a record and redirects | ||
49 | |||
50 | GET /modelname/bulk/edit display a bulk edit ui | ||
51 | |||
52 | POST /modelname/bulk/update performs a bulk update and redirect | ||
53 | |||
54 | GET /modelname/bulk/create display a bulk insert form | ||
55 | |||
56 | POST /modelname/bulk/insert performs a bulk insert and redirect | ||
57 | |||
58 | POST /modelname/bulk/delete performs a bulk delete and redirect | ||
59 | ====== ======================== ======================================== | ||
60 | """ | ||