From 08924c5e0512a961d23f34559ecc05d7b3dec63a Mon Sep 17 00:00:00 2001 From: Sli Date: Thu, 4 Aug 2022 00:38:50 +0200 Subject: [PATCH] Fix wrong url and set default auto field --- sith/settings.py | 2 ++ sith/urls.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sith/settings.py b/sith/settings.py index 6beb040f..bf47bfda 100644 --- a/sith/settings.py +++ b/sith/settings.py @@ -62,6 +62,8 @@ ALLOWED_HOSTS = ["*"] # Application definition +DEFAULT_AUTO_FIELD = "django.db.models.AutoField" + SITE_ID = 4000 INSTALLED_APPS = ( diff --git a/sith/urls.py b/sith/urls.py index 085e17ad..cdb0cabe 100644 --- a/sith/urls.py +++ b/sith/urls.py @@ -82,7 +82,7 @@ urlpatterns = [ path("admin/", admin.site.urls), path("ajax_select/", include(ajax_select_urls)), path("i18n/", include("django.conf.urls.i18n")), - path("jsi18n/$", JavaScriptCatalog.as_view(), name="javascript-catalog"), + path("jsi18n/", JavaScriptCatalog.as_view(), name="javascript-catalog"), path("captcha/", include("captcha.urls")), ]