git.ithinksw.org
/
~kgodey
/
maayanwich.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cc7186
)
Started writing views and URLS - not done.
author
Kriti Godey
<kriti.godey@gmail.com>
Wed, 24 Feb 2010 21:55:28 +0000
(16:55 -0500)
committer
Kriti Godey
<kriti.godey@gmail.com>
Wed, 24 Feb 2010 21:55:28 +0000
(16:55 -0500)
urls.py
patch
|
blob
|
history
views.py
patch
|
blob
|
history
diff --git
a/urls.py
b/urls.py
index
e69de29
..
be8af48
100644
(file)
--- a/
urls.py
+++ b/
urls.py
@@
-0,0
+1,5
@@
+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('',
+ (r'^addsandwich/$', 'views.add_sandwich'),
+)
diff --git
a/views.py
b/views.py
index
60f00ef
..
66aa2bb
100644
(file)
--- a/
views.py
+++ b/
views.py
@@
-1
+1,14
@@
-# Create your views here.
+from django.http import HttpResponse
+from forms import SandwichForm, IngredientForm, ArtistForm
+
+
+def add_sandwich(request):
+ sform = SandwichForm()
+
+
+def add_artist(request):
+ sform = ArtistForm()
+
+
+def add_ingredient(request):
+ sform = IngredientForm()
\ No newline at end of file