# Path: about_me/models.py
# class Message(models.Model):
#     name = models.CharField(max_length=40)
#     email = models.CharField(max_length=150)
#     content = models.TextField(null=False)
# 
#     def __str__(self):
#         return self.name


from django.conf import settings
from django.shortcuts import render
from .models import Message

def index(request):
    if request.method == "POST":
        message = Message()
        message.name = request.POST['name']

# Path: about_me/models.py
# class Message(models.Model):
#     name = models.CharField(max_length=40)
#     email = models.CharField(max_length=150)
#     content = models.TextField(null=False)
# 
#     def __str__(self):
#         return self.name


# Path: about_me/views.py
from django.conf import settings
from django.shortcuts import render
from .models import Message


def index(request):
    if request.method == "POST":
        message = Message()
        message.name = request.POST['name']

        message.email = request.POST['email']