Re: [mezzanine-users] Getting posts for specific category

2015-05-25 Thread Eduardo Rivas

Nice :)

--
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] Problem migrating from sqlite3 to postgresql

2015-05-26 Thread Eduardo Rivas
I've used JSON dumps in the past with mixed results. Generally, a 
single, monolithic dump of all the data almost never works on the first 
try. Some general tips:


- Make sure you run createdb again when you have changed your settings 
to use Postgres. The JSON dump only populates the DB, but it won't 
create the tables.


- Always pass the -n flag when dumping data.

- Try to load your data back in chunks instead of in a single dump. For 
example, you can dump only the pages, forms and galleries aps, then the 
blog, etc.


- However, if you break up your dumps, make sure you do so in the same 
order as INSTALLED_APPS. That means you should dump and load auth and 
contenttypes pretty early, before most of Mezzanine's apps.


- Finally, let me just say I decided to stop using sqlite at all 
precisely for this reason. I just create the postgres DB from the 
beginning. It takes just 3 commands:


|sudo su - postgres
createuser -DRPS db_user| (new user can't create DB, roles and is not 
superuser; prompt for password)|

createdb db_name -O db_user| (new DB with the previous user as owner)

Hope that helps :)

--
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: Restrain the rich text

2015-08-20 Thread Eduardo Rivas
I don't think you need to fork TinyMCE to achieve this. The editor is 
highly customizable and you can make it look and work as you desire via 
the configuration file (already explained by another person).


Here's the configuration option for controlling the available styles. 
Add/remove to your liking: 
http://www.tinymce.com/wiki.php/Configuration:style_formats.


--
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: ID Cards library

2015-07-28 Thread Eduardo Rivas
Here's how I'd do it:

Create a Service model, where you store the service type, ID, etc. Then
create a MapPage and a ServicePage which could be related to the Service
model via many to many relations.

Your users can then log into the admin, create and manage services, and
easily add them to MapPages or ServicePages via the many to many widget.

In templates, you can easily access the the services provided with the
custom page instances, and display them as you like.

In general, I would advice to stick with the default admin interfaces (as
I've explained) instead of creating your own. Your future self will be
grateful!

-- 
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] zip_import FROM pages_page LEFT OUTER JOIN

2015-07-29 Thread Eduardo Rivas
Not sure if it's even related, but what happens if you comment out the
__unicode__ method in your custom page?

-- 
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: zip_import FROM pages_page LEFT OUTER JOIN

2015-07-29 Thread Eduardo Rivas
If that's the case, it sounds like a naming problem. What was the name of
the old project and the app inside it (folder names)?

-- 
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] Partitioned media library with a common folder

2015-08-08 Thread Eduardo Rivas
Hi everybody.

A project I'm working on has multi-tenancy enabled and a per-site media 
library. However, the client would like to have some media files be 
available to all sites. Is there a way to implement this? My two options 
(which I will try out in the coming week):

- Disable MEDIA_LIBRARY_PER_SITE (not cool)
- Create a symlink to a common folder in each site's media folder (will it 
work?)

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.


Re: [mezzanine-users] Where do custom templates go in 4.0?

2015-08-10 Thread Eduardo Rivas

You have two options:

- Use the the top-level templates directory defined in settings.py 
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/project_name/settings.py#L199. 
You can also change this to whatever path you like.


- You can create a theme app and put templates there. They will be 
picked up by Django simply because it's a regular application added to 
INSTALLED_APPS.


As far a I know, nothing has changed in this regard from Mezzanine 3 to 4.

--
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: Newbie question: Trying to deploy mezzanine website. Gunicorn fails

2015-07-14 Thread Eduardo Rivas

What's your stack (OS, python version, Mezzanine version, etc)?
Could you share your FABRIC settings?

If you're using Mezzanine 4, there's a logs folder in your home 
directory. That's a good place to look.


--
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] Easy way to grab data from an installed app in the templates

2015-07-15 Thread Eduardo Rivas
That should work without issue, though I generally like to bundle all 
the as tags on top of the block.


{% block main %}
{% get_sitewide_content as sitewide %}
h1my text/h1
{{ sitewide.foobar }}
{% endblock %}

Also, be careful with the blocktrans tag, you need to explicitly bind 
any variable you want to use inside them. You should also avoid 
including HTML tags inside them to prevent poluting the gettext catalog 
with markup 
https://docs.djangoproject.com/en/1.7/topics/i18n/translation/#blocktrans-template-tag.


--
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] Easy way to grab data from an installed app in the templates

2015-07-15 Thread Eduardo Rivas
As an alternative, you can also use SingletonAdmin and a template tag to 
make model data available anywhere in the site. Josh wrote about it and 
I follow this pattern all the time: 
http://bitofpixels.com/blog/on-singletonadmins-and-sitewidecontent-editing-sitewide-content-in-mezzanines-admin/.


--
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] Upgrade path for Mezzanine 4.0

2015-07-16 Thread Eduardo Rivas
Yep, Django 1.6 is out of the picture. Mezzanine only supports the two 
latest Django releases (1.7 and 1.8).


