Started writing views and URLS - not done.
authorKriti Godey <kriti.godey@gmail.com>
Wed, 24 Feb 2010 21:55:28 +0000 (16:55 -0500)
committerKriti Godey <kriti.godey@gmail.com>
Wed, 24 Feb 2010 21:55:28 +0000 (16:55 -0500)
urls.py
views.py

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'),
+)
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