implementing gantt - pai-plznw4me/django-initializer GitHub Wiki
Gantt chart
Install
-
μ μ©ν [νλ‘μ νΈκ° μμ±](https://github.com/pai-seocho/django-tutorial/wiki/start-django)μ΄ λμ΄ μμ΄μΌν¨. (λ³Έ ν¬μ€ν μμλ
κ³μ κ΄λ¦¬μμ€ν
μ μ μ©ν νλ‘μ νΈλ₯Όmyproject
λΌκ³ μ§μΉν¨) -
β οΈ βοΈβοΈβοΈβοΈ λ³Έ ν¬μ€ν μμ μ€ννλ Terminal κ²½λ‘λ λͺ¨λ
Project
λ΄ μμΉμ(manage.py κ° μλ κ²½λ‘) βοΈβοΈβοΈβοΈmyproject |- myproject |- manage.py <--- ...
-
git clone (terminal)
git clone https://[email protected]/pai-seocho/django-tutorial
-
νκ²½ κ΅¬μ± (terminal)
cp django-tutorial/gantt/requirements.txt ./ pip install -r requirements.txt
-
app ν΄λ μ΄λ (terminal)
mv django-tutorial/gantt/twproject ./ rm -rf django-tutorial
1. Gantt μ μ©νκΈ°
1.1 App λ±λ‘ λ° Setting μ€μ μΆκ°
-
μΆκ°λ μ½λ
λΆλΆλ§ κΈ°μ‘΄ μ½λμ μΆκ°νλ©΄ λ©λλ€(python
)# myproject/settings.py INSTALLED_APPS = [ ... 'twproject', # <-- μΆκ°λ μ½λ ] MEDIA_ROOT = BASE_DIR / 'media' # <-- μΆκ°λ μ½λ MEDIA_URL = '/media/' # <-- μΆκ°λ μ½λ
-
Migrations (
terminal
)python manage.py makemigrations python manage.py migrate --run-sync
-
URLConf λ±λ‘ (
python
)# myproject/urls.py from django.urls import path, include # <-- λ³κ²½λ μ½λ from django.conf.urls.static import static # <-- μΆκ°λ μ½λ from myproject import settings # <-- μΆκ°λ μ½λ # myproject/urls.py urlpatterns = [ path('admin/', admin.site.urls), path('twproject/', include('v.urls'), name='twproject'), # <-- μΆκ°λ μ½λ ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) # <-- μΆκ°λ μ½λ