Re: [mezzanine-users] When to use multiple projects, instances, sites?

2016-08-10 Thread Eduardo Rivas
No need to modify any Python files. The Sites framework is a standard Django feature and you only need to create new sites records in the admin. In the side menu go to Site > Sites and create as many records as you like. Don't forget to assign the correct domains for each. After that you'll be

Re: [mezzanine-users] How to handle database when upgrading to 4.0.1

2016-08-09 Thread Eduardo Rivas
The error you're seeing is due to a missing package. Just install psycopg2 from pip. After that everything should work since Mezzanine provides an uninterrupted migration history for the transition between South and Django migrations. My general process for this upgrades is: 1. Upgrade the

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

2016-08-08 Thread Eduardo Rivas
The backup task simply backs up the production DB in case a deployment goes wrong. It can then be restored in the restore task. They don't transfer your development DB and media files. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To

Re: [mezzanine-users] default variables like {{ page.description }} ?

2016-08-02 Thread Eduardo Rivas
The variables that are available in the templates are the fields in the Django model you're using. In this case you're using the Page model, which is defined in mezzanine.pages.models.Page (notice that the model is

Re: [mezzanine-users] wrong base.html

2016-08-01 Thread Eduardo Rivas
Django templates don't work with absolute paths (or if they do, it's not a good idea for portability). The templates you want to refer to in {% extends %} are relative to the templates/ directory in each installed app. Since all templates/ directories from all apps are combined into one

Re: [mezzanine-users] Change collapse-closed to collapse-open in BlogPost admin?

2016-07-30 Thread Eduardo Rivas
Hi there. The BlogPost admin itself takes the fieldsets from DisplayableAdmin and modifies it to insert some fields and some classes. The general steps are: 1. Deepcopy the fieldsets attribute you want to modify 2. Override the values / list items you want to change 3. Assign the modified

Re: [mezzanine-users] Re: HOST_THEMES not working with imported themes

2016-07-25 Thread Eduardo Rivas
Hmm, it looks like it should be working with your current settings. When you log into the the admin, what domain is shown in the top-right dropdown? The theme should match the domain displayed there. -- You received this message because you are subscribed to the Google Groups "Mezzanine

Re: [mezzanine-users] When to use multiple projects, instances, sites?

2016-07-24 Thread Eduardo Rivas
Hey there. If you want to use the same codebase for multiple sites and domains, option 3 is your best bet. You can even have different frontend themes for each site, but all your installed apps will be the same. Each site will have its own Admin as long as all your models inherit from

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

2016-07-22 Thread Eduardo Rivas
I think you can still use your current installation if you're careful and try to match your FABRIC settings with what you have online right now. But yeah, it might just be easier to just start over. Bear in mind that you'll lose the database and media files you have in the server. -- You

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

2016-07-22 Thread Eduardo Rivas
Hi Jim. Yes, I think that would be a problem. The idea with the Fabfile is that it will let you automate deployments from your development machine to a VPS. All fabric task must be run from your dev machine. -- You received this message because you are subscribed to the Google Groups

Re: [mezzanine-users] Re: HOST_THEMES not working with imported themes

2016-07-22 Thread Eduardo Rivas
Hi Nikhil. So I don't know much about multi-tenant site themes, but I think the domain you use in the host / appname tuple should match the domain you have configured in the Sites section of the admin. So if you have "example.com" registered in the Sites admin, the tuple should be

Re: [mezzanine-users] Why does Fabric deployment name the db user after the project?

2016-07-11 Thread Eduardo Rivas
I think the idea is to be consistent and predictable when it comes to naming all things. The project directory, the database user, the database itself, and all configuration files just use the project name as identifier. I'm no security expert but I think that having one DB user per site is

Re: [mezzanine-users] Re: Email stop working when DEBUG = False

2016-07-08 Thread Eduardo Rivas
My guess is that there's a problem when sending the email. Django's mail handler will fail with a 500 error by default (https://docs.djangoproject.com/en/1.9/topics/email/#send-mail, see the fail_silently arg). There's a few reasons why email sending could fail: - You have an error in your

Re: [mezzanine-users] Mezzanine Theme

2016-06-29 Thread Eduardo Rivas
Hi Richard. The site title and tagline are editable in the admin. Just go to Site > Settings and look for "Site title". Regarding theming mezzanine, please check this excellent series of blog posts: http://bitofpixels.com/blog/mezzatheming-creating-mezzanine-themes-part-1-basehtml/ It

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

2016-06-28 Thread Eduardo Rivas
I've also used wkhtmltopdf but with the Django bindings. It's available on Pypi as django-wkhtmltopdf (that's off the top of my head, you should check) and provides a class based view and PDF response type. -- You received this message because you are subscribed to the Google Groups "Mezzanine

Re: [mezzanine-users] ngnix configurations overwritten

2016-06-28 Thread Eduardo Rivas
It should be inside the deploy/ folder in your project root. -- 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.

Re: [mezzanine-users] ngnix configurations overwritten

2016-06-28 Thread Eduardo Rivas
Are you applying your changes to the nginx template in your repo? The idea with Fabric is that you edit all configuration files in the included templates instead of doing it directly on the server. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users"

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

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

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"

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

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

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

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

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

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

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

Re: [mezzanine-users] Add import/export button in admin panel by using product_db code with django-import-export package.

2016-05-04 Thread Eduardo Rivas
Glad to see you figured it out. The only suggestion I have is that you should avoid editing Cartridge source code, and instead register your own customized admin class in your project. That way future Cartridge updates won't break your code (as easily) and you know all your customizations

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

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

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

Re: [mezzanine-users] collectstatic copies static files but mezzanine looks for static files in site-packages\mezzanine\*

2016-04-19 Thread Eduardo Rivas
For general advice on customizing Mezzanine's static assets and templates, check out this series by Josh Cartmell: http://bitofpixels.com/blog/mezzatheming-creating-mezzanine-themes-part-1-basehtml/ -- You received this message because you are subscribed to the Google Groups "Mezzanine Users"

Re: [mezzanine-users] collectstatic copies static files but mezzanine looks for static files in site-packages\mezzanine\*

2016-04-19 Thread Eduardo Rivas
If you want to override static files that have the same path as one of Mezzanine's (like Bootstrap or jQuery, or some admin stuff), make sure the application where these files are stored appears before mezzanine.core in your INSTALLED_APPS. Both the development server and collectstatic will

Re: [mezzanine-users] collectstatic copies static files but mezzanine looks for static files in site-packages\mezzanine\*

2016-04-19 Thread Eduardo Rivas
Hi Sebastian. That's the desired behavior when you're running the development server: we want Django to look for files in each app, either in your virtualenv or your project. In production, you would usually automate the execution of collectstatic to copy everything to STATIC_ROOT (normally

[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

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

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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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,

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

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

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

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

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

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

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

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"

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

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.

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

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

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

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

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.

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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:

[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,

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

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

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

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

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

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

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

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

<    1   2   3   4   >