Basically this:
AH asks Germany if they'll defend them, Germany says yes thinking it won't have to deliver on that promise
AH Forces Serbia into war, Russia hops in to defend Serbia
Germany, following through on it's promise, also declares war on Serbia.
Russia assures Germany that it's only mobilizing on AH
France is allies with Russia, but doesn't join the war.
Germany get's paranoid that both France and Russia will invade it since Germany boarders them both, decides to go to war with both of them just in case.
Germany and Russia are now at war.