Load the data
This commit is contained in:
parent
3eb82a4a0b
commit
d4aefb6bb7
|
@ -9,6 +9,11 @@ or to type in the search engine.
|
||||||
import random
|
import random
|
||||||
from django.db import models
|
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):
|
class InvalidData(Exception):
|
||||||
''' Thrown when the DB contains invalid data, and cannot perform
|
''' Thrown when the DB contains invalid data, and cannot perform
|
||||||
|
|
Loading…
Reference in a new issue