Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleaning up some things

  • Loading branch information...
commit 1a00bf8aeb8b1b3aeb207d39dbab2b1e4b546a74 1 parent 7ac8a5c
@paultag authored
Showing with 4 additions and 3 deletions.
  1. +3 −3 djlisp/hellisp/views.hy
  2. +1 −0  djlisp/urls.hy
View
6 djlisp/hellisp/views.hy
@@ -1,6 +1,6 @@
; vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 filetype=lisp
-(import "django.shortcuts")
+(import-from django.shortcuts render-to-response)
-(defn home [request]
- (django.shortcuts.render_to_response "home.html" {}))
+
+(defn home [request] (render-to-response "home.html" {}))
View
1  djlisp/urls.hy
@@ -2,5 +2,6 @@
(import django.conf.urls)
+
(def urlpatterns (.patterns django.conf.urls ""
(.url django.conf.urls "^$" "djlisp.hellisp.views.home")))
Please sign in to comment.
Something went wrong with that request. Please try again.