Preheat oven to 350°F.
In a large bowl, mix together zucchini, eggs, dill and cheeses. Slowly add the flour, mixing well. Stir in salt and cayenne pepper.
Grease a 9-inch baking pan with butter. Pour in zucchini mixture. Dot with butter.
Bake for 45 minutes until well browned. Serve hot or cold.