Re: [mezzanine-users] cartridge list all products

2021-05-28 Thread Ken Bolton
On Fri, May 28, 2021 at 4:56 AM ek ekke wrote: > I am trying to list all products from cartridge, is that function all > ready in there and how can i call it from a template? > Don't want to write the view if it's all ready in there somewhere. > Check out the `Category` module, which is a

Re: [mezzanine-users] New to mezzanine and cartridge

2021-04-14 Thread Ken Bolton
It may be as simple, in your case, as establishing `settings.SHOP_PAYMENT_STEP_ENABLED` as `False`. I'm not sure I would want to do a purely CoD business. There is a very real risk of not getting paid. (Full disclosure: I automate know-your-customer due diligence for the payments industry.) On

Re: [mezzanine-users] Any design document on how to scale(infra) Mezzanine ??

2020-09-05 Thread Ken Bolton
On Sat, Sep 5, 2020 at 6:48 AM nitish kumar wrote: > If anyone already able to scale please let me know. > What have you tried? Where is your bottleneck? Mezzanine is (and remains) just a Django app, so your strategies for scaling will not be specific to Mezzanine. -- You received this

Re: [mezzanine-users] Category Link

2020-04-19 Thread Ken Bolton
On Sun, Apr 19, 2020 at 11:41 AM Indrajit Chatterjee < indrajit.chatter...@gmail.com> wrote: > > how do I get a link to use from a non admin blog post - that shows a page > of all posts in the category something like /blog/ > >

Re: [mezzanine-users] Deploying with Python3 seems to install Python2.7

2019-05-01 Thread Ken Bolton
t; falling over as well. > > I'll keep trying > > M > > On Tuesday, April 30, 2019 at 10:29:46 PM UTC+10, Ken Bolton wrote: >> >> Hi Mike, >> >> Fabric3 and Python3 were used on the dev machine and Python3.6 is >>> >> >> You need to use

Re: [mezzanine-users] Deploying with Python3 seems to install Python2.7

2019-04-30 Thread Ken Bolton
Hi Mike, Fabric3 and Python3 were used on the dev machine and Python3.6 is > You need to use an earlier version with the fabfile; `fabric==1.2.2` works, if the mailing list archives are to be believed. The alternative would be a rewrite of the fabfile to account for changes in the Fabric api.

Re: [mezzanine-users] Problem running "fab" - "No module named mezzanine.utils.conf"

2019-01-13 Thread Ken Bolton
Travis, Your video is excellent. I am about halfway through at 2x. I have shared it in my local developers' group chat, where a new Mezzanine project was just started by someone who has not yet deployed mezz. Thank you for your contributions. -ken -- You received this message because you are

Re: [mezzanine-users] Problem running "fab" - "No module named mezzanine.utils.conf"

2019-01-12 Thread Ken Bolton
Hi Christer, I'm not sure it makes a difference, but I am curious why you didn't try the full import in the python shell: `from mezzanine.utils.conf import real_project_name`. It is possible that would have yielded enlightenment. (Also, not using `shell_plus`, part of django-extensions, is a

Re: [mezzanine-users] Static files give 404 if debug == False

2019-01-12 Thread Ken Bolton
Hi Christer, see inline below. -ken On Sat, Jan 12, 2019 at 9:21 AM Christer Enfors wrote: > Ah, yes, thank you very much. That explains so much. :-) I'm wondering about one thing, though - it says I should set up my live DB_PASS and ADMIN_PASS. Does entering them here set these passwords, or so

Re: [mezzanine-users] Static files give 404 if debug == False

2019-01-12 Thread Ken Bolton
Hi Christer, I hear your frustration. Let's see if we can help clear things up. Mezzanine, out of the box, does nothing. It is software. You run it, usually on a local development machine, with `DEBUG = True` in settings.py. You've got that part, congratulations! There is a section of the

Re: [mezzanine-users] Deploying to new DigitalOcean Droplet

2018-05-25 Thread Ken Bolton
Install Fabric version 1, not 2. On Fri, May 25, 2018, 21:19 Data Intelligence wrote: > Hi, > I've spent two days trying to get past this issue of deployment. > > I'm following the tutorial which is straight forward on the site but can't > get past fabric > > Here is the

Re: [mezzanine-users] TinyMCE codesample plugin

2018-05-23 Thread Ken Bolton
Mezzanine uses TinyMCE 4.1 at the moment. Codesample appears to require TinyMCE 4.3. -ken On Wed, May 23, 2018 at 7:33 AM, wrote: > Is it possible to enable the codesample plugin in TinyMCE ? > > -- > You received this message because you are subscribed to the Google

Re: [mezzanine-users] Errors running Mezzanine with Django v1.11

