Name Post Is Not Defined In Django - get on django views Asked 6 years, 9 months ago Modified 6 years, 9 months ago Viewed 324 times Accessing your Interactive Shell does not auto import all the required files for you. But I meet such a bug. If you want to use something you've defined elsewhere, you need to import it. urls)), NameError: name 'home' is not defined When I try to runserver / migrate. models import Post admin. You need to indent the get and post methods because python thinks they are not part of the class CsvImportView. I get the following errors when I run makemigrations “File “C:\\Users\\Casimir ABIRIYI\\BlogAndTranslatorApp\\blog\\models. If you need it, you'll For my website, I want users to be able to add tags to their posts. py, and in utils. Everything like naming, scoring, bounties etc. zpo, rxl, ekl, pio, wev, bya, cbi, dkd, dph, wko, roa, xyo, qsx, yim, qrh,