Scott Nixon  committed be4e1b6

Added login required decoratored to the view

  • Participants
  • Parent commits 6cd9bf1
  • Branches default

Comments (0)

Files changed (2)

 from django.http import HttpResponse, HttpResponseRedirect
 from django.shortcuts import render_to_response
 from django.template import RequestContext
+from django.contrib.auth.decorators import login_required
 class UploadForm(forms.Form):
     file = forms.ImageField(label='Select a photo to upload')
 def index(request):
     '''  This view displays a single field form to upload your image to S3. It
          also sets the mimetype, sets the acl to read-only for public, and
     if not request.method == "POST":
         form = UploadForm()
-        return render_to_response("cloud_form.html", locals(),
+        return render_to_response("templates/cloud_form.html", locals(),
     if request.method == "POST":
 class CloudImages(forms.TextInput):
     class Media:
         js = (
-             'admin/jquery/fancybox/jquery.fancybox-1.3.4.pack.js',
+             'fancybox/jquery.fancybox-1.3.4.pack.js',
         css = {
-            'screen': ('admin/jquery/fancybox/jquery.fancybox-1.3.4.css',),
+            'screen': ('fancybox/jquery.fancybox-1.3.4.css',),