[mezzanine-users] Is it possible to integrate django-allauth in mezzanine/cartridge ?
Yes. Django-allauth -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] URL Parameters for a Page
Learn more about the URL dispatcher https://docs.djangoproject.com/en/1.9/topics/http/urls/ -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Deploying vennila mezzanine site on Digital Ocean
Glad it worked. But how did you restart? Restarting the service only didn't work for me. Only overall reboot of server did it for me. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Field Injected: Column cannot be null
Instead of providing the null and blank parameters, you should take them out and maybe you should use the default='' -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Images have disappeared
I guess you've in one way or the other, deleted the media folder, or a folder holding the uploaded images relating to the missing ones. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Deploying vennila mezzanine site on Digital Ocean
I guess same thing happened to me, and I spent more than a day figuring out. After deploying for the first time, please *RESTART* ($ sudo reboot) your server. If I'm right, it should solve your problem. For whatever reasons, after deploying, supervisor doesn't kick in automatically, and the gunicorn.conf.py? (mine complained of missing gunicorn.sock) file is created on the fly, thus it wouldn't exist unless the supervisor whatever is running. If it doesn't work, then our problems might be different. On Thursday, December 3, 2015 at 3:28:08 PM UTC, Klerp wrote: > > Even on Ubuntu 14.04.3 x32 I get the same error : 502 bad gateway : nginx > / 1.4.6 (Ubuntu) and the same cause > > $cat logs/deploytest_supervisor > Error: 'gunicorn.conf.py' doesn't exist > > > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Re: Issues Getting Category
Its not showing up, because your if statement evaluates to false. It doesn't know of ANY string "news" in the template. Thus, it'll always evaluate to false. I guess your issues are more of getting fundamentals with django, than has to do with mezzanine! On Friday, November 27, 2015 at 4:32:45 PM UTC, R.J. Jackson wrote: > > However if I don't put the if category == "news" part of it, it does show > up fine. > > On Friday, November 27, 2015 at 10:14:10 AM UTC-5, R.J. Jackson wrote: >> >> Like I said I have tried working with tags and it doesn't work. This is >> the code I had. >> >> {% with x.categories.all as categories %} >> {% if categories %} >> {% for category in categories %} >> {% if category == "news" %} >> {{category}} >> {% endif %} >> {% endfor %} >> >> On Thursday, November 26, 2015 at 4:03:21 PM UTC-5, Danny S wrote: >>> >>> On 27/11/2015 4:33 AM, R.J. Jackson wrote: >>> >>> Hi, thank you it was helpful. >>> >>> I have a follow up question, lets say I wanted to do a check to see if >>> category is == to a string, how can I do that? >>> >>> >>> Why not read up on Django template tags? >>> https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#if >>> >>> There's several examples there using both == and %ifequal, see which one >>> works best for you. >>> >>> Seeya. Danny. >>> >>> >>> I have tried using the if tag but it doesn't work. >>> >>> On Wednesday, November 25, 2015 at 6:09:42 PM UTC-5, Nkansah Rexford >>> wrote: >>>> >>>> Perhaps the blog_post_list.html file might be of help. In mine, I find >>>> this: >>>> {% with blog_post.categories.all as categories %} >>>> {% if categories %} >>>> ... >>>> {% for category in categories %} >>>> {{ >>>> category }}{% if not forloop.last %}, {% endif %} >>>> {% endfor %} >>>> {% endif %} >>>> {% endwith %} >>>> >>>> That hopefully gives an idea how to fetch a category. >>>> >>>> And remember, you wouldn't expect to find a category object or objects >>>> if one isn't already created. >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Mezzanine Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to mezzanine-use...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: How to register settings in Django 1.7 and greater?
Do this: register_setting( name="TEMPLATE_ACCESSIBLE_SETTINGS", append=True, default=("BLOG_INSTAGRAM_URL", "ANOTHER_ONE_HERE", "AND_ANOTHER", "AND_SO_FORTH"), ) On Friday, November 27, 2015 at 11:35:43 AM UTC, wh4n wrote: > > The thing is that I have not included my app as an AppConfig. The setting > won't appear anyway. So I don't know what to do next. Should I change my > app "myappname" to "myappname.conf" or what? > > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: How to register settings in Django 1.7 and greater?
In your installed app, you should have something like: That's all you need: INSTALLED_APPS = ( ... "my_app", ... ) Then, simply register your setting in the defaults.py which is in the "my_app" app folder in the directory same as the views.py and models.py etc. Then refresh your browser, go into your admin, in Settings, you should see the setting you registered in there. On Friday, November 27, 2015 at 11:35:43 AM UTC, wh4n wrote: > > The thing is that I have not included my app as an AppConfig. The setting > won't appear anyway. So I don't know what to do next. Should I change my > app "myappname" to "myappname.conf" or what? > > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: 'Show in Menus' options doesn't work
Had to set my this: http://mezzanine.jupo.org/docs/content-architecture.html#filtering-menus PAGE_MENU_TEMPLATES = ( (1, "Top navigation bar", "pages/menus/primary.html"), (2, "Left-hand tree", "pages/menus/tree.html"), ) Got it working now -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: FileField renders as type='text' in custom template
Please, any assistance on this? -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Issues Getting Category
Perhaps the blog_post_list.html file might be of help. In mine, I find this: {% with blog_post.categories.all as categories %} {% if categories %} ... {% for category in categories %} {{ category }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %} {% endwith %} That hopefully gives an idea how to fetch a category. And remember, you wouldn't expect to find a category object or objects if one isn't already created. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: mezzanine_block
Did i read you say you want "editable containers" on your homepage? If my guess is right, you probably are looking for the {% editable %} {% endeditable %} template tags See: http://mezzanine.jupo.org/docs/inline-editing.html -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: How to setup multiple themes in Mezzanine?
You may want to look into this: http://stackoverflow.com/questions/16585382/how-to-implement-dynamic-theme-in-django-app -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Mezzanine social auth
I'm using Allauth in my project with mezzanine, and its working fine, unless you want to thrown in features Allauth doesn't have -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Access FileField in a Page model
I have a field: class HomePage(Page): featured_image = FileField(verbose_name=_("Featured Image"), upload_to=upload_to("main.HomePage.featured_image", "homepage"), format="Image", max_length=255, null=True, blank=True) In my templates, what do I do to get the featured_image to show? I've loaded mezzanine_tags According to the Blog Post example (referred to it, because devs here love pointing to source code as examples), this is how it was done: This is what I have: But it doesn't work. According to: http://mezzanine.jupo.org/docs/utilities.html#thumbnail, the thumbnail should work on my situation. Its not working, Anything I'm missing? -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Access FileField in a Page model
I dropped to shell, and found this to be strange: >>> x = HomePage.objects.get(pk=1) >>> x >>> x.title u'Home' >>> x.slug u'/' >>> x.heading u"Okay, you're welcome" >>> x.subheading u'We believe in change by the people for the people. We believe people can take development into their own hands.' >>> x.featured_image u'' >>> Why and how? -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Access FileField in a Page model
I dropped to shell, and found this to be strange: >>> x = HomePage.objects.get(pk=1) >>> x >>> x.title u'Home' >>> x.slug u'/' >>> x.heading u"Okay, you're welcome" >>> x.subheading u'We believe in change by the people for the people. We believe people can take development into their own hands.' >>> x.featured_image u'' >>> Why and how? -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Access FileField in a Page model
Got it working -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Editable tags not working for custom content?
Didn't fix it for me either. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] 'Show in Menus' options doesn't work
Show in menus: - Top navigation bar - Left-hand tree - Footer Unchecking all of that should make the page in context to not appear in the Top Navigation, left-hand tree and the footer. It still shows although I've unchecked them all. Any step more to get a page not to show in navigation? I created a form, and I don't want it shown in the navigation. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Use django models.ImageField instead of FileField from Mezzanine
Hi, I'm still learning my way through mezzanine. when I replace this: image = FileField(verbose_name=_("Image"), upload_to=upload_to("main.HomePage.image", "image"), format="Image", max_length=255) with image = models.ImageField(upload_to='myimages') it doesn't show up in the specific page the ImageField is used when in the admin of mezzanine. Anything I'm missing? I'm dropping down to the ImageField of Django considering how inconsistent the filebrowser thing in Mezza is, at least to my liking. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: page_processor.py for HomePage
Figured it out. Caching, oooh Caching. I had memcached shutdown, no idea where things were being cached, as I hard refresh pages all the time. thanks On Friday, October 16, 2015 at 11:52:13 AM UTC, Nkansah Rexford wrote: > > I have this in default mezza urls > url("^$", "mezzanine.pages.views.page", {"slug": "/"}, name="home"), > > I have this in my app models > class HomePage(Page): > ''' > A page representing the format of the home page layout > ''' > heading = models.CharField(max_length=200) > subheading = models.CharField(max_length=500, > help_text="The subheading just below the heading") > action_link = models.URLField() > > class Meta: > verbose_name = _("Home page") > verbose_name_plural = _("Home pages") > > Homepage loads up fine, via admin and on slug, / > > I want to add out a mere text, say, "Just Testing" to HomePage context, > and have done this: > > @processor_for(HomePage) > def show_my_string(request, page): > return {"item": "Just testing"} > > > The {{ item }} isn't showing up when I access it on homepage page. > > I've done the above for Contact using example on mezzanine docs, but the > Homepage isn't working. > > Anything special to get it working for the homepage? What am I missing? > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: registering new settings for templates
got it working. Yet another missing piece from the docs. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Re: registering new settings for templates
Yeah, I'm referring to that, but simply looking at that part makes little meaning *how *to use it, unless you see an example like this <http://stackoverflow.com/questions/24331660/unable-to-register-setting-with-defaults-py-in-app-it-will-not-override-mezzani>, which imho, should be the most immediate thing following this section: http://mezzanine.jupo.org/docs/configuration.html#reading-settings On Friday, October 16, 2015 at 3:02:58 AM UTC, Danny S wrote: > > I suspect Nkansah is referring to this setting: > > > http://mezzanine.jupo.org/docs/configuration.html#template-accessible-settings > > But yes, perhaps TEMPLATE_ACCESSIBLE_SETTINGS should be referenced in the > docs at the point that talks about register_setting() > > > > On 16 October 2015 at 13:03, Ryne Everett <rynee...@gmail.com > > wrote: > >> If something is missing please enlighten us. What did you learn? >> >> On Thu, Oct 15, 2015 at 9:28 PM, Nkansah Rexford <seanm...@gmail.com >> > wrote: >> >>> got it working. Yet another missing piece from the docs. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Mezzanine Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to mezzanine-use...@googlegroups.com . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Mezzanine Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to mezzanine-use...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > *Danny Sag* > Chairperson > Round World Events SA, Inc > City of Small Gods Terry Pratchett Fan Club - > http://cityofsmallgods.org.au > > *Nullus Anxietas VI - The Australian Discworld Convention* - > http://ausdwcon.org > "The Discworld Grand Tour" - Adelaide SA, August 4-6, 2017 > > > > > > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Re: registering new settings for templates
The documentation mezzanin.jupo.org/docs/configuration.html only mentions how to register a new setting, expose it to admin, and access/read via models etc. However, there's no mention how to expose the registered setting via templates, which to do, has to be done this way: from mezzanine.conf import register_setting from django.utils.translation import ugettext_lazy as _ register_setting( name="TEMPLATE_ACCESSIBLE_SETTINGS", append=True, default=("FOOTER_TEXT", "ANOTHER_SETTING", "YET_ANOTHER_SETTING"), ) register_setting( name="FOOTER_TEXT", label=_("Footer About Pesewa"), description=_("Footer Info"), editable=True, default="footer", ) register_setting( name="ANOTHER_SETTING", label=_("Another Setting"), description=_("Footer Info"), editable=True, default="footer", ) -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] registering new settings for templates
After registering a setting... from mezzanine.conf import register_setting from django.utils.translation import ugettext_lazy as _ register_setting( name="FOOTER_TEXT", label=_("Footer About"), description=_("If present, about information about " "would be displayed."), editable=True, default="Footer information here", ) How do I get it to show in templates? Does it not append whatever is registered to templates context on the fly? -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Where from "USER": "ProjectName" in local_settings on server?
Thanks. On Monday, October 12, 2015 at 4:30:22 PM UTC, Eduardo Rivas wrote: > > You can set it to a custom name in deploy/local_settings.py.template. > That file is the template that gets uploaded to the server every time > you deploy. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Where from "USER": "ProjectName" in local_settings on server?
After deploy, I noticed the local_settings file has got "USER": "ProjectName" under database section Where from that name? I understand it 'guessed' it from the ProjectName, but is there a way I can change that during deployment? -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] lack of /static/ in urls
I'm following this tutorial: bitofpixels.com/blog/mezzatheming-creating-mezzanine-themes-part-1-basehtml/ I've added the theme app, and made all the templates specific changes. Done! I run the app in browser, and all references to static files and media files are all lacking the ../static/... part. So for instance, Instead of: http://localhost:8000*/static/*img/home_blog/4.jpg/ I get http://localhost:8000/img/home_blog/4.jpg (without the static part) When I explicitly add the static part to any url, the item loads, meanwhile, for whatever reasons, Mezzanine doesn't add the /static/ part. Here's my settings file: http://pastebin.com/6ZWgggSC I don't know where to look anymore, as the settings file looks perfect, and the urls are okay, because if not, I wouldn't be able to have the urls with /static/ in them pointing to the resources. thanks -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.