301 | 301 |
return flask.redirect(f"/edit/pages/{slug}")
|
302 | 302 |
|
303 | 303 |
|
304 | |
# urls = (
|
305 | |
|
306 | |
# # viewing urls
|
307 | |
# '/', index,
|
308 | |
# '/design/?', all_designs,
|
309 | |
# '/design/([^/]*)/([^/]*)/?$', design,
|
310 | |
# '/design/([^/]*)/?$', design,
|
311 | |
# '/category/?', all_categories,
|
312 | |
# '/category/([^/]*)/?', category,
|
313 | |
# '/category/([^/]*)/tag/([^/]*)/?', category_tag,
|
314 | |
# '/tag/?', all_tags,
|
315 | |
# '/tag/([^/]*)/?', tag,
|
316 | |
|
317 | |
# # editing urls
|
318 | |
# '/edit/design/?', admin.edit_all_designs,
|
319 | |
# '/edit/design/([^/]*)/?', admin.edit_design,
|
320 | |
# '/edit/design/([^/]*)/([^/]*)/?', admin.edit_design,
|
321 | |
# '/edit/delete/([^/]*)/?', admin.delete_design,
|
322 | |
# '/edit/photo/?', admin.add_photo,
|
323 | |
# '/edit/photo/([^/]*)/?', admin.modify_photo,
|
324 | |
# '/edit/view-photo/?', admin.view_all_photos,
|
325 | |
# '/edit/view-photo/([^/]*)/?', admin.view_photo,
|
326 | |
# '/edit/pages/?', admin.edit_page_list,
|
327 | |
# '/edit/pages/([^/]*)/?', admin.edit_page,
|
328 | |
# '/edit/about/?', admin.edit_about,
|
329 | |
|
330 | |
# # catch-all for other pages
|
331 | |
# '/([^/]*)/?', page
|
332 | |
|
333 | |
# )
|
334 | |
|
335 | |
# app = web.application(urls, globals())
|
336 | |
# # web.wsgi.runwsgi = lambda func, addr=None: web.wsgi.runfcgi(func, addr)
|
337 | |
|
338 | 304 |
if __name__ == "__main__":
|
339 | 305 |
app.run()
|