We are developing new model propagation of cosmic rays in the Galaxy
from their sources in three dimensional magnetic field. The model automatically
takes into account anisotropic distribution of cosmic rays around their sources at all stages of their propagation in the Galaxy up to their escape. Cosmic rays are interacting with interstellar gas and produce secondary gamma-ray and neutrinos. For this interactions we use recent AAfrag model. We compare predictions of the model for individual sources and for several regions of the Galaxy with existing gamma-ray and neutrino data. We show that in the Galactic Ridge the gamma-ray spectrum measured by Fermi and the neutrino spectrum measured by IceCube and ANTARES are in perfect agreement and are consistent with hadronic origin of diffuse gamma-ray flux corresponding to $1/E^{2.5}$ cosmic ray spectrum.