 app.get '/admin/*', users.check, (req, res) ->
   renderError res, "<b>404:</b> Are you sure that's the right URL?"
       
+app.get '/500', (req, res) ->
+  res.render front + 'view'
+    locals:
+      title: config.site.title + ' / 500'
+      article:
+        title: '500'
+        created_at: ''
+        body: "Internal Server Error"
+      config: config
+
 app.get '*', (req, res) ->
   res.render front + 'view'
     locals:


	}, req.files.upload, (err, docs) ->
		if (err)
			console.warn("ERROR UPLOADING: ", err)
		else
			res.redirect('/admin/uploads')

app.get '/admin/settings', users.check, (req, res) ->
  adminConfig = require('./config').admin

					articles: files

app.post '/admin/uploads', users.check, (req, res) ->
	slug = sluggify req.param 'title'
	filename = sluggify req.files.upload.name
	uploads.save {