2018-03-22 Thread Ken Bolton
Hi Thomas, It works when I comment out the line: > from django.contrib.contenttypes import * Let me know if that gets you there. -ken -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving

Re: [mezzanine-users] Errors running Mezzanine with Django v1.11

2018-03-22 Thread Ken Bolton
Hi Thomas, Affirmative, the master branches of Mezzanine and its core dependencies have not yet had their versions bumped. Hrm, same error? I can't replicate it in a new environment with EXTRA_MODEL_FIELDS enabled. Would you try again with the commands I provided and the following in the

Re: [mezzanine-users] Errors running Mezzanine with Django v1.11

2018-03-22 Thread Ken Bolton
Mezzanine 4.2.3 is not compatible with Django 1.11. You will need to use the master branch, as you've tried. My bet is that you used master branch but did not include the master branches of the dependencies. This following works for me: $ mkvirtualenv mezz-test $ cdvirtualenv $ pip install -e

Re: [mezzanine-users] blog posts are only visible to logged users

2018-03-06 Thread Ken Bolton
On Tue, Mar 6, 2018 at 8:18 AM, wrote: > I don't have pages. I've rendered templates directly with TemplateView > (django 1.11.10). Are there any django template tags in templates? > If you don't have Page objects, how do you know Mezzanine is working? -- You received

Re: [mezzanine-users] blog posts are only visible to logged users

2018-03-06 Thread Ken Bolton
On Tue, Mar 6, 2018 at 6:43 AM, wrote: > > I've integrated mezzanine to my existing django projects. It works. > The only thing is I'm unable to see blog posts if I'm not logged in. Would > anybody will guide me to diagnose the problem? > What is the published state of

Re: [mezzanine-users] Trying to add custom bootstrap.css breaks the dropdown menu.

2018-02-27 Thread Ken Bolton
Hi Mike, Stab in the dark here, but if you load your CSS above the the default one, the cascading nature of "cascading style-sheets" might do the work for you. -ken On Tue, Feb 27, 2018 at 2:17 PM, Mike delvalle < michael.james.delva...@gmail.com> wrote: > > Hi guys! I am trying to replace

[mezzanine-users] Mezzanine on Gentoo w/ Apache and mod_wsgi

2018-02-27 Thread Ken Bolton
Just posted on the IRC channel and sending here with permission of the author: https://blog.lordvan.com/blog/mezzanine-with-mod_wsgi-on-apache-on-gentoo/ Hope this helps somebody! -ken -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To

Re: [mezzanine-users] python manage.py runserver error

2018-02-19 Thread Ken Bolton
The Django Documentation is your new best friend: https://docs.djangoproject.com/en/2.0/ref/settings/#allowed-hosts On Mon, Feb 19, 2018 at 7:18 AM, ปิ่น พิบูลย์ wrote: > > after, I type python manage.py runserver error. It's show : >

Re: [mezzanine-users] Need to have the same page in multiple locations in the page tree, how link them?

2018-02-14 Thread Ken Bolton
On Wed, Feb 14, 2018 at 9:24 AM, Roger van Schie wrote: > > I think I will just extend the Page model to include a foreign key, and > then add another check into the template tag to see whether the child page > currently being "inspected" has a foreign key or not, and

Re: [mezzanine-users] Need to have the same page in multiple locations in the page tree, how link them?

2018-02-14 Thread Ken Bolton
Hi Roger, It is possible to do some terrifying things with the page templates. Read http://mezzanine.jupo.org/docs/content-architecture.html#page-templates. (Tortured language in that section is largely my fault, and improvements are welcome.) I have managed to create "content inheritance trees"

Re: [mezzanine-users] Postgres problems with displayable?

2018-02-13 Thread Ken Bolton
Hi all, I've been talking with Majd on the IRC channel for a few days about this. Perhaps he'll chime in with his solution and the steps he took to get there, but the short of it was that his production environment had a different site_id and so the queries were not finding the content even

Re: [mezzanine-users] Need to have the same page in multiple locations in the page tree, how link them?

2018-02-08 Thread Ken Bolton
Hi Roger. Would the Link model satisfy the requirements? On Feb 8, 2018 5:48 AM, "Roger van Schie" wrote: > Hi Everyone > > I have a use case where the client basically wants a rich text field page > to write about a certain product, but this product falls under

Re: [mezzanine-users] Cannot edit content on Rich Text Page

2018-02-01 Thread Ken Bolton
'python manage.py collectstatic` will put the files in your `settings.STATIC_ROOT`. Make sure that directory is being served by your web server. If you are using the fabfile to create and deploy your project, that will happen automatically. -- You received this message because you are subscribed

Re: [mezzanine-users] Syncing postgres dev and production databases...

