본문 바로가기
소프트웨어 마에스트로/BackEnd(Django)

[django] Version Control 적용기 (1회차)

by alpakaka 2024. 9. 5.

django project 에 버전을 넣어볼 예정이다.

참고한 링크는 다음과 같다.

https://stackoverflow.com/questions/14590292/version-number-in-django-applications

 

Version number in Django applications

I'm working on a Django application and I want to display the version of the application (such that people, who find bugs know the version of the application and can provide better bug reports). Is

stackoverflow.com

 

여러 레포를 찾아보긴했는데..

일단 저 위에 링크에서 나와있던 zestreleaser는 어떻게 사용하는지 잘 모르겠다.. (깃헙에서 못찾았다..)

2번째로 찾았던 건 얘였다.

https://github.com/etianen/django-reversion

 

GitHub - etianen/django-reversion: django-reversion is an extension to the Django web framework that provides version control fo

django-reversion is an extension to the Django web framework that provides version control for model instances. - etianen/django-reversion

github.com

근데 모델쪽 버전 관리하는 툴 같아서 우리와 다른 상태이기에 넘겨줬다.

 

 

그래서 남은건 저 스택오버플로우에 적힌 것처럼...

하는 방법밖엔 없을 것 같다.

그래서 일단 __init__ 파일에 이걸 넣어줬다.

import datetime

# 날짜와 시간을 "YYYY.MM.DD.HHMMSS" 형식으로 포맷
__version__ = datetime.datetime.now().strftime("%Y.%m.%d.%H%M%S")
VERSION = __version__

 

 

오늘은 디자인을 했다..

하루만에 디자인을 했다...

힘든 하루였다..

디자인 피그마다...

메인은 다 짰기 때문에 디자인은 끝나갔다고 생각한다...

오늘은 대략적인 디자인 끝내고 내일 나머지 해야지...