Do you have a variable called PollsConfig inside this file (
*mainsite/apps.py*) 
If yes,  can you change *polls.apps.PollsConfig* in your INSTALLED_APPS 
into *mainsite.apps.PollsConfig*


On Tuesday, 8 March 2022 at 21:55:08 UTC+8 alec...@gmail.com wrote:

> 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 jmizpaha...@gmail.com 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 alec...@gmail.com 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 guitard...@gmail.com 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 alec...@gmail.com 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 guitard...@gmail.com 
>>>>> 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 alec...@gmail.com 
>>>>>> 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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c4b1e8a1-0778-4871-bc7d-2ab91d25c836n%40googlegroups.com.

Reply via email to