Branch 하나의 코드 관리 흐름 나뭇가지처럼 맨처음 커밋은 root commit 이를 시작으로 브랜치로 갈라짐 on branch master 레포지토리를 만들고 커밋을 하면 자동으로 생기는 브랜치 (기본, 큰 줄기) git branch 브랜치 만들기 브랜치로
I ran into migratioin problem when deploying at Heroku.Order of migrations matters. I decided to delete all and start fresh. Solution was clearing out
Git https://dev.to/coolprobn/remove-files-or-folders-from-remote-git-3l0https://opensource.com/article/18/6/git-reset-revert-rebase-commands
corey schafer - part 11Methods and Attributewe don't need to import Paginator class. Set an attribute ' paginate_by' on our listview for now, we cann
Anyone can leave a comment! If you want only authenticated users leave it, use JS 1. templates Add Comment link article_details.html create a new t
we need to associate new Comment model with Post modelon_delete=models.CASCADEblog post gets deleted, comment gets automatically deleted.related_name=
install django-ckeditorpip install django-ckeditorChange body field of Post modelmodels.pymakemigrations and migrateadd_post.htmlupdate other template
When we post, dropdown bar shows available uers, anyone can pick anyone.Because frontend knows user.id and who logged in, but backend doesn't know it
User
Video tutorial: justdjango ecommercehttps://youtu.be/dv9vKusSrDItimestamp: 32:40https://docs.djangoproject.com/en/3.1/ref/contrib/messages/M
views.py page_number = request.GET.get('page') #get the page tutorialpageobj = paginatedfilteredtutorials.getpage(pagenumber) context['tu
https://www.youtube.com/watch?v=dkJ3uqkdCcY&t=459s Problem Using Django filter and pagination together often breaks the other functionality. After f
1. urls 2. filters.py 3. views 4. templates index.html context passed manytomany tags are manytomany relationship with curriculum (=item) Note th
css/main.css is not applied to footer. 1\. base.html {% load static %} on top of the linecheck if correct directory path, name in link at base.html &l
The syntax for specifying url is {% url namespace:url_name %}. So, check if you have added the app_name in urls.py. In my case, I had misspelled the
get_absolute_url(), which returns a URL for displaying individual model records on the website (if you define this method then Django will automatical