--
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] Easy way to grab data from an installed app in the templates

2015-07-16 Thread Eduardo Rivas
Yeah, a server restart is required when you create new template tags for 
Django to pick them up.


As for your template code, try putting {% test_text Flowers are nice 
as my_text %} inside the block you want to use the variable (in your 
case: {% block main %}).


--
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] Mezzanine (4.0) permissions - moderation

2015-07-16 Thread Eduardo Rivas
If you only want to override the add/change/delete permissions for the 
BlogPost admin, you can do so by registering your own BlogPostAdmin 
class instead of Mezzanine's. In the class methods you'll be able to 
make all checks to grant permissions using custom logic. You'll also 
need to modify the queryset used by the BlogPost admin. The methods I 
have in mind are has_add_permission(), has_change_permission(), 
has_delete_permission() and get_queryset(). All documented here: 
https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.has_add_permission.


Just keep in mind that the BlogPost admin inherits from several classes 
(and make sure you're familiar with the logic defined in OwnableAdmin, 
it might even come in handy).


All this is off the top of my head, so there might be hidden gotchas I 
haven't considered.


--
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: Migrations for EXTRA_MODEL_FIELDS in Mezzanine 4

2015-07-14 Thread Eduardo Rivas
Perhaps something like this: 
https://docs.djangoproject.com/en/1.8/ref/settings/#migration-modules?

Not sure how that's gonna work when Mezzanine itself ships some new 
migrations in the future. Maybe one has to toggle MIGRATION_MODULES 
manually to apply the correct migrations.

-- 
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] Mezzanine Webfaction updated to work with Mezzanine 4

2015-10-28 Thread Eduardo Rivas
Hey everyone.

I recently updated mezzanine-webf to work with Mezzanine 4. This project 
has the goal of making the easy-to-use fabfile that ships with Mezzanine 
compatible with a Webfaction shared hosting account. I'm glad to see the 
previous version helped some folks with Mezzanine 3, hopefully this will 
help too with Mezzanine 4.

https://github.com/jerivas/mezzanine-webf

-- 
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] page_link via code

2015-11-09 Thread Eduardo Rivas
I think he means the Link page type. In that case, it's just like 
creating any Django model instance (import the class, create an 
instance, modify attributes to your liking, call the save() method).


Another option is to create a fixture or data migration.

Mezzanine does this when calling createdb. In particular, I've 
highlighted the part where both fixtures and class instantiation are 
used (for creating pages and galleries, respectively). 
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/core/management/commands/createdb.py#L130-L136


--
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] mezzanine_polls

2015-11-15 Thread Eduardo Rivas
I haven't used Mezzanine Polls, but it sounds like you haven't added their
urlpatterns to your urls.py. Try that.

2015-11-15 17:07 GMT-06:00 Cornelio Royer Climent <
cornelioroyerclim...@gmail.com>:

>
> I installed mezzanine_polls
>
> I did the instrucctions
>
> Install the app by using pip :
>
> $ pip install mezzanine_polls
>
> Add mezzanine_polls to INSTALLED_APPS and synchronize/migrate the
> database.
>
> Go to the admin site and create new polls in the Pages section
>
>
> but send the following error
>
>
> NoReverseMatch at /polls/
>
> Reverse for '' with arguments '()' and keyword arguments '{}' not found. 0 
> pattern(s) tried: []
>
> Request Method: GET Request URL: http://127.0.0.1:8000/polls/ Django
> Version: 1.8.6
>
> --
> 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.
>

-- 
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: Translation of Mezzanine's documentation to Spanish (Traduccion de la documentación de Mezzanine al español)

2015-11-01 Thread Eduardo Rivas
Hi! You can contribute the translated docs as a regular pull request. I
started working on this very same project back in the Mezzanine 3 days but
left it alone because I was not making much progress (I guess it's not up
to date now). Maybe the contents of my branch will help:
https://github.com/jerivas/mezzanine/commits/docs-es.

2015-10-31 20:01 GMT-06:00 Vinchenso Leon :

> Hola muchas gracias por eld documento en español. Saludo
>
> On Friday, June 15, 2012 at 1:54:10 PM UTC-5, Perseo wrote:
>>
>> ===
>> English
>> ===
>>
>> Hi all, I present myself as Perseo, I speak only Spanish and I first
>> learned of this extraordinary CMS so I've been using relatively bit
>> Mezzanine. Not know much about Django, but Python is not foreign to
>> me. I have some experience in other programming languages, most
>> however, no in web development.
>>
>> I'd like to give something back and work with your project as follows:
>> I started with the translation of documentation Mezzanine and I wonder
>> if there is any way to be publishing in progress on the official
>> website or is there another way to do it.
>>
>> I say goodbye But not before thank you for the great work being done
>> in your project and congratulate them for it.
>>
>> Regards
>>
>> ===
>> Español
>> ===
>>
>> Hola a todos, me presento como Perseo, hablo únicamente español y
>> recién me enteré de este extraordinario CMS por lo que llevo
>> relativamente poco utilizando Mezzanine. No sé mucho de Django, pero
>> no me es ajeno Python. Tengo un poco de experiencia en otros lenguajes
>> de programación, más sin embargo, ninguna en el desarrollo web.
>>
>> Me gustaría devolverles algo y colaborar con su proyecto de la
>> siguiente manera: he comenzado con la traducción de la documentación
>> de Mezzanine y quisiera saber si existe alguna forma para ir
>> publicando los avances en dentro de la página oficial o existe otra
>> forma para hacerlo.
>>
>> Me despido no sin antes agradecerles por la gran labor que están
>> realizando en su proyecto y felicitarlos por el mismo.
>>
>> Saludos
>>
> --
> 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.
>

