bigseoul
@bigseoul
Reviews Written
2
Average Rating
4.5
Posts
Q&A
Django-Components์ 0.128 ์ธํ
๊ฐ์ฌ๋์ด ์ต์ django-components ๋ฒ์ ์ ๋ฐ์ํ ์์ ๋ณธ์ด ๊ณง ๊ณต๊ฐ๋ ๊ฒ ๊ฐ์ต๋๋ค. ํ ์์ ์์ ์๋ํ๋ settings.py ๋ณ๊ฒฝ์ ์ ๊ธฐ๋ก ์ผ์ ๊ณต์ ํด๋ณผ๊ฒ์. import sys from pathlib import Path from django_components import ComponentsSettings #๋ณ๊ฒฝ from environ import Env INSTALLED_APPS = [ "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", #๋ณ๊ฒฝ "django_components", #๋ณ๊ฒฝ "crispy_forms", "crispy_bootstrap5", "django_extensions", "django_htmx", "template_partials", "core", ] MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", "django_htmx.middleware.HtmxMiddleware", "django_components.middleware.ComponentDependencyMiddleware", #๋ณ๊ฒฝ ] if DEBUG: MIDDLEWARE.insert(0, "debug_toolbar.middleware.DebugToolbarMiddleware") STATICFILES_FINDERS = [ "django.contrib.staticfiles.finders.FileSystemFinder", "django.contrib.staticfiles.finders.AppDirectoriesFinder", "django_components.finders.ComponentsFileSystemFinder", # ๋ณ๊ฒฝ ] TEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": [BASE_DIR / "core" / "src_django_components"], "APP_DIRS": True, "OPTIONS": { "context_processors": [ "django.template.context_processors.debug", "django.template.context_processors.request", "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", ], "builtins": [ "django_components.templatetags.component_tags", ], #๋ณ๊ฒฝ }, }, ] STATIC_ROOT = BASE_DIR / "staticfiles" #๋ณ๊ฒฝ # โ STATICFILES_DIRS ์ต์ ํ (๋ถํ์ํ ๊ฒฝ๋ก ์ ๊ฑฐ) STATICFILES_DIRS = [] # ๋ณ๊ฒฝ: ํ์ํ๋ฉด ํ๋ก์ ํธ ๊ณตํต ์ ์ ํ์ผ ํด๋๋ง ์ถ๊ฐ # django-components ์ค์ COMPONENTS = ComponentsSettings( dirs=[BASE_DIR / "core" / "src_django_components"], ) ๐ฅ ์ค์ ์ ์ฉ ํ ํด์ผ ํ ์์ , staticfiles์ ์ ์ฅ๋ ์ค๋ณต ํ์ผ ์ ๊ฑฐ. โ 1โฃ ๊ธฐ์กด ์ ์ ํ์ผ ์ญ์ rm -rf staticfiles/* โ 2โฃ ์๋ก์ด collectstatic ์คํpython manage.py collectstatic --noinput โ 3โฃ ์ค๋ณต ํ์ผ ์ฌ๋ถ ํ์ธ(js, html, css )find staticfiles -name "modal_form.js"
- 0
- 3
- 199
Q&A
VSCode Django-html ์ํ์์ inline-css ์๋์์ฑ์ด ํน์ ๋์๋์?
ํน์ ๊ทธ๋ ๊ทธ๋๋ง๋ค select language mode๋ฅผ ๋ฐ๊พธ์๋์?ํ์ด์ฐธ ํ๋ก ํ ๋ฌ ์ง๋ฆฌ ์ฐ๋ค๊ฐ vscode ๋ค์ ์ฐ๋๋ฐ, ์ต์ ํ๊ฒฝ์ ๋ชป ์ฐพ์ ํ๋ ์๊ฒ ์ง๋ง, ํ์ด์ฐธ ์ ๋ฃ๊ฐ ์ข๊ธด ํ๋ค์ ใ ;์ด ์์ ์์ ๋ค์ ๋ด์ฉ์ด ์ต์ ํ์ค?์ด๋ผ ์๊ฐํ๊ณ ๋ค๋ฅธ ํด๋ก ํ๋ก์ ํธ์ ์ ์ฉํด๋ณด๊ณ ์๋ค์.
- 1
- 2
- 759
Q&A
fly.io
๊ฐ์์ ์ด ๋ถ๋ถ์ ๋ํ ์ค๋ช ์ด ์๋๋ฐ, ํด๋น ๋งํฌ ๊ฐ์ ์นด๋ ๋ฑ๋กํ๋ฉด ๋ฉ๋๋ค.๊ฐ์ ์์ ํ์ํ ๋ด์ฉ์ ์ ๋ฃ๋ ์๋๊ตฌ์. ์๋น์ค์ ์๊ฐ ์ผ๋จ ์นด๋ ์ ๋ณด๋ถํฐ ๋ฑ๋กํด ๋์ผ๋ ค๊ณ ํ๋ ๊ฒ ๊ฐ์์.์ ๋ ์ด ์๋น์ค๋ฅผ ๊ณ์ ์ธ๊ฒ ์๋๋ผ์, App์ ์ญ์ ํ๋ค์. App์ ์ญ์ ํด์ผ ํน์๋ ๋ชจ๋ฅผ ์ฒญ๊ตฌ๋ฅผ ๋ง์ ์ ์์ต๋๋ค.
- 1
- 2
- 651
Q&A
database is locked.
๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค. WSL๋ก ์ด ์์ ์ ๋ฃ๋ ๋ถ์ ์ํด ์ฌ๊ธฐ์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ๊ณต์ ํด ๋์๊ฒ์.๋ฌธ์ ํ์์ WSL ์์ ์๋ sqlite dbํ์ผ์ windows์ฉ sqlitebrowser๋ก๋ ์ด ์ ์๋ค๋ ๊ฒ์ ๋๋ค.์์ธ์ ๊ฐ๋ฐ์์ฌ๋ค์ด ์ค์์ค๋ํ๋๋ฐ ๋ญ์๋ฆฌ์ธ์ง ๋ชจ๋ฅด๊ฒ ๋ค์ ใ ; ์๋ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ธ์.https://github.com/sqlitebrowser/sqlitebrowser/issues/2142ํด๊ฒฐ๋ฐฉ๋ฒ์ WSLg๋ฅผ ์ค์นํ๊ฑฐ๋ VScode์ sqlite viewer๋ฅผ ์ค์นํ๋ฉด ๋ฉ๋๋ค.WSLg๋ฅผ ์ด๋ค๋ฉด WSL์ sqlitebrowser๋ฅผ ์ค์นํด์ค์ผ ํฉ๋๋ค. ๊ทธ ๋ค์ ๋ฆฌ๋ ์ค ๋ธ๋ผ์ฐ์ ๋ก DBํ์ผ์ ์ด๋ฉด ๋ฉ๋๋ค.์๋๋ ์ค์น ๋ฐฉ๋ฒ์ ๋๋ค. https://github.com/microsoft/wslghttps://www.youtube.com/watch?v=2p_kFXdSzAMSqliteBrower๋ฅผ ์ค์นํ ๋ ์ถฉ๋ ๋๋ ์์กด์ฑ(๋ํ๋์) ๋ฌธ์ ๊ฐ ๋ฐ์ํ ์ ์์ต๋๋ค.ํ๊ฒฝ๋ง๋ค ์ ๋ฌ ๋ฉ์์ง๊ฐ ๋ค๋ฅผ ์ ์์ผ๋, Bard์๊ฒ ๋ฌผ์ด๋ณด์ธ์.
- 1
- 3
- 2.6K
Q&A
(wsl2-ubuntu์) docker/django ์ค์น ๋ฐฉ๋ฒ๊ณผ ํ๊ฒฝ์ค์ ์ด ๊ฐ์ํ๋ฉด์ ๋์ค์ง ์์ ํค๋งค๊ณ ์์ต๋๋ค. ใ ใ
๋ต๋ณ ๊ณ ๋ง์ต๋๋ค.WSL2-Miniconda ๊ฐ์ํ๊ฒฝ์ผ๋ก ์์ ๋ฃ๊ณ ์์ต๋๋ค.ํ๊ฒฝ์ค์ ์ด ์ ์ผ ์ด๋ ค์ ๋ค์ ใ ใ ;
- 1
- 2
- 510




