css - Continuous file corruptions multiple GIT repositories containing Django Projects -
i have frustrating , weird problem regarding 2 django projects, in 2 separate git repositories.
let me define project 1 a , project 2 b.
a has homepage, connecting home.css file. have checked git repository contents of file, overwriting local copy, , copy pasted raw contents of file home.css -> homepage displays fine. now, whenever quit django processes , virtual environment associated it, , commit on git, , run project again, home.css file corrupted. page looks this:
if delete home.css file directory , run following commands:
git fetch origin master git reset --hard fetch_head
the project runs fine again (again screenshot of correct markup now):
the fun thing is, happens projects b , a @ same time. whenever a screwed up, b screwed up. , add confusion: on computer, same repositories, files being changed leading corruption of stylesheet.
what culprit? what's going on? files in online git repository correct, because if paste raw contents home.html works again. after time, messed up. because of 2 virtual environments i'm using 2 projects? encoding? git issue? i'm lost. it's counterproductive have happening every time. there 4 files in 2 projects have error, called home.css (2x) , base.css , about.css, shouldn't name confusion. moving repository bitbucket gitlab didn't solve issue. strange thing me happens simultaneously on 2 machines, leads me think issue not machine dependent. corruptions occur on same lines in file.
i hope guys can me out.
edit: corruption occurs around line (in home.css file), deleting manually , posting raw contents git version solves issue...
@coderjoe
here ways try troubleshoot (not meant solution couldn't fit in comment):
the corruptions occur on same lines in file. show "corruption", , how know occurs on same lines in file?
what propose first step.
- work on 1 computer 1 repo
- if remote versions "correct", , assume requirements.txt has of want in venv delete projects off computer
- git clone remote totally fresh install make sure working properly.
- do git diff. @ point nothing should have changed
- change css. if fails, git diff , check out lines have changed. unusual there?
- (read django tutorial on static files)[https://docs.djangoproject.com/en/1.10/intro/tutorial06/] check paths, , follow instructions on updating css.
Comments
Post a Comment