2018-01-23 Thread Ken Bolton
I want to re-emphasize that this should only be done before you are live in production, and then only once! Your customers will hate you if you blow away their prod database after they've started blogging. The automated process goes in the other direction, allowing us to take a dump of production

Re: [mezzanine-users] Just Deployed a Mezzanine Project - Having Admin Issues All of a Sudden

2018-01-10 Thread Ken Bolton
Don't delete the post; someone else (or future-you) may have this exact problem and could find this very helpful. Contributions are always welcome! My recent contributions have been to answer questions here and on IRC. Documentation can always be improved and clarified. Testing is needed before

Re: [mezzanine-users] Just Deployed a Mezzanine Project - Having Admin Issues All of a Sudden

2018-01-10 Thread Ken Bolton
Hi Aaron, Take a look at the `fabfile.py` to see if you missed any key deployment steps. Stab in the dark, here, but my instincts say that you need to run the `collectstatic` management command. hth, ken On Wed, Jan 10, 2018 at 10:31 AM, Aaron Wright wrote: > Hello! >

Re: [mezzanine-users] Configure mezzanine e-mail for G-mail

2017-12-27 Thread Ken Bolton
Hi Grant, This is a Django question and not at all specific to Mezzanine. https://stackoverflow.com/questions/31324005/django-1-8-sending-mail-using-gmail-smtp includes some steps you might review to make sure you aren't missing anything and ways to test this programmatically. hth! best, ken

Re: [mezzanine-users] Re: How do I make a blog post's categories show up?

2017-11-14 Thread Ken Bolton
Hi Tom, Like they used to say: "Use the Source, Luke": https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/blog/urls.py#L22-L23 On Mon, Nov 13, 2017 at 10:17 PM, Tom Tanner wrote: > Related question: How do I get the URL for posts in each category? I

Re: [mezzanine-users] Re: How to load template based on slug?

2017-11-06 Thread Ken Bolton
On Mon, Nov 6, 2017 at 3:08 PM, Rainell Dilou Gómez wrote: > > Before starting with this work, I would recommend you (strongly > recommended) to read the *Django documentation about the work with > templates * and >

Re: [mezzanine-users] Cannot Edit Pages, Forms in Django 1.10 Admin

2017-10-10 Thread Ken Bolton
Try reproducing your issue in a new Mezzanine project. My guess is that you introduced a bug in your urls. -ken On Tue, Oct 10, 2017 at 12:41 PM, John-Paul Jorissen wrote: > I'll just link to my stack overflow question, the gist of which is I get a > 404 when I attempt

Re: [mezzanine-users] Integrate Mezzanine Framework with Existing Django Project

2017-10-07 Thread Ken Bolton
There may be other approaches, but what has worked for me is to create a new Mezzanine project and merge your existing Django project's settings, urls, views, etc., into the Mezzanine project. -ken On Sat, Oct 7, 2017 at 5:47 AM, Shell Voide wrote: > > It's been

Re: [mezzanine-users] Re: Config errors when trying to run Python script

2017-10-03 Thread Ken Bolton
ues, are described > in a separate, as yet unanswered post, here: https://groups.google. > com/forum/#!topic/mezzanine-users/EPlT4ixe9VA Thanks. > > On Tue, Oct 3, 2017 at 12:06 PM, Ken Bolton <kenbol...@gmail.com> wrote: > >> Can you explain what you mean when you write

Re: [mezzanine-users] Re: Config errors when trying to run Python script

2017-10-03 Thread Ken Bolton
Can you explain what you mean when you write "trying to run Python script"? What do you want this script to do, and how do you want it activated? Have you tried using Django's `manage.py shell` command? There should be no reason, with three months experience, for you to be anywhere near the Django

Re: [mezzanine-users] I get "Bootstrap's JavaScript requires jQuery(…)"

2017-09-25 Thread Ken Bolton
Hi Jenia, It sounds like you probably have not run the `collectstatic` script. I urge you to use the search function on this mailing list's web interface. Many of your questions have been asked and answered before. Hope this helps. -ken On Sun, Sep 24, 2017 at 1:41 PM, jenia mtl

Re: [mezzanine-users] database table for app not found

2017-09-08 Thread Ken Bolton
Hi Bernie, That error likely means that you need to create a schema migration for your `Users` model and apply that migration to your database. https://docs.djangoproject.com/en/1.10/topics/migrations/. - ken On Fri, Sep 8, 2017 at 10:06 AM, Bernie Caessens wrote: > Hi, >

