Commits

Anonymous committed 0603dc5

fix urls

  • Participants
  • Parent commits a23fb18

Comments (0)

Files changed (2)

couchit/application.py

             cname = cur_path[0]
             
         if site is None: # create website
-            print alias
             if alias is None or not alias and cname in ['help', 'find', 'about']:
                 response = self.views['couchit_%s' % cname](request, **request.args)
             else:
 
 
 urls_map = Map([
+    Rule('/', endpoint='show_page'),
     Rule('/proxy', endpoint='proxy'),
     Rule('/site/design', endpoint='site_design'),
     Rule('/site/claim', endpoint='site_claim'),
     Rule('/<pagename>/edit', endpoint='edit_page'),
     Rule('/<pagename>/delete', endpoint='delete_page'),
     Rule('/<pagename>/diff', endpoint='diff_page'),
-    Rule('/', defaults={'pagename': 'home' }, endpoint='show_page'),
-    Rule('/<pagename>', endpoint='show_page')
+    Rule('/<pagename>/', endpoint='show_page', strict_slashes=False),
+    Rule('/<pagename>', endpoint='show_page', strict_slashes=False)
+    
+   
 ])