There are also various chemical solutions that you can put on the pumpkin to make it last longer. However those are not recommended if wildlife is around. Moose, in particular, love pumpkins. I suspect deer are the same.
Sure the deer, but I don't want that stuff around me. Better living through chemistry is something I'm trying to avoid now that I can make my own choices about what goes in, on, or around me.