wwildwine8351
@wwildwine8351
Reviews Written
2
Average Rating
5.0
Posts
Q&A
migrate ์ conflicting ์๋ฌ๊ฐ ๋๋ ์ด์ ๋ฅผ ์๊ณ ์ถ์ต๋๋ค.
0003_user_profile์(๋ฐํํ๋ฉด์ ํน์ ๋ชฐ๋ผ ๋ฐฑ์ ํ์ผ์ ๋ง๋ค๊ณ ) ์ญ์ ํ๋๋ ํด๊ฒฐ ๋์ต๋๋ค! python manage.py migrate instagram์ด "instagram ์ฑ์์๋ง migrate๋ฅผ ์ํํ๋ผ"์ธ ์ค ์์๋๋ฐ ์๋ ๊ฒ ๊ฐ๊ตฐ์...
- 0
- 1
- 248
Q&A
INSTALLED_APPS์ Local apps์ ํ๋ก์ ํธ๋ช ์ ์ถ๊ฐํ๋ ๋ฌธ์
์ ๊ธฐ # Local Apps ๋ฐ์ 'newaskcompany'๋ฅผ ์ง์ฐ๋ฉด TemplateNotExist at / root.html ์ด ๋ฐ์ํฉ๋๋ค. (urls.py์์ template_name='') ๋ถ๋ถ์ ๋ณ๊ฒฝํ ์ root.html ์ด๋ฆ๋ ๋ณ๊ฒฝ๋๋ ๊ฑธ ๋ณด๋ฉด urls.py ์์ฒญ ์์ฒด๋ ๋ค์ด๊ฐ๋ ๊ฒ ๊ฐ์ต๋๋ค.
- 0
- 2
- 313
Q&A
bootstrap ์ ์ฉ ํ๋ฆผ ๋ฌธ์
1) link href ๋ถ๋ถ์ bootstrap4 ๋ฒ์ ์ผ๋ก ๋ฎ์ท๋๋ ๊ธ์จ์ฒด๋ pagination ๊ธฐ๋ฅ ์ ๋๋ก ๋์์ค์ง ์์์ง๋ง, ํ ์ด๋ธ ๋ ์ด์์ ์ ๋๋ ์ ์์ ์ผ๋ก ์ ์ฉ๋์์ต๋๋ค. ๊ทธ๋ฐ๋ฐ ์ด๋ฒ์๋ localhost:8000/instagram ํ์ด์ง์ ์ ์ํ ๋ TemplateSyntaxError at /instagram/ 'bootstrap4' is not a registered tag library. Must be one of:๋ผ๋ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค. settings.py์๋ bootstrap4๊ฐ ๋ค์ด๊ฐ์๊ณ , post_list.html์ {% load bootstrap4 %} ๋ถ๋ถ์ ์ง์ฐ๊ณ ์งํํ ๋๋ ๋ค์ ํด๋น ์๋ฌ๊ฐ ๋ฐ์ํ์ง ์์์ ๋ ๋๋งํ๋ html์ bootstrap4๋ฅผ ๊ฐ์ ธ์ฌ ๋ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค๊ณ ํ๋จํ์ต๋๋ค. (bootstrap4๋ ์ด๋ฏธ ์ค์นํ๊ณ settings.py์๋ ๋ฃ์ด๋์๊ณ ์ด์ ์ html ๋ ๋๋ง์ด ์ ๋๋ ๊ฒ์ ํ์ธํ๋๋ฐ, ๊ฐ์๊ธฐ loadํ ๋ ๋ฌธ์ ๊ฐ ์๊ธด๋ค๋ ๊ฒ์ ๊ฒฝ๋ก ๋ฌธ์ ์ธ์ง ์๋๋ฉด ์ ๊ฐ ์ด๊ฒ์ ๊ฒ ๊ฑด๋๋ฆฌ๋ฉด์ ๋ฎ์ด์ฐ๊ฑฐ๋ ํ ๋ ๋ฌธ์ ๊ฐ ์๊ธด๊ฑด์ง ํ์ ์ด ์์ง ์์ต๋๋ค.) 2) ๊ทธ๋์ bootstrap4๋ฅผ ์ฌ์ค์นํ๋ ค๊ณ pip install bootstrap4 pip install django_forms_bootstrappip3 install django-bootstrap4์ธ ๊ฐ์ง ๋ช ๋ น์ด๋ฅผ ํตํด์ bootstrap4๋ฅผ ๋ค์ ์ค์นํด์ฃผ๊ณ ์งํํด๋ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋๋ฐ ์ถ๊ฐ์ ์ผ๋ก ํ์ธํ ๋งํ ์ฌํญ์ด ์์๊น์? (์ ์ฒด ๋ด์ฉ) TemplateSyntaxError at /instagram/ 'bootstrap4' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls cache debugger_tags highlighting i18n indent_text l10n log static syntax_color tz widont Request Method: GET Request URL: http://localhost:8000/instagram/ Django Version: 4.0.5 Exception Type: TemplateSyntaxError Exception Value: 'bootstrap4' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls cache debugger_tags highlighting i18n indent_text l10n log static syntax_color tz widont Exception Location: C:\Users\ukyanjo\.conda\envs\askcompany\lib\site-packages\django\template\defaulttags.py, line 1029, in find_library Python Executable: C:\Users\ukyanjo\.conda\envs\askcompany\python.exe Python Version: 3.9.12 Python Path: ['C:\\Dev\\askcompany', 'C:\\Users\\ukyanjo\\.conda\\envs\\askcompany\\python39.zip', 'C:\\Users\\ukyanjo\\.conda\\envs\\askcompany\\DLLs', 'C:\\Users\\ukyanjo\\.conda\\envs\\askcompany\\lib', 'C:\\Users\\ukyanjo\\.conda\\envs\\askcompany', 'C:\\Users\\ukyanjo\\AppData\\Roaming\\Python\\Python39\\site-packages', 'C:\\Users\\ukyanjo\\.conda\\envs\\askcompany\\lib\\site-packages', 'C:\\Users\\ukyanjo\\.conda\\envs\\askcompany\\lib\\site-packages\\win32', 'C:\\Users\\ukyanjo\\.conda\\envs\\askcompany\\lib\\site-packages\\win32\\lib', 'C:\\Users\\ukyanjo\\.conda\\envs\\askcompany\\lib\\site-packages\\Pythonwin'] Server time: Mon, 27 Jun 2022 03:11:58 +0000
- 1
- 2
- 1K
Q&A
Atom-settings-install์์ script๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค.
(์ฌ์ง) default ๊ฐ์ ๋ฐ๊ฟ์ฃผ๊ณ ๋งค๋ด์ผ๋ก ์ธ์คํจํ์ต๋๋ค. ๋ค๋ฅธ ๋ถ๋ค ์ฐธ๊ณ ์ฉ์ผ๋ก ๋จ๊ฒจ๋๊ฒ์.
- 0
- 1
- 229




