Skip to content

Commit 0ca94ce

Browse files
committed
Adding Tailwind CSS
1 parent d9b0537 commit 0ca94ce

File tree

13 files changed

+1838
-8
lines changed

13 files changed

+1838
-8
lines changed

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
11
# python.or.kr-wip
22

3-
# 개발 환경 구축
3+
## 개발 환경 구축
44

5-
```
6-
docker compose up
7-
```
5+
### 1. Docker compose 이용
86

9-
http://localhost:8080/cms/
7+
테스트용 계정 정보
8+
- id: test
9+
- password: test
1010

11-
test / test
11+
```
12+
$ docker-compose up
13+
```
14+
- 접속 URL: http://localhost:8080/cms/
1215

1316

14-
# settings
17+
### 2. Django runserver 이용
18+
19+
```
20+
$ source .venv/bin/activate
21+
$ cd pythonkr_backend
22+
$ python manage.py migrate
23+
$ python manage.py runserver
24+
```
25+
26+
## Django settings
1527
- pythonkr_backend.settings # local sqlite testing
1628
- pythonkr_backend.settings.localtesting # docker compose testing
1729
- pythonkr_backend.settings.prod # production

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [
88
"django>=5.1.7",
9+
"django-tailwind[reload]>=3.8.0",
910
"gunicorn>=23.0.0",
1011
"httpx>=0.28.1",
1112
"markdown>=3.7",

pythonkr_backend/pythonkr_backend/settings/base.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
"taggit",
5555
"bakery",
5656
"wagtailbakery",
57+
"tailwind",
58+
"theme",
5759
"pythonkr",
5860
]
5961

@@ -168,4 +170,11 @@
168170

169171
BAKERY_VIEWS = (
170172
"wagtailbakery.views.AllPublishedPagesView",
171-
)
173+
)
174+
175+
TAILWIND_APP_NAME = 'theme'
176+
177+
INTERNAL_IPS = [
178+
"127.0.0.1",
179+
"0.0.0.0",
180+
]

pythonkr_backend/theme/__init__.py

Whitespace-only changes.

pythonkr_backend/theme/apps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class ThemeConfig(AppConfig):
5+
name = 'theme'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

0 commit comments

Comments
 (0)