Bump requirements.

This commit is contained in:
Julien Palard 2023-04-21 09:28:43 +02:00
parent d343022348
commit 177461812f
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
3 changed files with 29 additions and 25 deletions

View File

@ -1,16 +1,13 @@
from django.conf.urls import url from django.urls import path
from django.views.static import serve from django.views.static import serve
from paste import views from paste import views
from webtools import settings from webtools import settings
urlpatterns = [ urlpatterns = [
url(r"^$", views.index, name="index"), path("", views.index, name="index"),
url(r"^static/(?P<path>.*)", serve, {"document_root": settings.STATIC_ROOT}), path("static/<path>", serve, {"document_root": settings.STATIC_ROOT}),
url( path("paste/<slug:slug>/<renderer>", views.show, name="paste"),
r"^paste/(?P<slug>[a-zA-Z0-9-]+)/(?P<renderer>[a-z]+)?$", path("paste/<slug:slug>", views.show, name="paste"),
views.show, path("<slug>", views.show, name="short_paste"),
name="paste",
),
url(r"^(?P<slug>[0-9][a-zA-Z0-9-]+)$", views.show, name="short_paste"),
] ]

View File

@ -1,17 +1,26 @@
# #
# This file is autogenerated by pip-compile # This file is autogenerated by pip-compile with Python 3.11
# To update, run: # by the following command:
# #
# pip-compile requirements.in # pip-compile requirements.in
# #
asgiref==3.2.7 # via django asgiref==3.6.0
django-appconf==1.0.4 # via django-compressor # via django
django-compressor==2.4 # via -r requirements.in django==4.2
django==3.0.6 # via -r requirements.in, django-appconf # via
pygments==2.6.1 # via -r requirements.in # -r requirements.in
pytz==2020.1 # via django # django-appconf
rcssmin==1.0.6 # via django-compressor django-appconf==1.0.5
rjsmin==1.1.0 # via django-compressor # via django-compressor
shortuuid==1.0.1 # via -r requirements.in django-compressor==4.3.1
six==1.15.0 # via django-compressor # via -r requirements.in
sqlparse==0.3.1 # via django pygments==2.15.1
# via -r requirements.in
rcssmin==1.1.1
# via django-compressor
rjsmin==1.2.1
# via django-compressor
shortuuid==1.0.11
# via -r requirements.in
sqlparse==0.4.4
# via django

View File

@ -28,15 +28,13 @@ DATABASES = {
"PORT": "", # Set to empty string for default. "PORT": "", # Set to empty string for default.
} }
} }
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
### End of customisation ### End of customisation
APP_NAME = "Pasteque" APP_NAME = "Pasteque"
APP_VERSION = "v0.1" APP_VERSION = "v0.1"
SITE_ID = 1 SITE_ID = 1
MANAGERS = ADMINS MANAGERS = ADMINS
USE_I18N = True
USE_L10N = True
USE_TZ = True USE_TZ = True
MEDIA_URL = "" MEDIA_URL = ""
CACHE_PATH = os.path.join(SITE_ROOT, "var", "pygments-static") CACHE_PATH = os.path.join(SITE_ROOT, "var", "pygments-static")