Current version

This commit is contained in:
Kumi 2023-07-08 13:06:15 +02:00
parent ac0fd97d46
commit 8d154510cd
Signed by: kumi
GPG key ID: ECBCC9082395383F
4 changed files with 32 additions and 23 deletions

7
.gitignore vendored
View file

@ -3,9 +3,10 @@ venv/
*.pyc
__pycache__/
static/
settings.ini
db.sqlite3
db.sqlite3-journal
db.sqlite3-journal
/media/
/static/

19
.vscode/launch.json vendored Normal file
View file

@ -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
}
]
}

View file

@ -99,6 +99,7 @@ TEMPLATES = [
]
CMS_TEMPLATES = [
('default.html', 'Standard page template'),
('home.html', 'Home page template'),
]

View file

@ -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'),
)