import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','test_project.settings')

import django
django.setup()


import random
from faker import Faker

from appTwo.models import User


fakegen = Faker()


def populate(N=5):
    for entry in range(N):

        #create fake data
        fake_name = fakegen.name()
        fake_f_name = fake_name.split()[0]
        fake_l_name = fake_name.split()[1]
        fake_email = fakegen.email()

        # Create new Users
        user = User.objects.get_or_create(f_name = fake_f_name, l_name = fake_l_name, email = fake_email)[0]
        user.save()


if __name__ == '__main__':
    print('Populating Models')
    populate(20)
    print('Population Complete')

113fbb1e077477a09ed585a65113fcc5d12b19fe
<mask token>


def populate(N=5):
    for entry in range(N):
        fake_name = fakegen.name()
        fake_f_name = fake_name.split()[0]
        fake_l_name = fake_name.split()[1]
        fake_email = fakegen.email()
        user = User.objects.get_or_create(f_name=fake_f_name, l_name=
            fake_l_name, email=fake_email)[0]
        user.save()


<mask token>

<mask token>
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_project.settings')
<mask token>
django.setup()
<mask token>


def populate(N=5):
    for entry in range(N):
        fake_name = fakegen.name()
        fake_f_name = fake_name.split()[0]
        fake_l_name = fake_name.split()[1]
        fake_email = fakegen.email()
        user = User.objects.get_or_create(f_name=fake_f_name, l_name=
            fake_l_name, email=fake_email)[0]
        user.save()


if __name__ == '__main__':
    print('Populating Models')
    populate(20)
    print('Population Complete')

<mask token>
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_project.settings')
<mask token>
django.setup()
<mask token>
fakegen = Faker()


def populate(N=5):
    for entry in range(N):
        fake_name = fakegen.name()
        fake_f_name = fake_name.split()[0]
        fake_l_name = fake_name.split()[1]
        fake_email = fakegen.email()
        user = User.objects.get_or_create(f_name=fake_f_name, l_name=
            fake_l_name, email=fake_email)[0]
        user.save()


if __name__ == '__main__':
    print('Populating Models')
    populate(20)
    print('Population Complete')

import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_project.settings')
import django
django.setup()
import random
from faker import Faker
from appTwo.models import User
fakegen = Faker()


def populate(N=5):
    for entry in range(N):
        fake_name = fakegen.name()
        fake_f_name = fake_name.split()[0]
        fake_l_name = fake_name.split()[1]
        fake_email = fakegen.email()
        user = User.objects.get_or_create(f_name=fake_f_name, l_name=
            fake_l_name, email=fake_email)[0]
        user.save()


if __name__ == '__main__':
    print('Populating Models')
    populate(20)
    print('Population Complete')

import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','test_project.settings')

import django
django.setup()


import random
from faker import Faker

from appTwo.models import User


fakegen = Faker()


def populate(N=5):
    for entry in range(N):

        #create fake data
        fake_name = fakegen.name()
        fake_f_name = fake_name.split()[0]
        fake_l_name = fake_name.split()[1]
        fake_email = fakegen.email()

        # Create new Users
        user = User.objects.get_or_create(f_name = fake_f_name, l_name = fake_l_name, email = fake_email)[0]
        user.save()


if __name__ == '__main__':
    print('Populating Models')
    populate(20)
    print('Population Complete')
