From d4aefb6bb78aecd693d471cfb42a70526cc3e84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Sun, 25 Feb 2018 13:17:44 +0100 Subject: [PATCH] Load the data --- profiles/models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiles/models.py b/profiles/models.py index dc8cab2..deb7e7b 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -9,6 +9,11 @@ or to type in the search engine. import random from django.db import models +NICKNAMES = open("/usr/share/dict/american-english").read().splitlines() +LASTNAMES = open("../data/lastnames.txt").read().splitlines() +FIRSTNAMES = open("../data/firstnames.txt").read().splitlines() +EMAIL_DOMAINS = open("../data/email_domains.txt").read().splitlines() + class InvalidData(Exception): ''' Thrown when the DB contains invalid data, and cannot perform