Re: [mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Ken Bolton
On Mon, Sep 4, 2017 at 11:03 AM, Matic Noč wrote: > I have ubuntu 16.04 and when i ssh i see only mezzanine cache and > .virtualenvs, logs folders I am not at laptop now, I cannot send you whole > schema. I have searched around for quite some time and I cannot find etc >

Re: [mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Ken Bolton
That sure is a problem! The path should be `/etc/nginx/` not `etc/nginx`. What OS you are using on your VPS? Regarding the templates, you are encouraged to modify those in your project to your heart's content. Do not modify Mezzanine itself, only the templates copied during the deploy to the root

Re: [mezzanine-users] Redirect 301 NON www TO www

2017-09-04 Thread Ken Bolton
Hi Matic, This is an Nginx question and has nothing to do with Mezzanine (or Django). https://www.digitalocean.com/community/questions/redirecting-non-www-to-www-in-nginx provides a quick solution to your problem. hth! -ken On Mon, Sep 4, 2017 at 8:13 AM, Matic Noč

Re: [mezzanine-users] TinyMCE debugging - Mezzanine 4, Django 10, Python 2.7

2017-08-22 Thread Ken Bolton
Hi Mike, Spitballing here, have you run the "collectstatic" command? -ken On Tue, Aug 22, 2017 at 4:20 AM, Mike Dewhirst wrote: > I'm revisiting a longstanding problem where the TinyMCE editor doesn't > appear and I have edit html by hand. > > Not knowing where to start

Re: [mezzanine-users] Re: Lost in javascript

2017-08-21 Thread Ken Bolton
I will thank you to not shame me for having trouble understanding your question. Best regards, ken On Mon, Aug 21, 2017 at 5:59 PM, Malik Rumi wrote: > Ryne: > > 1. Ok, done. > 2. I already have those in place. > 3. You are now referencing the *actual* project settings,

Re: [mezzanine-users] Re: Lost in javascript

2017-08-20 Thread Ken Bolton
Hi Malik, I'm sorry to read that you are having trouble with this. I believe this is not a problem with Mezzanine or the documentation, but rather with your understanding. I hope I can help clear this up. Please let us know if you continue to spin your wheels. A brief criticism before getting

Re: [mezzanine-users] Cartridge customisation

2017-08-15 Thread Ken Bolton
Hi Simon, I did this years ago using a Django scheduling app (calendarium, at the time) to manage the scheduling and Cartridge to do the product. This was non-trivial. I would probably use https://github.com/llazzaro/django-scheduler today, combining the Event model with the Product model in some

Re: [mezzanine-users] Add Mezzanine to existing site

2017-07-21 Thread Ken Bolton
Hi! Check out Cartridge, the project that spawned Mezzanine, and exists today as a drop-in extensible commerce application specifically for Mezzanine. -ken On Thu, Jul 20, 2017 at 5:07 PM, Александр Складнев wrote: > Hello. I want to add Mezzanine to my existing site,

Re: [mezzanine-users] How include a form in index.html?

2017-07-12 Thread Ken Bolton
On Wed, Jul 12, 2017 at 9:28 AM, wrote: > Well, in general i haven't a lot of practice in Django. I'm on the way) > Awesome! Your question is answered by developing a basic understanding of Django, so get back to us once you have completed the Django tutorial. If you

Re: [mezzanine-users] How include a form in index.html?

2017-07-12 Thread Ken Bolton
Please answer my previous questions and I may be able to answer yours. -ken On Wed, Jul 12, 2017 at 8:29 AM, wrote: > Thanks, Ken. Look, in my urls.py I have such routes: > > url("^$", direct_to_template, {"template": "index.html"}, name="home"), # > main page > >

Re: [mezzanine-users] How to fix UnicodeEncodeError

2017-06-30 Thread Ken Bolton
Hi Karim, If you search the mailing list for "character encoding", you will find this topic covered in detail. It sounds like the database locale is off. When I first encountered this problem, the Mezzanine `fabfile.py` was my guide to fixing it. -ken On Fri, Jun 30, 2017 at 3:52 PM, Karim

Re: [mezzanine-users] Deploying Mezzanine on the Google Cloud Platform

2017-06-25 Thread Ken Bolton
Hi Christian, Mezzanine is just a Django application, and Django applications can be deployed on Google Cloud Platform. >From my perspective, any work to deploy beyond `fab all` is too much effort. I can not speak to the specifics of using the default fabfile to deploy anywhere other than a

Re: [mezzanine-users] How to adjust page width without Twitter feed

2017-06-23 Thread Ken Bolton
On Fri, Jun 23, 2017 at 5:05 AM, Roger van Schie wrote: > > If you want to use the full width of the screen, change: > > to > > > Even better. I lag far behind on front-end dev. My suggestions may work, but are probably far from best practice. -ken -- You received

Re: [mezzanine-users] Re: Trouble With Deployment

2017-06-21 Thread Ken Bolton
On Wed, Jun 21, 2017 at 2:22 PM, KD wrote: > Aborting, no hosts defined. > https://github.com/stephenmcd/mezzanine/search?utf8=%E2%9C%93=%22Aborting%2C+no+hosts+defined%22= > > Looking at fabfile.py, the section of code that (I think) is generating > the error is: > > #

Re: [mezzanine-users] How to adjust page width without Twitter feed

2017-06-19 Thread Ken Bolton
On Mon, Jun 19, 2017 at 10:45 AM, Mike Dewhirst wrote: > > -- 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

Re: [mezzanine-users] Simplifying rich text

2017-06-03 Thread Ken Bolton
Hi Melvyn, Check out https://github.com/stephenmcd/mezzanine/issues/588 for the reason. TL;DR: Write it as an app, e.g. `mezzanine-ckeditor`; share it with us. -ken -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this

Re: [mezzanine-users] Re: Wordpress import and redirects

2017-05-21 Thread Ken Bolton
/fabfile.py#L470-L477 and https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L506-L508 hth, ken On Sun, May 21, 2017 at 9:16 AM, Karim <lemieli...@gmail.com> wrote: > > On Sun, May 21, 2017 at 11:03 PM, Ken Bolton <kenbol...@gmail.com> wr

Re: [mezzanine-users] Publishing access control

2017-05-11 Thread Ken Bolton
Hi Fedor, Study up on Django's `contrib.auth` Users and Groups. There is no magic there, though it requires work to get it right. That is all there is to it. I used to build exactly this kind of system for higher education use 10-15 years ago in Zope/Plone. Zope's access control lists provided

Re: [mezzanine-users] ValueError: invalid literal for int() with base 10: '100%'

2017-04-07 Thread Ken Bolton
I don't think it takes percentages. It is looking for an integer. On Fri, Apr 7, 2017 at 12:22 PM, Leo G wrote: > I did not get this error before when I set the image constraints to 100% > width, not sure why I am getting it now, stack trace is below > > > File

Re: [mezzanine-users] Value for "page_ptr"

2017-03-12 Thread Ken Bolton
Hi Rich, Your converted model, let's call it `Author`, will have all the fields from your legacy Django app, e.g. `dob` for "date of birth". The database table for the `Author` model, `myapp_author`, contains fields `page_ptr_id` and `dob`. `page_ptr_id` will hold the primary-key to the parent

Re: [mezzanine-users] Re: Mezzanine Deployment Instructions lacking and unusable

2017-03-07 Thread Ken Bolton
Hi Joshua, Do those gateway errors go away pretty quickly? If I understand what you are describing, that is Gunicorn restarting, which can take several moments. Henro: I tried to provide some assistance to you in IRC, but never heard back regarding the FABRIC dictionary in your settings. I

Re: [mezzanine-users] Re: Multiple Blogs

2017-01-04 Thread Ken Bolton
category.slug might be better for you! On Wed, Jan 4, 2017 at 4:00 PM, userblaz wrote: > thanks I managed with {% if category.title == 'blog' %}.. > > On Tuesday, January 3, 2017 at 9:47:41 PM UTC+1, Kenneth Bolton wrote: >> >> >> On Tue, Jan 3, 2017 at 2:30 PM, userblaz

Re: [mezzanine-users] Re: Multiple Blogs

2017-01-03 Thread Ken Bolton
On Tue, Jan 3, 2017 at 2:30 PM, userblaz wrote: > > I went through Josh's blog and it was very helpful with the restyle of my site but i didn't see > any section explaining how to have different stylings for 2 or more different blogs. the base > template is the same, I want to

Re: [mezzanine-users] Re: Multiple Blogs

2017-01-03 Thread Ken Bolton
What have you tried so far? Josh's blog on styling mezzanine is where I would start. -ken On Tue, Jan 3, 2017 at 9:54 AM, userblaz wrote: > Hi Kenneth, > > can you suggest how can I style differently the 2 blogs if I want to use > Josh's approach? > >

Re: [mezzanine-users] Best way to install mezzanine as an app?

2016-11-02 Thread Ken Bolton
Hi Melvin, The approach I take is to create a new Mezzanine project and install the legacy project's applications into the new Mezzanine project, finally merging the settings.py files with Mezzanine's taking precedence. hth! -ken On Wed, Nov 2, 2016 at 9:14 AM, Melvin Ramos

Re: [mezzanine-users] I'm not able to install Cartridge

2016-10-13 Thread Ken Bolton
Hi Ahmad, Can you show us what you tried? Saying, "it didn't work", is not an adequate request for assistance. It should be as simple as `pip uninstall html5` followed by `pip install bleach`. -ken On Thu, Oct 13, 2016 at 5:16 AM, ahmad almashni wrote: > Hi , I tried to

Re: [mezzanine-users] Newletters?

2016-10-09 Thread Ken Bolton
Hi Gene, Take a look at https://djangopackages.org/grids/g/email/ for a list of mail tools that have been written for Django. Mezzanine is just a lightweight CMS over Django and does not really support the idea of "plugins" as much as "applications". If none of the existing Django mail tools do

Re: [mezzanine-users] Re: Multiple Blogs

2016-10-07 Thread Ken Bolton
Hi, Both ways mentioned in this thread are pretty standard Mezzanine Way approaches to multiple blogs with separate styles. Josh's suggestion is a good place to start and could be refactored to become Eduardo's suggestion. On Fri, Oct 7, 2016 at 2:36 AM, userblaz wrote: >

Re: [mezzanine-users] Looking at the Mezzanine Documentation I'm Realizing Something...

2016-09-23 Thread Ken Bolton
Hi, You pretty much nailed it. The only caveat, as demonstrated by me and others, is that you don't need to know *much* Python or Django to get started and can use Mezzanine as a way to learn or improve your knowledge of Python and Django. hth! -ken On Thu, Sep 22, 2016 at 6:26 PM, goldtech

Re: [mezzanine-users] Re: New install of Mezzanine with NGINX & GUnicorn issues

2016-08-09 Thread Ken Bolton
Hi Jim, Anything interesting in the gunicorn server logs (at ~/logs/%(proj_name)s_ supervisor)? -ken On Mon, Aug 8, 2016 at 4:09 PM, Jim Spoerl wrote: > Sounds great. But when I backup on the dev machine with: > > pg_dump -Fc libertymessengermezzanine > /tmp/test, > > >

Re: [mezzanine-users] Bad Gateway

2016-07-21 Thread Ken Bolton
Are you able to use the django runserver? It is very hard for me to tell where the problem might be, so I would step through each piece until I find the root cause, starting with the django runserver. hth, ken On Thu, Jul 21, 2016 at 6:06 AM, loevdav wrote: > Hi

Re: [mezzanine-users] Bad Gateway

2016-07-20 Thread Ken Bolton
Hi David, I've gotten away with Mezzanine from the deploy scripts on some very low-power hardware, including raspberry pi and virtualboxen with 500MB RAM, My guess is this is not an issue of resources. Can you share the relevant Django logs that coincide with your bad gateway? They may provide

Re: [mezzanine-users] Images in .pdf Invoice

2016-06-28 Thread Ken Bolton
Outside the scope of Mezzanine/Cartridge, I am getting amazing results using athenapdf to convert HTML to PDF. I manage a sprawling Python application that had a homebrew and long-in-the-tooth webkit integration in c++ and Python to generate PDF. I replaced

Re: [mezzanine-users] Novice Python question about Cartridge model: Order

2016-06-09 Thread Ken Bolton
Start with a working installation, then try to understand what it does. Going the other direction is like learning to read with only an alphabet and no primer texts. -ken On Thu, Jun 9, 2016 at 3:19 PM, Ryan Hewitt wrote: > I'm simultaneously learning Django, Mezzanine

Re: [mezzanine-users] Site wide login?

2016-06-09 Thread Ken Bolton
Yes. On Thu, Jun 9, 2016 at 6:58 AM, Dropad wrote: > Hello Guys, > > Like WordPress I like that a user of a blog can be logged in to every site > so that the user can with his/her object write comments on others and be > linked that way. How could this be done? > > Have

Re: [mezzanine-users] Suggestion on how to make import and export of products using csv from admin panel?

2016-04-29 Thread Ken Bolton
Hi Sathish, What have you tried so far? There is plenty of documentation out there on working with Django and CSV, and plenty more on Django's admin interface. If you are not using Python 3, I can caution you to use the unicodecsv module: https://pypi.python.org/pypi/unicodecsv. hth, ken On

Re: [mezzanine-users] Image Expires Tag - how can I alter this? [Basic user with no understanding query]

2016-04-18 Thread Ken Bolton
Hi Richard, If you are using the Fabric script to deploy your site behind an nginx web server, the default configuration includes thirty-day expires headers at https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/deploy/nginx.conf.template#L41. -ken On Mon, Apr 18,

Re: [mezzanine-users] What is the best way to edit sections/part of a page?

2016-04-18 Thread Ken Bolton
I expected that you would end up there. For good or ill, this was the solution for SPA before onepage and blocks existed and had required no maintenance as Mezzanine has changed. -ken On Mon, Apr 18, 2016 at 1:03 PM, Sebastian Wain wrote: > Thank you again. Finally I

Re: [mezzanine-users] What is the best way to edit sections/part of a page?

2016-04-13 Thread Ken Bolton
Hi Sebastian, Pages can have parent/child relationships to one another. In your template, you can loop through the children of the current page, and those children's children, to create SPA sites. Does that start to get you there? -ken On Wed, Apr 13, 2016 at 1:38 PM, Sebastian Wain

Re: [mezzanine-users] Cartridge checkout modifications #2

2016-04-07 Thread Ken Bolton
Hi Joe, I know very well how you feel. I compiled my first open source project from source in 1994, went "full time" with software development in 2008, have been *de facto* CTO of a tiny startup for about three years, yet still feel like a dilettante most days. And every day I recognize how much

Re: [mezzanine-users] Cartridge checkout modifications #2

2016-04-07 Thread Ken Bolton
What have you tried so far? What you want to do is not difficult. Write views, forms, urls, and templates following the examples provided in the source of Mezzanine & Cartridge. Reading and understanding the Cartridge source is critical; once you grok the flow, most features are fairly trivial to

Re: [mezzanine-users] Does Contact Form Require special Settings? Email gets sent reversely to addrs mentnd in EMAIL Field

2016-03-19 Thread Ken Bolton
https://www.reddit.com/r/django/comments/2dcs40/can_someone_please_explain_mezzanine_forms/ On Fri, Mar 18, 2016 at 10:57 AM, sathish anton wrote: > Hi, > Does Contact Form Require special Settings? Email gets sent reversely to > addrs mentnd in EMAIL Field > that is

Re: [mezzanine-users] Re: What are the Best tools available to write a blog post to mezzanine Blog?

2016-03-01 Thread Ken Bolton
My understanding is BlueGriffon is an HTML editor, the successor to the Nvu project that was all the rage in 2004. It looks nice. I believe you *could* use it to edit the Django templates in your project, though there are better tools and techniques. Have you looked at Mezzanine's WYSIWYG editor

Re: [mezzanine-users] What are the Best tools available to write a blog post to mezzanine Blog?

2016-02-29 Thread Ken Bolton
What have you tried? Mezzanine has a built-in WYSIWYG editor for blog posts and other rich-text content. You can copy and paste content •ahem• "formatted" in a word processor into the editor and the formatting will be retained. -ken On Mon, Feb 29, 2016 at 10:46 AM, Sathish Anton

Re: [mezzanine-users] How can I prevent admin model list page being scrolled all the way to the right by default?

2016-02-29 Thread Ken Bolton
Hi Jo, Have you looked at the admin documentation for Django , Specifically the docs on django.contrib.admin.ModelAdmin.fields? You can limit which fields to show in the change list. Could that solve

Re: [mezzanine-users] Re: Integrating Mezzanine to an existing Django Project

2016-02-24 Thread Ken Bolton
'^admin/', > include(admin.site.urls)), *line, mezzanine starts throwing erros, so I > am guessing that should be kept. > > @Ken: The issue is that I have a bigger project and i just want to add > blog functionality, rather than starting from scratch as you propose. > > > > O

