From 799a2ef9956edf518979879e0f29e4ac757ff791 Mon Sep 17 00:00:00 2001 From: Kriti Godey Date: Wed, 24 Feb 2010 16:55:28 -0500 Subject: [PATCH] Started writing views and URLS - not done. --- urls.py | 5 +++++ views.py | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) 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 -- 2.20.1