728x90 ๋ฐ์ํ ์ฅ๊ณ 4 [Django] ํ๋ก์ ํธ์ ์ฑ ์์ฑํ๊ธฐ (Window ํ๊ฒฝ) ์๋์ฐ์์ ์ฅ๊ณ ํ๋ก์ ํธ์ ์ฑ ์์ฑํ๋ ๋ฐฉ๋ฒ์ด์ ๊ธ : we-always-fight-with-code.tistory.com/110?category=892282 [Django] ์ค์นํ๊ธฐ (Window) ๊ฐ์ํ๊ฒฝ ๋ง๋ค๊ธฐPython version 3.8.2 ์์ ์์ฑ๋์์ต๋๋ค. ์ฅ๊ณ ์ ๊ด๋ จ๋ ๋ชจ๋ ์ํ์ ๊ฐ์ํ๊ฒฝ ์์์ ์ด๋ฃจ์ด์ ธ์ผ ํ๋ค. 1. cmd๋ฅผ ์ด์ด ๊ฐ์ํ๊ฒฝ์ ๋ง๋ค ๊ฒฝ๋ก๋ก ์ด๋ 2. ๊ฐ์ํ๊ฒฝ ์ค๋น pip install virtualenv 3. ๊ฐ์ํ๊ฒฝwe-always-fight-with-code.tistory.com๊ธฐ๋ณธ์ธํ ํํ ๋ฆฌ์ผ - ์ด์ด์ ์งํํฉ๋๋ค.์ ๋ ๊ธฐ์กด ์ฅ๊ณ ๊ธฐ์กด ์ฑ ๋ณด์ ์ค์ ๋ญ๊ฐ ๊ผฌ์ฌ์ ๊ทธ๋ฅ ์๋ก ๋ง๋๋ ์ค์ด๋ค์. ใ ใ ใ ใ โป์ฅ๊ณ ๊ฐ์ํ๊ฒฝ ์ธํ ์ด ๋์ด์๋ค๋ ์ ์ ๋ก ์์ฑ๋์์ต๋๋ค. ์ด๋ฒ ํฌ.. 2020. 12. 30. [Django] ํ ์ด๋ธ ๋ค์ ๋ง๋ค๊ธฐ, ํ ์ด๋ธ ์ปฌ๋ผ ๋ณ๊ฒฝํ๊ธฐ, ํ ์ด๋ธ ๋ฐ๊พธ๊ธฐ 0. ๋น ํ ์ด๋ธ ์์ python manage.py makemigrationspython manage.py migrate๋น ํ ์ด๋ธ ์์ ๋ฐ์์ ์ด ๋ช ๋ น์ ์คํํด์ฃผ๋ฉด ๋์ง๋ง,ํ ์ด๋ธ์ ํ๋ค์ด ์ด๋ฏธ ๋ค์ด๊ฐ์๋ ๊ฒฝ์ฐ, =ํ ์ด๋ธ๊ณผ ๊ทธ ์์ ๋ด์ฉ๊น์ง ์ ๋ถ ๋ค์ ์ ๋ ฅ์์ผ์ผ ํ๋ ๊ฒฝ์ฐ๋ ๊ทธ๋ด ์ ์๋ค. ์น๋ค ๋ค์ ํด์ผํ๋ค. ๋ค์ ๋ฐฉ๋ฒ์ ๋ฐ๋ผํด๋ณด๋ผ. 1. ํ ์ด๋ธ ์ญ์ ํ ์ด๋ธ์ ์ญ์ ํ๊ธฐ ์ํด sql์ ๋ค๋ค์ผํ๋๋ฐ, ๋๊ฐ์ง ๋ฐฉ๋ฒ์ด ์๋ค. ํ๋๋ ์ง์ sql์ปค๋งจ๋๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด๊ณ ๋ค๋ฅธ ํ๋๋ GUIํด์ ์ฌ์ฉํ๋ ๊ฒ. Downloads - DB Browser for SQLite(Please consider sponsoring us on Patreon ๐) Windows Our latest release (3.12.1) f.. 2020. 11. 30. [Django] url 404 ์๋ฌ ํด๊ฒฐํ๊ธฐ Page not found (404)Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:The empty path didn't match any of these.You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. ์๋ฌ ๋ฌธ๊ตฌ์ด๋ค. ํด๊ฒฐ:urlpatterns = [ # (r'^dramarama/', include('dramarama.urls')), path('admin/',.. 2020. 11. 27. [Django] ์ค์นํ๊ธฐ (Window) ๊ฐ์ํ๊ฒฝ ๋ง๋ค๊ธฐ Python version 3.8.2 ์์ ์์ฑ๋์์ต๋๋ค. ์ฅ๊ณ ์ ๊ด๋ จ๋ ๋ชจ๋ ์ํ์ ๊ฐ์ํ๊ฒฝ ์์์ ์ด๋ฃจ์ด์ ธ์ผ ํ๋ค.1. cmd๋ฅผ ์ด์ด ๊ฐ์ํ๊ฒฝ์ ๋ง๋ค ๊ฒฝ๋ก๋ก ์ด๋ 2. ๊ฐ์ํ๊ฒฝ ์ค๋นpip install virtualenv 3. ๊ฐ์ํ๊ฒฝ ์ค์น: virtualenv [๊ฐ์ํ๊ฒฝ ์ด๋ฆ]virtualenv myjango 4. dir ๋ช ๋ น์ ์ ๋ ฅํ๋ฉด ๊ฐ์ํ๊ฒฝ ์ด๋ฆ์ ํด๋๊ฐ ์์ฑ. ์ด ํด๋ ์์ scripts ๋ผ๋ ํด๋๋ก ๊ฒฝ๋ก ์ด๋. 5. ๊ฐ์ํ๊ฒฝ ์คํactivate.bat 6. ๋ค์ ๊ฐ์ํ๊ฒฝ ํด๋๋ก ๋์์ ๋ฒ์ ํ์ธ(์ต์ ๋ฒ์ ์ ๊ทธ๋ ์ด๋)python3 -m pip install --upgrade pip 7. ์ฅ๊ณ Django ์ค์นpip install django~=2.0.0 8. ๋ค์ ๊ฐ์ํ๊ฒฝ ์ script.. 2020. 11. 24. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