-- 
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: Running migrations I get message that says "No changes detected", "No migrations to apply"

2015-11-03 Thread Eduardo Rivas
Have you created an application folder for your models and migrations? 
Have you added said application to INSTALLED_APPS in settings.py?


--
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] Extra CSS for Pages

2015-10-13 Thread Eduardo Rivas
I tend to follow a different approach with my client projects. With
frameworks like Bootstrap you get a UI kit you can customize and provide
that to your users. For example, when the content editors want to modify
the style of a button, they can add a modifier class to it. The same goes
for pretty much any other element. This has the added benefit of being a
composable approach, allowing to stack multiple modifier clases that are
available through out the site, not only specific pages.

It also feels weird to store style information in the database. At least in
my experience, it is not the content author's responsibility to tweak
styling. It is the designer and the developer who have to provide the tools
necessary to give the content writers enough flexibility but staying within
the design spec. Hence the approach I explained above (using modifier
classes).

Now, that's just an opinion, not really an objective argument. If a custom
CSS field gains traction, I would ask it to be disabled/enabled via a
setting, just like the blog post featured image. Definitely not a level of
control I want to give to the users.

-- 
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] Cannot edit content on Rich Text Page

2015-10-15 Thread Eduardo Rivas
Were you running a Mezzanine 3 site before? I have experienced a problem 
where the old tinymce files are cached by the browser. A cache reload 
(Ctrl + F5) does the trick.


--
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: Changing Blog List Images Sizes

2015-10-16 Thread Eduardo Rivas

You're missing a closing curly brace in the  tag.

--
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: Fab all - ERROR: role "chiseller" already exists

2015-10-11 Thread Eduardo Rivas
The default fabfile is not intended for multi-server setups.

2015-10-11 14:23 GMT-06:00 Nkansah Rexford :

> Error; role "chiseller" already exists simply means there's a user on your
> VPS that's by name "chiseller"
>
> Have you tried a different user to see?
>
> --
> 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.
>

-- 
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?

2015-10-12 Thread Eduardo Rivas
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.


Re: [mezzanine-users] Changing admin inline to "Orderable"

2015-10-13 Thread Eduardo Rivas
That's a great idea too. If you don't have a huge number of items, you 
can just enable direct access to the _order field in the admin, and 
manually enter the order for the existing items, then switch back to 
drag and drop, and it should work.


--
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] Forcing Page Link to open in new window

2015-08-27 Thread Eduardo Rivas
I think the two approaches described here are the best options: Add 
target=_blank via Javascript or inject a field into the Link model to 
toggle this functionality.


Another option would be to check in the menu template if the target url 
starts with http or https and add the target attribute based on that.


I don't think there is enough interest to add this into Mezzanine 
itself. What's the community's opinion on that?


--
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] Partitioned media library with a common folder

2015-09-01 Thread Eduardo Rivas

Yep, the symlink works great in production too.

--
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] User cannot paste google charts into cms pages even when set to 'no filtering'

2015-09-10 Thread Eduardo Rivas
Have you peeked into the TinyMCE docs? I'm sure there must be something 
you can do to change this behavior in tinymce_setup.js.


--
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: Cannot resolve bases ??

2015-09-13 Thread Eduardo Rivas
I think Django wouldn't know how to create your application's tables
without the migration files. Migrations are required with every concrete
model in Django 1.7 and up.

-- 
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] Using Mezzanine admin drag and drop ordering in another app

2015-09-17 Thread Eduardo Rivas
There's a Django application called Django admin sortables. It allows you
to drag and drop any model you want. The documentation is comprehensive and
easy to integrate with Mezzanine.

-- 
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] howto lock django version to 1.7 on ubuntu?

2015-09-30 Thread Eduardo Rivas
You only need to tell Apache to use the virtualenv's Python instead of 
the system's Python.


"/usr/bin/python" becomes "/path/to/your-virtualenv/bin/python".

--
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] Disable translations fallback

2015-09-30 Thread Eduardo Rivas
Well, it seems like you are looking for sites with different structures. 
In a 1-to-1 site, you don't want to have a page translated into one 
language but not into the other. For independent page trees, independent 
sites are better.


There's also the problem of knowing what a "missing translation" is, 
since all translation fields are optional. Should we check for a 
translated title, translated content, translated slug? What about custom 
pages defined by the developer?


In the meantime, you could implement what you want as a page processor 
or a middleware. Those would be fairly easy to distribute and test 
afterwards.


