Hybrid perovskite materials have considerable potential for light emitting devices such as LEDs and lasers. We combine solution processed CH3NH3PbI3 perovskite with UV nanoimprinted polymer gratings to fabricate distributed feedback (DFB) lasers. The lead acetate deposition route is shown to be an effective method for fabricating low-loss waveguides (loss coefficient similar to 6 cm(-1)) and highly compatible with the polymer grating substrates. The nanoimprinted perovskite exhibited single-mode band-edge lasing, confirmed by angle-dependent transmission measurements. Depending on the excitation pulse duration the lasing threshold shows a value of 110 mu J/cm(2) under nanosecond pumping and 4 mu J/cm(2) under femtosecond pumping. We demonstrate further that this laser has excellent stability with a lifetime of 108 pulses. Published by The Optical Society under the terms of the Creative Commons Attribution 4.0 License.