Re: [mezzanine-users] Re: Integrating Mezzanine to an existing Django Project

2016-02-24 Thread Ken Bolton
>> http://stackoverflow.com/questions/15667578/how-do-i-install-mezzanine-as-a-django-app >> >> pp >> >> >> >> On Wed, Feb 24, 2016 at 1:53 PM, Ryne Everett <ryneever...@gmail.com> >> wrote: >> >>> Did you include mezzani

Re: [mezzanine-users] Re: Integrating Mezzanine to an existing Django Project

2016-02-24 Thread Ken Bolton
ually, not the > mezzanine admin: > my urls contains: > from bloga.bloga.urls import * > # here my normal urls including url(r'^admin/', include(admin.site.urls)), > # which if i remove gives me errors > urlpatterns += blog_urls # which contains the generated mezzanine app url > file

Re: [mezzanine-users] Re: Integrating Mezzanine to an existing Django Project

2016-02-24 Thread Ken Bolton
Hi Petar, What have you tried? In my experience, "all models hooked to work with Django models" *do* "appear in Mezzanine admin". -ken On Wed, Feb 24, 2016 at 6:20 PM, Petar Petrov wrote: > So you are saying that all models hooked to work with Django models can > appear in

Re: [mezzanine-users] i am getting error while installing mezzanine

