Add Django neo-pastebin

This commit is contained in:
Rodolphe Breard 2018-03-02 19:38:14 +01:00
parent 98947a358e
commit 65300d9ce8
5 changed files with 27 additions and 3 deletions

View file

@ -10,6 +10,7 @@ name = "pypi"
django = "*" django = "*"
python-decouple = "*" python-decouple = "*"
markdown = "*" markdown = "*"
django-npb = "*"
[dev-packages] [dev-packages]

26
Pipfile.lock generated
View file

@ -1,7 +1,7 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "afe4d05c7a34f361ac700b159c1844aab93669730285b054bf92bbf33bd5ff60" "sha256": "b57dd6586d0e88919c2dc3ce8a0ed581b9a3351d5068a48b663d49cea5678e68"
}, },
"host-environment-markers": { "host-environment-markers": {
"implementation_name": "cpython", "implementation_name": "cpython",
@ -9,9 +9,9 @@
"os_name": "posix", "os_name": "posix",
"platform_machine": "x86_64", "platform_machine": "x86_64",
"platform_python_implementation": "CPython", "platform_python_implementation": "CPython",
"platform_release": "4.15.4-1-ARCH", "platform_release": "4.15.6-1-ARCH",
"platform_system": "Linux", "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_full_version": "3.6.4",
"python_version": "3.6", "python_version": "3.6",
"sys_platform": "linux" "sys_platform": "linux"
@ -34,6 +34,12 @@
], ],
"version": "==2.0.2" "version": "==2.0.2"
}, },
"django-npb": {
"hashes": [
"sha256:375fb4fddd0a4d3fc6ff17e68e420abdd627e05a681b8552410bc02e9ad30782"
],
"version": "==1.0.2"
},
"markdown": { "markdown": {
"hashes": [ "hashes": [
"sha256:9ba587db9daee7ec761cfc656272be6aabe2ed300fece21208e4aab2e457bc8f", "sha256:9ba587db9daee7ec761cfc656272be6aabe2ed300fece21208e4aab2e457bc8f",
@ -41,12 +47,26 @@
], ],
"version": "==2.6.11" "version": "==2.6.11"
}, },
"pygments": {
"hashes": [
"sha256:78f3f434bcc5d6ee09020f92ba487f95ba50f1e3ef83ae96b9d5ffa1bab25c5d",
"sha256:dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc"
],
"version": "==2.2.0"
},
"python-decouple": { "python-decouple": {
"hashes": [ "hashes": [
"sha256:1317df14b43efee4337a4aa02914bf004f010cd56d6c4bd894e6474ec8c4fe2d" "sha256:1317df14b43efee4337a4aa02914bf004f010cd56d6c4bd894e6474ec8c4fe2d"
], ],
"version": "==3.1" "version": "==3.1"
}, },
"pytimeparse": {
"hashes": [
"sha256:d9e40094402ca57e654a181da8bb604d790641801ee92aeaa4c708018d5fc59f",
"sha256:51b641bcd435e0cb6b9701ed79cf7ee97fa6bf2dbb5d41baa16e5486e5d9b17a"
],
"version": "==1.1.7"
},
"pytz": { "pytz": {
"hashes": [ "hashes": [
"sha256:ed6509d9af298b7995d69a440e2822288f2eca1681b8cce37673dbb10091e5fe", "sha256:ed6509d9af298b7995d69a440e2822288f2eca1681b8cce37673dbb10091e5fe",

View file

@ -46,6 +46,7 @@ INSTALLED_APPS = [
'pages.apps.PagesConfig', 'pages.apps.PagesConfig',
'navbar.apps.NavbarConfig', 'navbar.apps.NavbarConfig',
'logs.apps.LogsConfig', 'logs.apps.LogsConfig',
'npb.apps.NpbConfig',
] ]
MIDDLEWARE = [ MIDDLEWARE = [

View file

@ -0,0 +1 @@
{% extends "khaganat/base.html" %}

View file

@ -28,5 +28,6 @@ urlpatterns += i18n_patterns(
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('account/', include('neluser.urls')), path('account/', include('neluser.urls')),
path('page/', include('pages.urls')), path('page/', include('pages.urls')),
path('paste/', include('npb.urls', namespace='npb')),
path('logs/', include('logs.urls')), path('logs/', include('logs.urls')),
) )