diff --git a/.gitignore b/.gitignore index 8900bb1..d1c0a07 100644 --- a/.gitignore +++ b/.gitignore @@ -3,9 +3,10 @@ venv/ *.pyc __pycache__/ -static/ - settings.ini db.sqlite3 -db.sqlite3-journal \ No newline at end of file +db.sqlite3-journal + +/media/ +/static/ \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f65ff50 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,19 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Django", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/manage.py", + "args": [ + "runserver", "8100" + ], + "django": true, + "justMyCode": true + } + ] +} \ No newline at end of file diff --git a/kumisystems/settings.py b/kumisystems/settings.py index 2828c78..e8de482 100644 --- a/kumisystems/settings.py +++ b/kumisystems/settings.py @@ -99,6 +99,7 @@ TEMPLATES = [ ] CMS_TEMPLATES = [ + ('default.html', 'Standard page template'), ('home.html', 'Home page template'), ] diff --git a/kumisystems/urls.py b/kumisystems/urls.py index 6477fa4..19c2806 100644 --- a/kumisystems/urls.py +++ b/kumisystems/urls.py @@ -1,22 +1,10 @@ -""" -URL configuration for kumisystems project. - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/4.2/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: path('', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.urls import include, path - 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) -""" from django.contrib import admin -from django.urls import path +from django.urls import path, include +from django.views.i18n import JavaScriptCatalog +from django.conf.urls.i18n import i18n_patterns -urlpatterns = [ - path("admin/", admin.site.urls), -] +urlpatterns = i18n_patterns( + path('admin/', admin.site.urls), + path('', include('cms.urls')), + path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'), +) \ No newline at end of file