--
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] howto lock django version to 1.7 on ubuntu?

2015-09-30 Thread Eduardo Rivas
Best way is to use a virtualenv and pin your Django version in 
requirements.txt.


It's highly recommend you develop all python projects in separate 
virtual environments. This is a great guide, and also explains how to 
pin (freeze) requirements: 
http://docs.python-guide.org/en/latest/dev/virtualenvs/


If you still want to go with the system Python, you can force the 
version of Django like this:


sudo pip install -U "django<1.8"

--
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] Deploying vennila mezzanine site on Digital Ocean

2015-12-03 Thread Eduardo Rivas
Since you're just testing things out, could you rebuild the droplet with 
Ubuntu 14.04 and try again? My guess is that something fails because of 
Debian, but I could be wrong.


--
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] Email from forms...

2015-12-04 Thread Eduardo Rivas
Can you try sending an email from the Django shell? Mezzanine is most 
likely swallowing the mail error to avoid raising a 500.


https://docs.djangoproject.com/en/1.8/topics/email/#send-mail

Just fill the three first params. It'll try to send the email, if 
everything goes well, it'll return nothing. Else, you should get a 
traceback.


--
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: Deploying vennila mezzanine site on Digital Ocean

2015-12-03 Thread Eduardo Rivas
If thats the case, maybe you only need to restart the supervisor 
service, instead of the whole server.


--
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: URL Parameters for a Page

2015-12-15 Thread Eduardo Rivas
This section of the docs expands a little on my previous message: 
http://mezzanine.jupo.org/docs/content-architecture.html#integrating-third-party-apps-with-pages


--
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: URL Parameters for a Page

2015-12-15 Thread Eduardo Rivas

I think the Blog app would also be a good place to look.

Basically, what you want to do is outside the scope of Pages and page 
processors. You'd be better off implementing the calendar as a regular 
Django app (you can still use Mezzanine's Displayable class, though) 
with it's own url patterns, models and views.


You can then create a Page instance with the same slug as the url where 
you have mounted your app (as Mezzanine does with the Blog) to have it 
show up in the navigation menu. The Page instance will also be available 
to all elements mounted under the same url prefix in your app.


https://github.com/stephenmcd/mezzanine/tree/master/mezzanine/blog

--
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] Why slug regex use by Mezzanine is .* ?

2015-12-12 Thread Eduardo Rivas
Could you elaborate? The only capture group in your example is the 
username. By inserting a slash, no username would match and the standard 
404 page will be displayed.


--
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: Frontend CMS

2015-12-12 Thread Eduardo Rivas
You would basically need to create custom urls, views, and templates to
edit your site content. Django provides you with model forms, inlines and
other tools to do so. You also have generic views to create, edit, and
delete model instances.

You will find all that in the Django docs and other Django related
resources, nothing about this is really Mezzanine specific.

-- 
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] Limited support of Bootstrap 3 styles in Mezzanine/Cartridge ?

2015-12-29 Thread Eduardo Rivas
We do this because Django won't let you apply classes directly to input
elements without going rather deep into the widget rendering logic. I think
the rationale is that swapping Bootstrap out should be a matter of changing
CSS only.

I haven't found this to be a problem when customizing the looks of a
Bootstrap site, you simply need to change the CSS selectors of your
customizations.

If you want to apply the CSS as suggested by the Bootstrap docs, there are
several Django packages that provide template tags to render form inputs
the Bootstrap way.

-- 
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] Slugs with or without accents?

2016-01-06 Thread Eduardo Rivas
You can choose your own function for generating slugs by customizing 
settings:SLUGIFY. Docs: 
http://mezzanine.jupo.org/docs/configuration.html#slugify


For what it's worth, sites as big as Wikipedia use accented characters 
(and even parentheses) in their slugs. There's nothing special about 
that, they just need to be encoded properly (which Django and Mezzanine 
can do). https://pt.wikipedia.org/wiki/Wikip%C3%A9dia:P%C3%A1gina_principal


--
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: When mezzanine will be updated in pip3?

2016-01-09 Thread Eduardo Rivas
I would say just use your website as normal and as thoroughly as you can
and report back if you find anything.

-- 
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] Inlines javascript does not seem to work

2015-12-21 Thread Eduardo Rivas
Sorry, to be clear, the BookInline class should subclass 
TabularDynamicInlineAdmin instead of admin.TabularInline.


--
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] Inlines javascript does not seem to work

2015-12-21 Thread Eduardo Rivas
Try importing and using mezzanine.core.admin.TabularDynamicInlineAdmin 
instead of Django's default inlines.


--
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] Problems adding a Decimal Field to EXTRA_MODEL_FILES

2015-12-23 Thread Eduardo Rivas
You're passing the max digits and decimal places parameters as strings.
Make them integers.

-- 
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] Displaying excerpt content on blog homepage

2015-11-26 Thread Eduardo Rivas
The blog post list template displays blurbs using {{ 
blog_post.description_from_content }}, which will get you the first or 
so elements of the post. The full content is available as {{ 
blog_post.content }}.


Don't forget to add the appropriate filters!

