From 65300d9ce87cce99f7ba1474271832fd5973a232 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Fri, 2 Mar 2018 19:38:14 +0100 Subject: [PATCH] Add Django neo-pastebin --- Pipfile | 1 + Pipfile.lock | 26 +++++++++++++++++++++++--- khaganat/settings.py | 1 + khaganat/templates/npb/base.html | 1 + khaganat/urls.py | 1 + 5 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 khaganat/templates/npb/base.html diff --git a/Pipfile b/Pipfile index ff35b7b..22f117e 100644 --- a/Pipfile +++ b/Pipfile @@ -10,6 +10,7 @@ name = "pypi" django = "*" python-decouple = "*" markdown = "*" +django-npb = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index d2304f9..d13cc12 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "afe4d05c7a34f361ac700b159c1844aab93669730285b054bf92bbf33bd5ff60" + "sha256": "b57dd6586d0e88919c2dc3ce8a0ed581b9a3351d5068a48b663d49cea5678e68" }, "host-environment-markers": { "implementation_name": "cpython", @@ -9,9 +9,9 @@ "os_name": "posix", "platform_machine": "x86_64", "platform_python_implementation": "CPython", - "platform_release": "4.15.4-1-ARCH", + "platform_release": "4.15.6-1-ARCH", "platform_system": "Linux", - "platform_version": "#1 SMP PREEMPT Sat Feb 17 16:01:38 UTC 2018", + "platform_version": "#1 SMP PREEMPT Sun Feb 25 12:53:23 UTC 2018", "python_full_version": "3.6.4", "python_version": "3.6", "sys_platform": "linux" @@ -34,6 +34,12 @@ ], "version": "==2.0.2" }, + "django-npb": { + "hashes": [ + "sha256:375fb4fddd0a4d3fc6ff17e68e420abdd627e05a681b8552410bc02e9ad30782" + ], + "version": "==1.0.2" + }, "markdown": { "hashes": [ "sha256:9ba587db9daee7ec761cfc656272be6aabe2ed300fece21208e4aab2e457bc8f", @@ -41,12 +47,26 @@ ], "version": "==2.6.11" }, + "pygments": { + "hashes": [ + "sha256:78f3f434bcc5d6ee09020f92ba487f95ba50f1e3ef83ae96b9d5ffa1bab25c5d", + "sha256:dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc" + ], + "version": "==2.2.0" + }, "python-decouple": { "hashes": [ "sha256:1317df14b43efee4337a4aa02914bf004f010cd56d6c4bd894e6474ec8c4fe2d" ], "version": "==3.1" }, + "pytimeparse": { + "hashes": [ + "sha256:d9e40094402ca57e654a181da8bb604d790641801ee92aeaa4c708018d5fc59f", + "sha256:51b641bcd435e0cb6b9701ed79cf7ee97fa6bf2dbb5d41baa16e5486e5d9b17a" + ], + "version": "==1.1.7" + }, "pytz": { "hashes": [ "sha256:ed6509d9af298b7995d69a440e2822288f2eca1681b8cce37673dbb10091e5fe", diff --git a/khaganat/settings.py b/khaganat/settings.py index ac29bdf..a2df076 100644 --- a/khaganat/settings.py +++ b/khaganat/settings.py @@ -46,6 +46,7 @@ INSTALLED_APPS = [ 'pages.apps.PagesConfig', 'navbar.apps.NavbarConfig', 'logs.apps.LogsConfig', + 'npb.apps.NpbConfig', ] MIDDLEWARE = [ diff --git a/khaganat/templates/npb/base.html b/khaganat/templates/npb/base.html new file mode 100644 index 0000000..4129a53 --- /dev/null +++ b/khaganat/templates/npb/base.html @@ -0,0 +1 @@ +{% extends "khaganat/base.html" %} diff --git a/khaganat/urls.py b/khaganat/urls.py index 6026466..57dcd4c 100644 --- a/khaganat/urls.py +++ b/khaganat/urls.py @@ -28,5 +28,6 @@ urlpatterns += i18n_patterns( path('admin/', admin.site.urls), path('account/', include('neluser.urls')), path('page/', include('pages.urls')), + path('paste/', include('npb.urls', namespace='npb')), path('logs/', include('logs.urls')), )