You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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 do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Do you have the app imported in the settings.py?
Also try using the "app_name" var in each of your urls.py files.
Alec Greenholdt
unread,
Mar 7, 2022, 12:35:40 PM3/7/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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
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 do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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.
Alec Greenholdt
unread,
Mar 7, 2022, 10:47:56 PM3/7/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Question: Do you have a folder named polls in your project directory? And inside that directory there's an apps.py file?
Alec Greenholdt
unread,
Mar 8, 2022, 8:55:08 AM3/8/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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