--
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] Content revision in Mezzanine

2015-11-30 Thread Eduardo Rivas
I believe Django Reversion does what you want, but I'm not sure how well it
plays with Mezzanine.

-- 
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] Content revision in Mezzanine

2015-12-01 Thread Eduardo Rivas

Sorry, nothing like that out of the box.

Django Reversion has documentation you can check to install and use the 
app. https://django-reversion.readthedocs.org/en/latest/


--
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] Overriding change_list.html for custom app

2015-11-19 Thread Eduardo Rivas

That is the correct template.

You need to {% extends "admin/change_list.html" %} and override the 
complete object-tools block (assuming you will provide the correct 
markup for the list and the default buttons). Alternatively, you can 
override the object-tools-items block and simply add your own buttons as 
 elements after {{ block.super }}.


https://github.com/stephenmcd/grappelli-safe/blob/master/grappelli_safe/templates/admin/change_list.html#L69-L82

--
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] Overriding change_list.html for custom app

2015-11-19 Thread Eduardo Rivas
Also, you were looking at the official grappelli repo. Mezzanine uses a 
custom fork (grappelli-safe), which is the one I linked to in my 
previous message.


--
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] Field Injection Will Not Migrate

2015-11-19 Thread Eduardo Rivas
It looks like you have a migration file inside Mezzanine's source code. 
If you see the name of the migration that raises the exception, it's 
blog.0007_auto_20151119 (meaning it was created on November 19, 2015, by 
your injected field I presume). Remove that file and the associated .pyc 
file and Mezzanine should go back to normal.


Now, regarding field injection in Mezzanine 4, it's not as simple as it 
was in the Mezzanine 3 days. There are essentially two ways of doing it: 
One is explained by the official docs 
, 
and the other is a method developed by Josh Cartmell 
 (look for the 
field injection section in that article). I use the first one, as it is 
less brittle and somewhat supported by Django itself. It is not as 
elegant though, and will require you to manually maintain the migration 
history of all models with injected fields and any model that inherits 
from them.


Both methods have the same goal: to make sure that the migrations for 
your injected fields exist in your project, not in Mezzanine's source. 
Doing otherwise is a nightmare for collaborating with other devs and 
deploying.


--
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] Novice Python question about Cartridge model: Order

2016-06-09 Thread Eduardo Rivas
The PyCharm IDE has a visual debugger. I've never used it myself but it 
looks quite powerful and other people recommend it.


https://www.jetbrains.com/pycharm/features/tools.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.


Re: [mezzanine-users] Re: Error deploying Mezzanine App on Webfaction

2016-05-28 Thread Eduardo Rivas
Looks just like the default fabfile by mezzanine-webf. Seems like 
Webfaction changed their app name again to plain "git". I'll take that 
into account.


You shouldn't be running "fab install" every time, it's a one time step 
(and that's explained in the README). You can do "fab remove" and "fab 
deploy" as many times as you want, and it should give you a clean state 
every time. Sometimes Webfaction's API misbehaves and you have to 
manually run some of the steps via the control panel, but it doesn't 
seem to be the case here.


Can you do "git log" in ~/webapps/git_app/repos/akia and make sure your 
commits are up there?


Also, can you share your FABRIC settings dict? Make sure you take out 
your account information and server IP address.


--
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] Error deploying Mezzanine App on Webfaction

2016-05-26 Thread Eduardo Rivas
Is your project mezzanine 3 or 4? Are you using the right fabfile for your
version? Have your project files been transferred to the server?

-- 
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: Error deploying Mezzanine App on Webfaction

2016-05-27 Thread Eduardo Rivas
That's weird. "fab deploy" should push your repo to the server and check 
out your working directory into the project folder. What to you see in 
~/webapps/git_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.


Re: [mezzanine-users] Get BlogPost entries from other sites?

2016-06-20 Thread Eduardo Rivas
The CurrentSiteManager is responsible for this. The docs explain how it 
determines which Site entry to use: 
http://mezzanine.jupo.org/docs/packages.html#mezzanine.core.managers.CurrentSiteManager


--
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] Images in .pdf Invoice

2016-06-24 Thread Eduardo Rivas
Well, Cartridge uses Pisa 
 
to create the PDFs. Apparently you can pass a "link_callback" arg to 
CreatePDF(). This callback should handle the conversion of the relative 
path of the image in the HTML to the complete filesystem path to be 
embedded in the document.


The xhtml2pdf docs provide a full example 
. 
You'll need to override the invoice view to pass the callback to 
CreatePDF().


--
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] PG Database backup/foreign-key constraints

2016-06-24 Thread Eduardo Rivas
Weird, I've never had any trouble dumping/restoring a Mezzanine DB with 
Postgres.


These are the commands I use: 
https://gist.github.com/jerivas/a2f321bb8fa4d305a481#postgres-exportimport-without-the-postgres-user


At any rate, you may need to wipe the target database before a restore, 
but that should be it.


--
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] Mezzanine 4.1 and Cartridge 0.11 released

