try:
document = storage.get(name)
except DocumentNotFound:
- document = Document(storage, name = name, text = '')
-
+ # WTF ?!
+ raise Http404
+ # document = Document(storage, name = name, text = '')
if request.method == 'POST':
form = DocumentForm(request.POST, instance = document)