I'm new to Python and Django, and I'm wondering how you would query the database without using a model.
I have a table of ignored words, which consists of a primary key and a string of the word. How would I query in my text to "ignore" the word, if it's in the table?
All of the documentation and examples involve models, for say a Person object. But I don't know a model object for an ignored word, so it doesn't make sense.
def determine_important_words(original_words):
for i, word in enumerate(original_words):
if word[0].isupper():
if word not in important_words:
important_words.append(original_words[i])
return important_words
The table I have is using MySQL.
Thanks!