2016-01-18 Thread Eduardo Rivas
I have attempted an upgrade from Mezzanine 4.0 and Django 1.8 to Mezzanine 
4.1 and Django 1.9. There are some stumbling blocks, so I wanted to share 
my experience:

- The easiest way to upgrade is pip install -U mezzanine. Don't forget to 
pip freeze afterwards!
- Modify settings.py. TEMPLATE_DIRS and TEMPLATE_CONTEXT_PROCESSORS have 
been absorbed by TEMPLATES
- Modify urls.py. Now patterns is a plain list, so individual entries need 
to be calls to url()
- Also on urls.py, i18n_patterns is deprecated
- Aand, all view functions need to be imported, a dotted path won't cut 
it
- Make sure you update your other dependencies, most packages have also 
released new versions for Django 1.9 (django-debug-toolbar, for example)

Pro tip: I usually just copy Mezzanine's default settings.py and urls.py 
into my project and use a diffing tool to catch the differences and restore 
any customizations.

Sadly, I can't get runserver to work when I enable EXTRA_MODEL_FIELDS. I'm 
injecting a single field and managing the migrations via MIGRATION_MODULES 
(not sure if that's relevant). I'll open an issue to further debug this 
one. It seems to go away if I downgrade to Django 1.8.8.

-- 
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] South Migration Issue

2016-01-28 Thread Eduardo Rivas
I don't think that's a valid Django migration. You can't simply edit 
South migrations to make them Django compatible. Please follow the steps 
outlined in the link I provided in my previous message.


--
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] Problem deploying Mezzanine on DigitalOcean

2016-01-27 Thread Eduardo Rivas
Never mind, I think the problem is that you're not using migrations with
your onepage app. I believe that any app that depends on another app
that uses migrations (like mezzanine.pages) must also use migrations itself.

-- 
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] Flash removed from media library

2016-02-02 Thread Eduardo Rivas

Nice!

Just gave it a try and it seems to be working fine. I really like that 
the file picker dialog shows previews of images now.


I've noticed that selecting with Shift and Control is not working. It 
looks like you have to click the Browse button every time you want to 
add a file. Can we get the keyboard assisted selection back?


That's on Firefox on Ubuntu.

--
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] Anyone got a quickfix/hack for the upload button in filebrowser

2016-02-01 Thread Eduardo Rivas
Nothing that I've personally tried, but it might be a good idea to look 
into how the upstream Filebrowser handles the uploads, since they are 
now Flash-free.


Current upload template: 
https://github.com/sehmaschine/django-filebrowser/blob/master/filebrowser/templates/filebrowser/upload.html


Issue tracking the transition away from Flash: 
https://github.com/sehmaschine/django-filebrowser/issues/22


--
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] How to style the Contact page?

2016-01-27 Thread Eduardo Rivas
I recommend writing new CSS rules or tweaking the selectors instead of
trying to change the markup of the form. If I remember correctly, form
fields are wrapped in a div with a particular class, which should let
you write something like:

.wrapper-class > input {width: 100%}

-- 
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] Problem deploying Mezzanine on DigitalOcean

2016-01-28 Thread Eduardo Rivas
Glad you could move forward. Have you created the migrations for the
onepage app? I don't think you'll be able to do much without that.

-- 
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] South Migration Issue

2016-01-28 Thread Eduardo Rivas
Django implemented built-in migrations with the release of 1.7, and South
became obsolete. You will need to create standard migrations for the
application to be compatible with Django 1.7+. The Django docs explain this
with detail.

https://docs.djangoproject.com/en/1.8/topics/migrations/#upgrading-from-south

-- 
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] admin site deployed

2016-02-22 Thread Eduardo Rivas
Are you getting a 500 error when trying to log in? Make sure you're 
running memcache if you've specified it in the production 
local_settings.py. Sessions can't be created without it.


Also, review the site logs and set up email reporting to get a traceback.

--
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: Rich text source editor is blank

2016-02-29 Thread Eduardo Rivas
Do you get any Javascript errors or 404's logged in the browser's 
console when refreshing?


--
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] Domains without "www" not working after deploy.

2016-01-20 Thread Eduardo Rivas
Yeah, the fabfile will do that for you if you add the www and non www
versions of the domain to DOMAINS in the FABRIC dictionary, and then fab
deploy again.

Anyways, glad you 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.


Re: [mezzanine-users] Domains without "www" not working after deploy.

2016-01-20 Thread Eduardo Rivas
Your production database and static files are not affected by fab deploy.
It simply uploads your project's code and configuration files for nginx and
gunicorn (broadly speaking).

-- 
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] collecttemplates doesn't work

2016-01-23 Thread Eduardo Rivas
This issue was discovered shortly after the release of Mezzanine 4.1. It
has been fixed in the Github repository. You can install the master branch,
manually apply the patch, or wait for the next bugfix release. In the
meantime you can copy the templates from Mezzanine's files.

-- 
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: EXTRA_MODELS_FIELDS broken with Django 1.8 ?

2016-01-25 Thread Eduardo Rivas
That's a post about upgrading to Mezzanine 4.0. The issue described in the
original message is new and started with the recent release of Mezzanine
4.1. You can follow the progress here:
https://github.com/stephenmcd/mezzanine/issues/1513

