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