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 wag...@googlegroups.com
Hello,
I've noticed that wagtail sets the LOGIN_URL and LOGIN_REDIRECT_URL variables to redirect from the django admin to the Wagtail admin.
As far as I know, if I'd like to use the @login_required decorator, I need to be able to set these variables for my user login pages. Is there a current workaround for this?
Full disclosure: I'm pretty green at setting these up with Django much less wagtail.
Any help would be appreciated!
Matthew Westcott
unread,
May 19, 2015, 5:45:12 AM5/19/15
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
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 wag...@googlegroups.com
Thanks for the quick reply Matt.
I also noticed that django.contrib.sites is isn't one of the default INSTALLED_APPS.
Would I be able to install django.contrib.sites without causing any big problems with the wagtail?
Cheers,
Mo
Matthew Westcott
unread,
May 20, 2015, 7:56:05 AM5/20/15
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 wag...@googlegroups.com
Hi Mo,
I think enabling django.contrib.sites should be fine, although it probably hasn't had much testing - so give it a go, and let us know if you run into any issues. The only restriction I'm aware of is that you probably won't be able to use Django's CurrentSiteMiddleware <https://docs.djangoproject.com/en/1.8/ref/contrib/sites/#site-middleware>, as the 'request.site' variable conflicts with the one set by Wagtail's SiteMiddleware.