Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- python 3.7
- pythonanywhere
- MSSQL
- anaconda3
- GIT
- Delphi
- TMS
- rank
- Push
- get_object_or_404
- c#
- PyCharm
- Django
- delphi 10.3
- github
- 중복제거
- COMMIT
- blog
- advColumnGrid
- dbadvgrid
- queryset
- HTML
- 델파이
- templates
- 백준
- Visual Studio
- python3
- pyhcarm
- hackerrank
- declare
Archives
- Today
- Total
DevHyun
Pyhcarm에서 git ignore 파일 만들기! 본문
pythonanywhere에서 pull 할때마다 db.sqlite3 파일이 덮어씌어 져서 데이터가 날아가곤 했다.
Blog App의 DB를 pythonanywhere에서 제공하는 database 환경(mysql)으로 변경하였음!
pythonanywhere에서는 잘 작동하지만 local에서는 pythonanywhere의 mysql로 접근이 안되는 현상이 발생.
local에서 작업 한 것을 pythonanywhere에서 배포만 하는 작업 형태인 나에겐 큰 이슈!
local에서는 sqlite을 이용하여 개발을 하고 pythonanywhere에서는 mysql로 개발 하기 위해서는 db.sqlite3 파일을 github에 push 할 필요성을 못느꼈음.
github에 push할 때 특정 파일들을 ignore 하고 push 할 수 있다는 정보를 입수했기에 다음과 같은 작업을 진행하였음.
1. file-settings - plugins 진입
2. ignore 검색 후 install
3. pycharm 재시작
4. 화면 오른쪽 Project 에서 DevhyunDjangoBlog directory 우클릭 - new - ignore file - .gitignore file(Git) 선택
5. ignore file generator에서 python 검색 후 generate!
6. 쨔잔~ DevhyunDjangoBlog directory 에 .gitignore 파일이 생성되었습니다!
'Web > Django&Python 개발환경 셋팅' 카테고리의 다른 글
Pythonanywhere Console 창에서 github에 repositories push 하기! (0) | 2020.10.30 |
---|---|
[Django&Python] Pycharm 에서 Github에 프로젝트 공유 및 연동(commit & push) 하기! (0) | 2020.10.16 |
[Django&Python] Django 프로젝트를 Github 연동 할때 주의사항! (0) | 2020.10.16 |
[Django&Python] Django 프로젝트 WebServer 설정하기! (0) | 2020.10.15 |
[Django&Python] Pycharm 에서 Django App 만들어서 Hello Django! 찍어보기! (0) | 2020.10.15 |
Comments