-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query search results from the catalogue library
The results page is not yet styled correctly, but this demonstrates the data coming though.
- Loading branch information
Showing
8 changed files
with
3,107 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from data_platform_catalogue.client import BaseCatalogueClient | ||
from data_platform_catalogue.client.datahub import DataHubCatalogueClient | ||
from django.conf import settings | ||
|
||
|
||
def get_catalogue_client() -> BaseCatalogueClient: | ||
return DataHubCatalogueClient( | ||
jwt_token=settings.DATAHUB_TOKEN, api_url=settings.DATAHUB_URL | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from django import template | ||
from django.template.defaultfilters import stringfilter | ||
from django.utils.safestring import mark_safe | ||
from markdown import markdown as markdown_func | ||
|
||
register = template.Library() | ||
|
||
|
||
@register.filter | ||
@stringfilter | ||
def markdown(value): | ||
return mark_safe(markdown_func(value)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters