these are my folders. the only thing the tutorial had me create upon creation of the project and app was a urls.py file inside my "mainsite" folder. and I show in the code above what it had me add. those are the only things I have done
On Tuesday, March 8, 2022 at 7:12:23 AM UTC-6 [email protected] wrote: > Question: Do you have a folder named polls in your project directory? And > inside that directory there's an apps.py file? > > On Tuesday, 8 March 2022 at 11:47:56 UTC+8 [email protected] wrote: > >> >> this is what i did and it changed nothing. i also don't know what exactly >> you mean by app because I don't believe I ever created an app. as shown >> above the code 2 lines of code with polls is the only thing I've added as >> shown in the tutorial >> On Monday, March 7, 2022 at 8:47:46 PM UTC-6 [email protected] wrote: >> >>> That's definitely your problem. Include the app under INSTALLED_APPS - >>> put "app_name.apps.AppNameConfig" with app_name being the name of your app. >>> >>> On Monday, March 7, 2022 at 11:35:40 AM UTC-6 [email protected] wrote: >>> >>>> this is the installed apps in settings.py I haven't touched it. i only >>>> did what it told me to do in the django tutorial documentation. as a >>>> reminder, I attached only things I have added since I created the project. >>>> i even tried to delete it all and redo it and I get the same issue >>>> >>>> On Monday, March 7, 2022 at 8:42:58 AM UTC-6 [email protected] >>>> wrote: >>>> >>>>> Do you have the app imported in the settings.py? >>>>> >>>>> Also try using the "app_name" var in each of your urls.py files. >>>>> >>>>> On Sunday, March 6, 2022 at 10:29:23 PM UTC-6 [email protected] wrote: >>>>> >>>>>> >>>>>> if i try to migrate, this error pops up as well >>>>>> On Sunday, March 6, 2022 at 6:24:44 PM UTC-6 Alec Greenholdt wrote: >>>>>> >>>>>>> as described in the documentation i am putting this code in. as soon >>>>>>> as i put in "path('polls/', include('polls.urls'))," i get the >>>>>>> following error. Please help >>>>>> >>>>>> -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b3a71469-967e-4c63-a0be-22e963cbc7bbn%40googlegroups.com.

