If I would like to override the KeywordsWidget (the TextInput) how could I
do that? I want to add a custom validator to it. Thanks
class KeywordsWidget(forms.MultiWidget):
"""
Form field for the ``KeywordsField`` generic relation field. Since
the admin with model forms has no form fie
I've successfully deployed my first application with nginx, gunicorn,
memcached, supervisor, postgresql.
However, when users try to set the publish date to publish it later. It
never get published on the blog. I can't get the query with them either on
different places with the base manager. I t
When using the wordpress_import tool. I want to set a specific site ID. How
could I do that? What I can see in the base.py it sets itself to
get_current():
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/blog/management/base.py#L156
I tried setting that to Site.objects.get(name='t
> siteperms.sites.add(site)
>
> On Thu, Jul 21, 2016 at 5:15 PM, zruu >
> wrote:
>
>> Hi Ryne,
>>
>> Thanks for the quick reply. That was what I was looking for. I have a
>> form on the front end that a user can create a site, and a user ac
ur goal is it's all I can offer.
>
> On Thu, Jul 21, 2016 at 4:56 PM, zruu >
> wrote:
>
>> Hey guys,
>>
>> I really need your help. I'm stuck at the moment. Maybe is too late.
>> However. I need to in my class view add site permission instead of
Hey guys,
I really need your help. I'm stuck at the moment. Maybe is too late.
However. I need to in my class view add site permission instead of using
through the admin. I have no clue how to do this.
I looked through the Mezzanine code and all I found was this piece of code
that looks someth
I don't know how it's built, but I noticed something today. When having
*SESSION_COOKIE_DOMAIN* on for a wildcard solution with all the sites I can
see others comments that are deleted. I don't think it should be like that.
I would rather hide them from users that do not have permission to that
sub_user = User.objects.get(username=username)
return {
'user': user,
}
Den måndag 18 juli 2016 kl. 12:55:50 UTC+2 skrev zruu:
>
> For some reason I do not know why, when I write this context processor I
> can't go to /accounts/update/ anymore
For some reason I do not know why, when I write this context processor I
can't go to /accounts/update/ anymore. It displays a 404.
def user_subdomain(request):
from django.shortcuts import get_object_or_404
username = request.META['HTTP_HOST'].split('.')[0]
user = get_object_or_404(