-- 
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] NameError

2016-02-21 Thread Eduardo Rivas
Looks like mezzanine (or a module inside of it) is not in scope. The trace
back should tell you where.

Make sure you're following the commented instructions correctly. You might
need to add some imports to urls.py.

-- 
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: NameError

2016-02-21 Thread Eduardo Rivas
Yeah, but you haven't imported the top level mezzanine module. You can 
see that it is being referenced by the urlpattern in line 56.


Add "import mezzanine" to the top of the file. I recommend you read a 
bit on Python imports, looks you haven't got the hang of them just yet.


--
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: How to translate slug with modeltranslation

2016-02-02 Thread Eduardo Rivas
If I remember correctly, when Modeltranslation support was added it was 
decided to support prefixed slugs (using the language code) instead of 
translatable slugs. For that reason, the slug field is not marked for 
transalation, and the views and urls don't handle that use case.


I think you can still create your custom Modeltranslation configuration 
to adjust it to your liking, but I don't know exactly 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.


Re: [mezzanine-users] Re: Link List / displayable_links not working on deployed admin

2016-03-12 Thread Eduardo Rivas
Are you deploying with git, hg, or rsync? If you have committed removals,
they should be applied on production if using one of the VCS methods.

-- 
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: Unable to deploy Mezzanine on Digital ocean.

2016-03-28 Thread Eduardo Rivas
Thanks Adam. I see you went with Digital Ocean's tutorials. Did you try 
the one in Mezzanine's docs? It should work with a completely blank 
Ubuntu VPS.


http://mezzanine.jupo.org/docs/deployment.html#tutorial

The fabfile should handle not only installing the Mezzanine project, but 
all system-level dependencies. The Postgres DB, gunicorn, ngnix, 
memcache, and all other pieces should have been installed automatically.


Let me know your thoughts on that.

--
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] Can't get mezzanine to render template with real time database entries

2016-03-28 Thread Eduardo Rivas
Where's the menssagens variable coming from? A view? Page processor? 
Middleware? Does it correspond to model objects in your database, a 
setting, a list created 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] Re: Can't get mezzanine to render template with real time database entries

2016-03-28 Thread Eduardo Rivas
Alright, so urls.py is loaded when the server is started. It means that 
the extra_context variable stores the Menssagem objects that are 
published at that time. The value is not updated on every request, which 
means that the published objects are never re-fetched. This is why you 
only get the new objects after a server restart.


My advice is that you create a very thin view, either function or 
class-based, to make sure your logic is executed on every request, not 
only on server load. Another option is to create a page processor for 
"/", injecting the context you want. 
http://mezzanine.jupo.org/docs/content-architecture.html#page-processors.


Hope that helps :)

--
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: RichTextField in field injection

2016-04-06 Thread Eduardo Rivas
*Looks like you changed the name of the thread, and my reply went 
elsewhere. Here it is again:*

Well, the error message says you should check the SECRET_KEY setting. Have 
you done that? Most likely it was removed from your settings module when 
you upgraded to Mezzanine 4. I recommend you put it in local_settings.py to 
avoid having it under version control. 

Other than that, there's a know issue relating field injection of 
non-Django fields and Django 1.9: 
https://github.com/stephenmcd/mezzanine/issues/1513

-- 
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] RichText Field injection

2016-04-06 Thread Eduardo Rivas
Well, the error message says you should check the SECRET_KEY setting. 
Have you done that? Most likely it was removed from your settings module 
when you upgraded to Mezzanine 4. I recommend you put it in 
local_settings.py to avoid having it under version control.


Other than that, there's a know issue relating field injection of 
non-Django fields and Django 1.9: 
https://github.com/stephenmcd/mezzanine/issues/1513


--
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's core bootstrap.css is preferred over an app's version?

2016-04-11 Thread Eduardo Rivas
Is the app that defines your custom version of Bootstrap listed  before 
"mezzanine.core" in INSTALLED_APPS? In general I include all frontend 
customizations in a "theme" app and insert it just before "mezzanine.core" 
in the list of apps to make sure it always takes precedence.

-- 
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: "Thumbnails" showing up at full-size on production server

2016-04-11 Thread Eduardo Rivas

Hi Marcio.

There's a lot that can go wrong when generating a thumbnail for a 
particular image (missing dependencies, filesystem permission errors, IO 
errors, etc), and Mezzanine will just return the original image if that 
happens. I recommend you take a look at the code 
 
and all the exception handling that happens there and try to determine 
which one applies to your case.


You should also try to search in the mailing list and the issue tracker, 
because I remember other people experiencing similar trouble.


--
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] Exclude some fields from profile update form mezzanine

2016-04-11 Thread Eduardo Rivas

Hi David.

Are you familiar with Django forms in general? Mezzanine's default 
ProfileForm sets up a flag 
 
(self._signup) to indicate if the current form instance is handling a 
signup or a profile update. You can subclass this form, implement some 
logic to make the studentID conditionally editable in __init__() based 
on that flag, and register your new form via 
settings.ACCOUNTS_PROFILE_FORM_CLASS 
.