2016-02-13 Thread Ken Bolton
Please provide the specifics of your situation, including the commands run before the `createdb`. On Thu, Feb 11, 2016 at 11:27 PM, wrote: > python manage.py createdb > Traceback (most recent call last): > File "manage.py", line 14, in >

Re: [mezzanine-users] Integrating Mezzanine to an existing Django Project

2016-02-12 Thread Ken Bolton
Hi Peter, Try going in the other direction. Create a new Mezzanine project, merge your project into it, then migrate your data. ken On Thu, Feb 11, 2016 at 11:01 PM, Petar Petrov wrote: > By looking at the docs (FAQ more specifically), it seems like it could be > added as

Re: [mezzanine-users] Paginated blog posts with unique content in first page

2016-01-14 Thread Ken Bolton
Hi Robert, Spitballing here, how about using JavaScript to read the path and parse the 'page' query parameter, e.g. `?page=3`, to assess whether or not to show the banner? hth! -ken On Thu, Jan 14, 2016 at 12:38 AM, Robert Wolf wrote: > I'm looking for a way to have it

Re: [mezzanine-users] Overriding ADMIN_MENU_ORDER

2015-12-29 Thread Ken Bolton
Hi Joel, Assuming everything has been set up correctly, your projects' settings.py should trump all except local_settings.py. Do you get the same results in a new virtualenv with a clean installation of Mezzanine? -ken On Tue, Dec 29, 2015 at 11:34 AM, Joel Gwynn wrote: >

