Piki is a minimal wiki
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617
  1. from django.urls.base import reverse
  2. def url_page(request, rel_path):
  3. return reverse('page-page', kwargs={'rel_path': rel_path})
  4. def url_helpview(request, page):
  5. return reverse('page-helpview', kwargs={'page': page})
  6. def url_edit(request, rel_path):
  7. return reverse('page-edit', kwargs={'rel_path': rel_path})
  8. def get_search_query(request):
  9. return request.GET.get('q')