First, note that you can only associate a line bundle to a Cartier divisor, not a Weil divisor.
Fortunately on non-singular varieties they coincide (up to isomorphism) so that in your case this poses no problem.
And now for the real problem: given a section $s\in H^0(V,\mathcal{O}(D))$ there are two divisors associated to it!
a) Looking at $s$ as a rational function, it has a divisor $\operatorname {div}(s)=\sum n_iH_i$, consisting in formally summing its zeros and poles counted with suitable multiplicities $n_i$, positive or negative according as $s$ has a zero or a pole along the irreducible hypersurface $H_i$.
The requirement for $s$ to be section of $\mathcal O(D)$ is of course $\operatorname {div}(s)+D\geq 0$.
b) Given a line bundle $\mathcal L$, like $\mathcal O(D)$ for example, a non zero global rational section $t$ of $\mathcal L$ has a divisor $\operatorname {div}^{\mathcal L}(t)=\sum \nu_i H_i$ obtained by the following recipe:
on a trivializing open set $U$ for $\mathcal L$ choose a nowhere zero section $u\in \Gamma(U,\mathcal L) $ and write $t\vert U=fu$ with $f\in \operatorname {Rat}(U)$ rational on $U$.
The recipe is then to write $$\operatorname {div}^{\mathcal L}(t)\vert U=\operatorname {div}(f)$$ and by covering $V$ by such $U$'s to obtain the divisor $\operatorname {div}^{\mathcal L}(t)\in Div(V)$.
c) The fundamental formula
for a rational section $t$ of $\mathcal O(D)$ is $$\operatorname {div}^{\mathcal L}(t)= \operatorname {div}(t)+D $$
No standard book or text I'm aware of seems to introduce this distinction between $\operatorname {div}^{\mathcal L}$ and $\operatorname {div}$, nor consequently the relation between them.
This is unfortunate since this seems to cause recurring misunderstandings, as witnessed by your post.