Re: [mezzanine-users] Re: URL Parameters for a Page

2015-12-15 Thread Ken Bolton
Hi Joel, What does your page processor code look like? My instinct is that a calendar is not a page and should probably not use the page view. Please accept every attempt at communication on this forum in good faith and, in the future, hold the sarcasm. ken On Tue, Dec 15, 2015 at 8:43 AM,

Re: [mezzanine-users] Re: Python 3 and fabric

2015-12-04 Thread Ken Bolton
Hi Sarah, Please do write it up and share! -ken On Fri, Dec 4, 2015 at 1:42 AM, Sarah Hein wrote: > I also realized that Fabric doesn't work with Python 3.X and have been > working on building a server the hard way the last few days. It actually > hasn't been to bad -

Re: [mezzanine-users] BACKUP Server For Mezzanine Site.

2015-11-23 Thread Ken Bolton
What have you tried? Mezzanine ships with backup and restore functions for the database in the Fabric script. Your VCS-of-choice handles your static files. Uploaded media content is not a "one size fits all" problem, and is left as an exercise for the developer. I modify the fabfile.py file that

Re: [mezzanine-users] Access FileField in a Page model

2015-11-20 Thread Ken Bolton
Hi, I think you want to read http://mezzanine.jupo.org/docs/frequently-asked-questions.html#why-isn-t-the-homepage-a-page-object-i-can-edit-via-the-admin . The first thing is to install Django Debug Toolbar. It will help you see the context being sent to the templates. You will be able to

