Consult your doctor about proper treatment for your condition — we are not doctors.
Acute pancreatitis is a very serious condition often requiring hospitalization. Food is often stopped, with nutrition and pain relief provided intraveneously.
There seems to be much less agreement as to the course of treatment of chronic pancreatitis. There is no proven cure for chronic pancreatitis; treatments focus on pain management, addressing malnutrition, and dealing with other collateral effects.
A September 2013 article with the provocative title “Pain Management in Chronic Pancreatitis: Taming the Beast” provides an excellent overview on the methods commonly used for pain management, including the evidence as to efficacy.
For extreme cases, the pancreas can be surgically removed, with islet cells (pancreatic cells that produce insulin) transplanted to the liver; the result is often reduced pain and increased quality of life, and if the transplantation is successful, then the liver produces enough insulin to avoid diabetes. The procedure is called total pancreatectomy with islet autotransplantation, commonly abbreviated TP/IAT. You can see a video about life after this procedure or read a study about long-term outcomes, which have been favorable.
Also see a post discussing whether medical marijuana is an effective treatment for pancreatitis.