Update views.py

added create_message and print_chatmessages_array