diff options
author | Jesús <heckyel@hyperbola.info> | 2022-01-13 18:08:28 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-01-13 18:08:28 -0500 |
commit | 4317b0ba5d614fb6f9f3d3ee333848e9774700ba (patch) | |
tree | f474806ce968874db270926dcb0399b7f3139d18 /django/social/processors.py | |
parent | b77c06257f9b650e2274c7dcb8937c237353c64d (diff) | |
download | personal-site-4317b0ba5d614fb6f9f3d3ee333848e9774700ba.tar.lz personal-site-4317b0ba5d614fb6f9f3d3ee333848e9774700ba.tar.xz personal-site-4317b0ba5d614fb6f9f3d3ee333848e9774700ba.zip |
Add docker support
Diffstat (limited to 'django/social/processors.py')
-rw-r--r-- | django/social/processors.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/django/social/processors.py b/django/social/processors.py new file mode 100644 index 0000000..0c3eb68 --- /dev/null +++ b/django/social/processors.py @@ -0,0 +1,9 @@ +from .models import Link + + +def ctx_dict(request): + ctx = {} + links = Link.objects.all() + for link in links: + ctx[link.key] = link.url + return ctx |