Commit d6de3795 authored by Daniel W Bond's avatar Daniel W Bond

added CreateStudent CreateView

parent 1af64677
from django.conf.urls import patterns, include, url
from accounts.views import DetailStudent
from accounts.views import DetailStudent, CreateStudent
from accounts.models import Student
from django.contrib import admin
......@@ -16,4 +16,10 @@ urlpatterns = patterns('',
context_object_name='student',
template_name='detailStudent.html'),
name='detailStudent'),
url(r'^create/$',
CreateStudent.as_view(
model=Student,
template_name="createStudent.html"),
name='createStudent'),
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment