From: Kriti Godey Date: Wed, 24 Feb 2010 21:55:28 +0000 (-0500) Subject: Started writing views and URLS - not done. X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/commitdiff_plain/799a2ef9956edf518979879e0f29e4ac757ff791 Started writing views and URLS - not done. --- diff --git a/urls.py b/urls.py index e69de29..be8af48 100644 --- 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 --- 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