Haven't tried it but it looks perfectly viable in theory.

--
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] Figuring out how to implement user-defined product sort order in Cartridge

2016-04-07 Thread Eduardo Rivas
I've used Django admin sortable 
(https://github.com/iambrandontaylor/django-admin-sortable) to add 
drag-n-drop ordering to models that are not inlines. It adds a new 
button to the list display where you can do the sorting.


--
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: Unable to deploy Mezzanine on Digital ocean.

2016-03-25 Thread Eduardo Rivas

Hey Adam, Sri.

I helped build the current deployment mechanism, and am curious about 
your experience with it. Specifically, I would like to hear what would 
you like to see in a definitive tutorial, or what we can do to 
streamline the process.


Looking forward to your comments.

--
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] Is it possible to delete a blog category.

2016-03-08 Thread Eduardo Rivas
Try adding 'blog.BlogCategory' right next to 'blog.BlogPost' in 
settings.ADMIN_MENU_ORDER. Basically we want to tell Mezzanine to let 
you edit Blog Categories like a regular model in the admin. That should 
make the categories appear in the sidebar, and you can delete them as a 
regular model from there.


--
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] Are there any time specific settings while deploying Mezzanine? Blog Posts are not immediately visib

2016-03-07 Thread Eduardo Rivas
Yep, has happened to me. My solution is to make sure that the Mezzanine
installation is in the same time zone as (most of) your users. Make sure
you've set up an appropriate time zone in settings (I think it defaults to
UTC).

I believe Django displays a warning under the date/time widget if the user
is behind or ahead the server time, but I think grappelli-safe doesn't
account for that in it's templates.

-- 
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] Share content across domains

2016-03-07 Thread Eduardo Rivas
If you just want identical copies of the same site, sure. Just point the 
DNS to the same IP address for any number of domains, and make sure you 
add them to ALLOWED_HOSTS in settings.


If you have multiple Site entries in Mezzanine and want to pick and 
choose the content you want to share, I'm afraid that's not possible. 
Though you might be able to get away with it if you change the relation 
of Displayable to Site from and FK to M2M.


--
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: admin site deployed

2016-03-05 Thread Eduardo Rivas

Are you getting an exception or something?

--
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: Can't get mezzanine to render template with real time database entries

2016-03-28 Thread Eduardo Rivas

Glad you 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.


Re: [mezzanine-users] Placeholders as Menu Items.

2016-04-02 Thread Eduardo Rivas
Hi Peter.

I've done this before like so:

- Create a top level Link page (this would be Galleries) . Set the slug to
one of the child pages (for example, Gallery 1).

- Add as many child pages as you like.

You can stop there, and users will always be redirected to a child page,
the top level page is inaccesible. However, something I like to do is
modify the drop-down menu template to remove the  tag from all top level
pages that have children. This makes them completely inaccessible and they
work as pure containers.

-- 
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] Suggestion on how to make import and export of products using csv from admin panel?

2016-04-29 Thread Eduardo Rivas
Adding to the suggestions, I've used django-import-export in the past 
with satisfactory results. It does admin integration out of the box and 
let's you pick different import/export formats (Excel, csv, json, etc). 
I've only used it to export records; can't speak for the importing part. 
The docs will guide you all the way through.


https://django-import-export.readthedocs.io/en/latest/

--
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: Suggestion on how to make import and export of products using csv from admin panel?

2016-04-30 Thread Eduardo Rivas
What have you tried so far? What errors are you getting?

-- 
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] External payment processing Cartridge

2016-05-23 Thread Eduardo Rivas
I remember doing something similar. My general approach is to set the 
form's "action" attribute to the external site, so the actual POST 
request is handled by them. This request usually has just the amount and 
maybe a charge description and ID. Then the user is taken to their site, 
and inputs all the credit card data. The payment processor should let 
you define a "return" url, and the user should come back to your site 
via that. You have to create a view that will handle GET or POST params 
to complete the Order instance in Cartridge. After that you can redirect 
to the Order receipt or the Order history.


--
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] Custom templates within an app without using a custom Page

2016-05-18 Thread Eduardo Rivas
Just for the record, I just tried the method described in the docs, and it 
works. Here's my page structure:

   - Parent page (Rich Text page, slug = /parent/)
  - Child 1 (Form, slug = /parent/child-1/)
  - Child 2 (Rich Text page, slug = /parent/child-2/)
   
I have created custom templates for both children at 
/templates/pages/parent/form.html and 
/templates/pages/parent/richtextpage.html. Note the parent is referenced by 
slug in the template path, but the other two are referenced by type (form 
and rich text).

-- 
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] MetaData.description_from_content

2016-05-16 Thread Eduardo Rivas
Another solution: let the developer point to a callable via settings.

-- 
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: Suggestion on how to make import and export of products using csv from admin panel?

2016-05-02 Thread Eduardo Rivas
You will need to create separate imports for separate models. At that 
point it might be better to create your own admin view to import several 
models at a time, calling the individual model importer in the right order.


--
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.


<    1   2   3   4   >