Re: [mezzanine-users] Re: page_link via code

2015-11-10 Thread Ken Bolton
Hi Lorenzo, To programmatically generate a Link, the following should, more or less, work. >>> from mezzanine.pages.models import Link >>> menus = [] >>> new_link = Link.objects.get_or_create(title='New Link', slug=' http://www.example.com', in_menus=list(menus)) I feel like I am not getting

Re: [mezzanine-users] page_link via code

2015-11-09 Thread Ken Bolton
Hi Lorenzo, Can you please be a little clearer about your goals? The temptation to direct you to the HTML anchor tag is strong. -ken On Mon, Nov 9, 2015 at 10:12 AM, Lorenzo D'Agostino < lorenzodagosti...@gmail.com> wrote: > Does anybody know how to create a page_link via code? > > -- > You

Re: [mezzanine-users] Does Cartridge have a module for GIS store locator?

2015-11-09 Thread Ken Bolton
Hi Ed, While Mezzanine is only an application written on top of the Django framework, it has no built-in capability for GIS. That said, the Python ecosystem – of which Mezzanine is just a very small part – has modules you can use to build a store locator. The place to start is the excellent

Re: [mezzanine-users] How related_posts are generated for Blog model ?

2015-10-31 Thread Ken Bolton
Hi Sonu, If you click on the collapsed "Other Posts" in the admin interface for any BlogPost, the ManyToManyField for blog_blogpost_related_posts will be made visible. An example can currently be seen on the demo site at http://mezzanine.jupo.org/en/admin/blog/blogpost/4125/. hth! -ken On

Re: [mezzanine-users] Load data from an API to Cartridge

2015-10-25 Thread Ken Bolton
Hi Juan Carlos, I use the excellent Requests librar y by Kenneth Reitz to crawl websites and/or access web APIs. -ken On Sun, Oct 25, 2015 at 2:10 AM, Juan Carlos Espinoza Zurita < carloses...@gmail.com> wrote: > > Hi > > First i want to say thanks

Re: [mezzanine-users] Where is the "admin-title" in the HTML templates?

2015-10-13 Thread Ken Bolton
Hi Zak, The file you seek is indeed in grappelli-safe: https://github.com/stephenmcd/grappelli-safe/blob/master/grappelli_safe/templates/admin/includes_grappelli/header.html#L6 . -ken On Tue, Oct 13, 2015 at 12:38 AM, Zak CythonUser wrote: > Hello All, > > When the templates

  1   2   3   >