Re: [mezzanine-users] Re: Use of RichText model

2015-02-14 Thread Ryan Sadwick
Yep sorry for the brief answer :)

On Saturday, February 14, 2015 at 4:11:43 PM UTC-5, Kenneth Bolton wrote:
>
> To clarify Ryan's correct answer just a little, fields on your model 
> should be Field instances, not Model instances.
>
> On Sat, Feb 14, 2015 at 3:20 PM, Ryan Sadwick  > wrote:
>
>> info  = RichTextField(("Content"), blank=True, null=True)
>>
>>
>>
>>
>> On Friday, February 13, 2015 at 5:17:52 PM UTC-5, Melvin Ramos wrote:
>>>
>>>
>>> Hello,
>>>
>>> At Stephen McDonald's request, I post here in the Mailing List.
>>>
>>> I'm new to Django and therefore to Mezzanine. I'm creating a model and I 
>>> want to have a RichText field in one of the attributes of the class (code 
>>> below):
>>>
>>> models.py
>>>
>>> from django.db import models
>>> from mezzanine.pages.models import Page
>>> from mezzanine.core.models import RichText
>>>
>>>
>>> class KeyDocument(Page):
>>> pass
>>>
>>>
>>> class KeyDoc(models.Model):
>>> ref_page = models.ForeignKey("KeyDocument")
>>> title = models.CharField("Title*", max_length=1000)
>>> author = models.CharField("Author(s)*", max_length=1000)
>>> year = models.PositiveSmallIntegerField("Year*")
>>> month = models.CharField("Month", max_length=10, null=True, blank=
>>> True)
>>> info = RichText("Additional Information")
>>> laguange = models.CharField("Language(s)", max_length=100)
>>> slug = models.SlugField("Slug", max_length=100, null=True, blank=
>>> True)
>>>
>>>
>>> class Meta:
>>> ordering = ['-year', 'title']
>>>
>>>
>>> admin.py
>>>
>>> from copy import deepcopy
>>> from django.contrib import admin
>>> from mezzanine.pages.admin import PageAdmin
>>> from references.models import KeyDocument, KeyDoc
>>>
>>>
>>> keydoc_extra_fieldsets = ((None, {"fields": ()}),)
>>>
>>>
>>> class KeyDocInline(admin.TabularInline):
>>> model = KeyDoc
>>>
>>>
>>> class KeyDocsAdmin(PageAdmin):
>>> inlines = (KeyDocInline,)
>>> fieldsets = deepcopy(PageAdmin.fieldsets) + keydoc_extra_fieldsets
>>>
>>>
>>> admin.site.register(KeyDocument, KeyDocsAdmin)
>>>
>>>
>>> admin.site.register(KeyDoc)
>>>
>>>
>>> The result is that the field of Additional Info (which its variable is 
>>> info) is not showing at all.
>>>
>>> Can anyone help me with this?
>>>
>>> Thanks in advance
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Customer Account Login/Signup - None existent?

2015-02-14 Thread Ryan Sadwick
Within your settings.py, make sure "mezzanine.accounts" is enabled.

On Saturday, February 14, 2015 at 7:26:25 PM UTC-5, Darin Hensley wrote:
>
> Does Customer Account Login/Sign up not exist? I enabled it in the admin 
> settings for user "must login to check out". But there is no tab for sign 
> up and it errors out when I checkout. Sorry for the newbie question
>

-- 
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: Use of RichText model

2015-02-14 Thread Ryan Sadwick
info  = RichTextField(("Content"), blank=True, null=True)



On Friday, February 13, 2015 at 5:17:52 PM UTC-5, Melvin Ramos wrote:
>
>
> Hello,
>
> At Stephen McDonald's request, I post here in the Mailing List.
>
> I'm new to Django and therefore to Mezzanine. I'm creating a model and I 
> want to have a RichText field in one of the attributes of the class (code 
> below):
>
> models.py
>
> from django.db import models
> from mezzanine.pages.models import Page
> from mezzanine.core.models import RichText
>
>
> class KeyDocument(Page):
> pass
>
>
> class KeyDoc(models.Model):
> ref_page = models.ForeignKey("KeyDocument")
> title = models.CharField("Title*", max_length=1000)
> author = models.CharField("Author(s)*", max_length=1000)
> year = models.PositiveSmallIntegerField("Year*")
> month = models.CharField("Month", max_length=10, null=True, blank=True
> )
> info = RichText("Additional Information")
> laguange = models.CharField("Language(s)", max_length=100)
> slug = models.SlugField("Slug", max_length=100, null=True, blank=True)
>
>
> class Meta:
> ordering = ['-year', 'title']
>
>
> admin.py
>
> from copy import deepcopy
> from django.contrib import admin
> from mezzanine.pages.admin import PageAdmin
> from references.models import KeyDocument, KeyDoc
>
>
> keydoc_extra_fieldsets = ((None, {"fields": ()}),)
>
>
> class KeyDocInline(admin.TabularInline):
> model = KeyDoc
>
>
> class KeyDocsAdmin(PageAdmin):
> inlines = (KeyDocInline,)
> fieldsets = deepcopy(PageAdmin.fieldsets) + keydoc_extra_fieldsets
>
>
> admin.site.register(KeyDocument, KeyDocsAdmin)
>
>
> admin.site.register(KeyDoc)
>
>
> The result is that the field of Additional Info (which its variable is 
> info) is not showing at all.
>
> Can anyone help me with this?
>
> Thanks in advance
>

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

2014-08-12 Thread Ryan Sadwick
I echo Ken's recommendations as well, Mezzanine's Fabric script is great. 
 It saves time and makes for an enjoyable migration.  I can't imagine going 
through manually each migration! :)

If you're still wary about South, I recommend making a Django app and 
practice using South.  Change your schema and go through the process. 
 Sometimes you'll run into a problem that got through into production and 
that's when your practice will pay off. 

On Sunday, August 10, 2014 10:08:46 AM UTC-4, Kenneth Bolton wrote:
>
> The Most Important Thing: Make a backup of the database before running 
> migrate or syncdb. Automate it. If the included Fabric script is used to 
> deploy, automation of the migrations, db syncs, and backups comes for free.
>
> South migrations never need to be run. South is not a requirement of 
> Mezzanine. South is optional. South is recommended. South is so highly 
> recommended that an improved version is baked into Django 1.7+. South is 
> great if you have changing database models.
>
> The top level of a project has the manage.py file. In that directory, 
> running `python manage.py startapp foo` generates a directory 'foo' 
> containing models.py, views.py, and urls.py. This 'foo' is your app, and 
> maintaining migrations in there is definitely a good idea.
>
> I realized too late that I do not follow the update process I linked. To 
> update, I change the version in my project's copy of 
> https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/requirements.txt,
>  
> `git commit` the changes, and run `fab deploy`. The deploy script runs 
> migrate, syncdb, and collectstatic, and can be customized in your project 
> to do any number of other things. I am not aware of the condition in which 
> collecttemplates must be run. Take a look: 
> https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L477-L511
>
> One final, perhaps desperate, pitch: Mezzanine's Fabric script documents 
> the best practices for installing, creating, and deploying a Debian 
> GNU/Linux family server running the full Mezzanine stack.
>
>  
>
> On Sun, Aug 10, 2014 at 8:43 AM, Micah Yoder  > wrote:
>
>> Thanks Kenneth, that is good to know.  I did not even have the dependency 
>> issues that guy had upgrading, but I just easy_install upgraded django and 
>> mezzanine in one fell swoop like (probably) an idiot. :)  The only issue I 
>> *had* was that the admin sidebar disappeared, but re-running 
>> collecttemplates and collectstatic seems to have fixed that.
>>
>> No I have not done any real coding on these sites yet.
>>
>> So I should never need to run South when just updating the Mezzanine 
>> and/or Django codebase?
>>
>> If/when I do make some custom modifications, I assume those always go in 
>> an app, which would answer my second question, right?
>>
>> Thanks!!!
>>
>>
>> On Saturday, August 9, 2014 10:46:47 PM UTC-5, Kenneth Bolton wrote:
>>
>>> Hi Micah,
>>>
>>> Lucky is good enough.
>>>
>>> Have you written any models? Have you extended any Mezzanine models in 
>>> your settings? If you answer "no" to both of those, there are no monsters 
>>> and you do not need to do initial migrations for any app. Otherwise, still 
>>> no monster. If you change those models in your code or settings, you may 
>>> have to change their counterparts in your database. South (and Django's 
>>> migrations in 1.7+) makes managing those changes significantly safer and 
>>> saner. South is also invaluable if you work on branches with different 
>>> database schema. I like http://www.djangopro.com/2011/
>>> 01/django-database-migration-tool-south-explained/.
>>>
>>> When you update Mezzanine, using the included migrations means less 
>>> work. http://flaviodesousa.com/blog/upgrading-mezzanine-from-1-4-
>>> 10-to-1-4-16-then-3-0-9/ is a good after-action summary of an update.
>>>
>>> hth,
>>> ken
>>>
>>>
>>> On Sat, Aug 9, 2014 at 11:04 PM, Micah Yoder  wrote:
>>>
 Hi,

 So I originally installed Mezzanine about 8 months ago and have put 
 some content up on a couple sites.  Since then I have used easy_install to 
 upgrade django and Mezzanine, but have not messed with South at all.  I'm 
 somewhat of a django newbie, but trying to figure it all out.  I think it 
 started with Mezzanine 1.5 or something like that and now of course it's 
 on 
 3.1.

 I am not having any problems like DB errors yet but I suppose I am 
 lucky.  I probably should have looked at South from the beginning.

 South has been installed on the sites from the beginning, but I have 
 never intentionally done a migration.  I believe I answered 'no' when 
 createdb asked if I wanted to do fake migrations.

 Questions:

 1) Is there a huge monster lurking in my setup somewhere that will 
 eventually cause things to fail miserably, because I didn't manually do an 
 initial migration?

 2) I tried to do an initial

[mezzanine-users] Re: Custom ManyToManyField extending BlogPost in the admin interface

2014-08-01 Thread Ryan Sadwick
Make sure you run a south schemamigration on the blog app itself:

Something like:
manage.py schemamigration blog --auto





On Tuesday, July 29, 2014 10:14:18 AM UTC-4, Beau Severson wrote:
>
> I was also wondering the answer to this. I'm trying to add a new M2M field 
> to the BlogPost model and I keep getting the exact same error. Is this a 
> bug for mezzanine using south? My EXTRA_MODEL_FIELDS contains the following:
>
> (
> "mezzanine.blog.models.BlogPost.industry",
> "ManyToManyField",  # type of field to add
> ("users.Industry",),
> {"blank": True, "null": True},
> ),
>
> Everytime I attempt the migration though I get the same error you are 
> seeing.
>
> On Friday, January 11, 2013 8:40:05 AM UTC-6, Sam wrote:
>>
>>
>> Hello,
>>
>> In the admin interface i would like it to be possible to select multiple 
>> genres for blogposts. These genres are from a different model so I used the 
>> technique described in the manual.
>>
>> I try to add a custom ManyToManyField to the blog app using the following 
>> syntax in my settings.py:
>>
>> (
>> "mezzanine.blog.models.BlogPost.genre",
>> "ManyToManyField",
>> ('blog_custom.Genre',),
>> {"null":True, "blank": True,},
>> ),
>>
>> I started a custom app called blog_custom where I'd like to store the 
>> migrations. I have defined my Genre model as follows:
>>
>> class Genre(models.Model):
>>   name = models.CharField(max_length=300)
>>
>> Given the fact that I use South in this project, I have to perform a 
>> migration at which point I get the following error:
>> TypeError: 'NoneType' object has no attribute '__getitem__'
>>
>> After some investigation I found out that this issue might actually be 
>> related to South, or related to the way the arguments are passed on from 
>> mezzanine to South. If I, for example, create the intermediare table that 
>> should have been created with the migration manually, and run the migration 
>> after this fact, it does complete since south does not have to create it. 
>> The problem with this approach is that Django will not use this 
>> intermediary model in the admin interface, which is what I need.
>>
>> Any thoughts?
>>
>> 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] Re: Bulk Product Upload In Cartridge

2014-08-01 Thread Ryan Sadwick
I recently made a script that calls Amazon's product api and inserts into 
cartridge for an affiliate mash up site.  I based the script off of 
what Stephen linked earlier and the mezz/cartirdge chart: 
http://cartridge.jupo.org/_images/graph.png.  The most products I've 
inserted at one time has been around 100 since I'm hand picking the 
products and I loop through a list of item numbers that call the script to 
insert into cartridge.

I didn't run into any problems, everything works - ratings, images, 
categories.  I'd suggestion playing around with Cartridge api within a 
shell to play around with the product database.

I'd suggest to keep at it and don't give up. 

Ryan

On Wednesday, July 30, 2014 9:35:35 PM UTC-4, Stevo wrote:
>
> My biggest product feed is JSON and has 20k skus and gets updated every 2 
> weeks. Other files are .csv, and only 3-4k skus, updated every 2 months or 
> so.
> My main needs are: a) quoting tool to guide/train/remind the user on the 
> process and options in quoting complex product bundles  b) large number of 
> products with lots of attributes   c) speed for about 20 users, and   d) 
> easy coding to suit my high-level noobosity. 
> All I've tried so far is doing  Dr Chuck's Python Course 
> , the Django tute 
> , Ross Laird's 
> tutes  and 
> installing Mezzanine  and trying out 
> python-docx  (How cool is 
> that gizmo?)
> Like Mike, I love Mezzanine "out-of-the-box" plus its not-insurmountable 
> learning curve. I've had a look at OpenERP, Magento, SugarCRM and vTiger 
> and a few others. They all do a great job, but the complexity of all that 
> functionality is a problem for a web-admin person in a team of one, like 
> me. So maybe it's better to do a bit of coding to get one app to do more, 
> rather than manage three apps from the admin interface and try to get them 
> to talk to each other.
> My thinking is to use Mezzanine as a kind of "intranet-hub" to other apps, 
> like the quoting tool. Or actually use Mezzanine and Cartridge to do the 
> quoting tool itself.  So I was just hoping for some advice before I get 
> started. So if you think it not a dumb idea, I'll try Sam's Way first and 
> report back when I've got some results.
> Best regards Ken et al, and many thanks for the prompt advice. 
> Stevo.
>
> On Wednesday, July 30, 2014 11:43:29 PM UTC+10, Kenneth Bolton wrote:
>>
>> What have you tried? What form do you currently have those "at least 
>> 20,000 products" in?
>>
>> The management command Stephen wrote about still works, afaik. And Sam's 
>> technique is a tried-and-true method of bulk-inserting complex data into 
>> Django already in use within Cartridge.
>>
>> ken
>>
>>
>>
>> On Wed, Jul 30, 2014 at 8:36 AM, Stevo  wrote:
>>
>>> Is there any chance of an update on this issue? I'd really love to use 
>>> Mezzanine rather than Magento, but I have to load up at least 20,000 
>>> products. I was hoping to use Cartridge as the foundation to allow users to 
>>> do quite complex quotes and proposals and output them using python-docx. Or 
>>> is this out of scope for Mezzanine? Any advice appreciated.
>>> Regards.
>>>
>>>
>>> On Monday, February 25, 2013 2:26:26 PM UTC+11, Martin Hickey wrote:

 I am non-programmer, but I have launched a number of Mezzanine sites. I 
 love the framework and am looking forward to learning more.

 I am beginning to play around with a concept that would require 
 Cartridge. I have gone through the documentation, but I am sure that it is 
 possible I missed it. Is there a way to bulk upload products into 
 Cartridge. I have considered integrating something like django-feedmapper, 
 but sure would love to avoid the time involved in a custom integration. 
 Can 
 you let me know if this is my best bet at this point?

 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-use...@googlegroups.com.
>>>  For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Mezzanine SSL support

2014-08-01 Thread Ryan Sadwick
I'm running Mezzanine and Cartridge under SSL over at jnkbows.com.

Make sure you've correctly generated the certificate and key through your 
SSL provider.

In your settings.py, make sure you enable SSL Redirect Middleware:

mezzanine.core.middleware.SSLRedirectMiddleware

Also, check your ssl prefixes in settings as well:
SSL_FORCE_URL_PREFIXES


Are you using nginx?  You'll need to point to your certificate and key. 
 Check your settings in deploy/nginx.conf.

server {
listen 80;
listen 443 default ssl;
server_name %(live_host)s;
client_max_body_size 10M;
keepalive_timeout15;

ssl on;
ssl_certificate /path/to/cert.crt;
ssl_certificate_key /path/to/key/ssl.key;



Once you get to that point, login to your admin panel and go to settings. 
 Under SSL, turn on Enabled SSL.

That should get you started.  If you're only setting SSL in Mezzanine's 
admin, that will not work by itself, you'll need to do the ground work 
mentioned above as well.

On Thursday, July 31, 2014 9:00:06 PM UTC-4, Duc Dang wrote:
>
> Hi everyone,
>
> I enable SSL support in Mezzanine in Admin page using SSL_ENABLED=True, 
> but all the access to my page are still not redirected to https://. I 
> expect that /admin pages will be via https:// but looks like it is not.
>
> Is there any other configuration that I missed?
>
> Regards,
> Duc Dang.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Images loading sideways on mobile

2014-07-11 Thread Ryan Sadwick
Sounds like a css issue, hard to give you a solution without seeing your 
site.

On Thursday, July 10, 2014 9:48:34 AM UTC-4, Amber Grimaldi wrote:
>
> I just came across this problem where on a particular blog post all the 
> images are being rendered 90 degrees to the right on when viewing the site 
> on iphone/ipad and correctly on a web browser. This hasn't previously been 
> an issue with either feature images or images uploaded in the rich text 
> field. 
>
> Any idea what the cause might be so I can prevent it later?
>

-- 
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: Which payment processors work with Cartridge ?

2014-07-10 Thread Ryan Sadwick
I'm using Stripe for payments with a few production sites.  Haven't had any 
problems and their api and payment admin is solid.

On Friday, July 4, 2014 10:40:06 AM UTC-4, Ibn Saeed wrote:
>
> Hello
>
> Which payments processors work with cartridge ?
>
> Can we use 2Checkout or Payment payments or even Amazon payments ?
>

-- 
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: Fabric file and related resources for deploying Mezzanine to Webfaction

2014-06-19 Thread Ryan Sadwick
Great job and thanks for stepping up  some getting this going!

On Tuesday, June 10, 2014 1:27:07 AM UTC-4, Eduardo Rivas wrote:
>
> Hello everyone! Since I started with Mezzanine/Django I've been deploying 
> my sites to Webfaction  
> (that's a referral link). Even though their one-click installers are great, 
> they make it hard to keep your Django version up to date and automate the 
> deployment process. For that you need to go beyond the official docs 
> (however, tutorials are not hard to find). I decided to create my own 
> version of the Fabric script that ships with Mezzanine and automate the 
> whole deployment process using the Webfaction API (knowing that Webfaction 
> accounts don't have root access to install stuff). And so, Mezzanine-WebF 
>  was born. I have used it 
> internally for months and others have given it a shot, providing valuable 
> feedback and bug fixes, so I'm confident it's reached an acceptable 
> stability.
>
> So, if you would like to automate deployment of Mezzanine sites to a 
> Webfaction shared hosting account, this is the tool for the job. Feel free 
> to report any bugs you find on Github's issue tracker and contribute fixes 
> if you can. Please note you should be familiar enough with 
> Django/Mezzanine, Fabric, and Webfaction to use the tool, and please read 
> the README. I hope it helps a few. Here's the link again: 
> 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.


[mezzanine-users] Re: Multiple 404s on blog page while admin logged in

2014-06-04 Thread Ryan Sadwick
It looks like tinyMCE javascript files.  These files are in the wrong 
location, here is an example of where they exist normally:

/grappelli/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js

I'd start with checking your static_url/media_url and go from there.  If 
you're still not having luck, my recommendation is installing a fresh copy 
of mezzanine on a VirtualEnv and go from there.  If it works correctly, 
merge in your apps and settings. 

On Wednesday, May 28, 2014 6:46:20 PM UTC-4, Devon Campbell wrote:
>
> On my live site, I'm getting several 404s when I load the blog page (or 
> any page under it) while logged in as an admin.
>
> Here are the errors from the Network tab of Chrome dev tools:
>
> GET http://radworks.io/blog/plugins/inlinepopups/editor_plugin.js/ 404 (NOT 
> FOUND) 3e67aef34942.js:36
> Failed to load: 
> http://radworks.io/blog//plugins/inlinepopups/editor_plugin.js 
> 3e67aef34942.js:36
> GET http://radworks.io/blog/langs/en.js/ 404 (NOT FOUND) 3e67aef34942.js:36
> Failed to load: http://radworks.io/blog//langs/en.js 3e67aef34942.js:36
> GET http://radworks.io/blog/plugins/tabfocus/editor_plugin.js/ 404 (NOT 
> FOUND) 3e67aef34942.js:36
> Failed to load: http://radworks.io/blog//plugins/tabfocus/editor_plugin.js 
> 3e67aef34942.js:36
> GET http://radworks.io/blog/plugins/searchreplace/editor_plugin.js/ 404 (NOT 
> FOUND) 3e67aef34942.js:36
> Failed to load: 
> http://radworks.io/blog//plugins/searchreplace/editor_plugin.js 
> 3e67aef34942.js:36
> GET http://radworks.io/blog/plugins/contextmenu/editor_plugin.js/ 404 (NOT 
> FOUND) 3e67aef34942.js:36
> Failed to load: http://radworks.io/blog//plugins/contextmenu/editor_plugin.js 
> 3e67aef34942.js:36
> GET http://radworks.io/blog/plugins/advimage/editor_plugin.js/ 404 (NOT 
> FOUND) 3e67aef34942.js:36
> Failed to load: http://radworks.io/blog//plugins/advimage/editor_plugin.js 
> 3e67aef34942.js:36
> GET http://radworks.io/blog/plugins/media/editor_plugin.js/ 404 (NOT FOUND) 
> 3e67aef34942.js:36
> Failed to load: http://radworks.io/blog//plugins/media/editor_plugin.js 
> 3e67aef34942.js:36
> GET http://radworks.io/blog/themes/advanced/editor_template.js/ 404 (NOT 
> FOUND) 3e67aef34942.js:36
> Failed to load: http://radworks.io/blog//themes/advanced/editor_template.js 
> 3e67aef34942.js:36
> GET http://radworks.io/blog/plugins/table/editor_plugin.js/ 404 (NOT FOUND) 
> 3e67aef34942.js:36
> Failed to load: http://radworks.io/blog//plugins/table/editor_plugin.js 
> 3e67aef34942.js:36
> GET http://radworks.io/blog/plugins/fullscreen/editor_plugin.js/ 404 (NOT 
> FOUND) 3e67aef34942.js:36
> Failed to load: http://radworks.io/blog//plugins/fullscreen/editor_plugin.js 
> 3e67aef34942.js:36
> GET http://radworks.io/blog/plugins/advlink/editor_plugin.js/ 404 (NOT FOUND) 
> 3e67aef34942.js:36
> Failed to load: http://radworks.io/blog//plugins/advlink/editor_plugin.js 
> 3e67aef34942.js:36
> GET http://radworks.io/blog/plugins/paste/editor_plugin.js/ 404 (NOT FOUND) 
> 3e67aef34942.js:36
>
> This doesn't happen when viewing my home page and it doesn't happen on my 
> development server. I notice the GET has a trailing slash which probably 
> shouldn't be there, and the Failed to loadmessage has two slashes after 
> blog. Not sure why this would be or how to fix it, but I suspect one of 
> these two issues is causing the problem.
>

-- 
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] Cartridge: wishlist text customization

2014-05-27 Thread Ryan Sadwick
Simple enough, thanks and it works great!

On Sunday, May 18, 2014 11:03:16 PM UTC-4, Stephen McDonald wrote:
>
> I'd just modify the template code that displays the messages to check for 
> that particular message, and in that case, display a different message 
> directly in the template..
>
>
> On Sun, May 18, 2014 at 11:24 PM, Ryan Sadwick 
> > wrote:
>
>> This seems simple but I want to take the right path, I just need a nudge 
>> in the right direction.
>>
>> When you add an item to the wishlist, a text alert returns "Item added to 
>> wishlist".  I'd like to custom that text without modifying the wishlist app 
>> that comes with cartridge.  Can I override that with a context processor?
>>
>> 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-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Stephen McDonald
> http://jupo.org 
>

-- 
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: tinymce JS files on Amazone S3 CDN requires AWS_QUERYSTRING_AUTH = False?

2014-05-27 Thread Ryan Sadwick
Try these settings, there isn't much documentation on these.  My site runs 
on SSL and all the TinyMCE editors work.  I'm running Mezzanine 3.14 + 
Cartridge.


*STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'*
*AWS_QUERYSTRING_AUTH = False*
*AWS_S3_SECURE_URLS = True*

*AWS_S3_CUSTOM_DOMAIN = 's3.amazonaws.com/bucket_name'*
*S3_URL = 'https://s3.amazonaws.com/bucket_name'*
*MEDIA_URL = S3_URL*
*STATIC_URL = S3_URL*


On Friday, May 23, 2014 2:36:24 PM UTC-4, Brad Bode wrote:
>
> Although you are having a slightly different issue you might want to join 
> in on my discussion (with myself). It's a very similar problem. 
>
> https://groups.google.com/d/msg/mezzanine-users/A7wEDWprYZY/gb-FBYxJjzQJ
>
> I am using AWS S3 with SSL for the admin. The only problem I have left is 
> getting the source editor to work. I might be able to advise you on your 
> issue as well. You may first want to read the replys here:
>
> https://groups.google.com/d/msg/mezzanine-users/r5DXu0dkCMU/3eH4wdczaZcJ
>
> It relates to getting S3 working with mezzanine.
>
>
> On Tuesday, May 20, 2014 5:33:07 PM UTC-7, John Briere wrote:
>>
>> Hi all - I ran into a weird situation using a very basic S3 setup - this 
>> is without even trying to use the filebrowser with S3 which I know can be 
>> an issue.
>>
>> The basic problem is that when ever I go to an admin page that uses the 
>> tinymce JS files to render a rich text editor, I was getting a lot of 
>> 404/permission denied errors. Specifically the error was 
>> 
>> SignatureDoesNotMatch
>> 
>> The request signature we calculated does not match the signature you 
>> provided. Check your key and signing method.
>>  
>>
>>
>> where Django was referencing the tinymce JS files using a URL like this:
>> https://.
>> s3.amazonaws.com/grappelli/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js?Signature=>  
>> signature> &Expires=1400621225&AWSAccessKeyId=
>>
>> However, I've set my bucket to be completely public for reads so a URL 
>> like this works fine:
>> https://.
>> s3.amazonaws.com/grappelli/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js
>>
>>
>> Now everything else works great - collect static, uploading an image (not 
>> using file browser, just using a regular image field) - and in the case of 
>> uploading an image, the AWS signature field is included and seems to work 
>> correctly. So only the admin JS files seem to be broken.
>>
>> The only thing that seems to get the tinymce JS files to view correctly 
>> is when I set 
>>
>> AWS_QUERYSTRING_AUTH = False
>>
>> in my settings file. 
>>
>> The only thing I can think is that grappelli is picking up the wrong AWS 
>> secrets when generating the link to the JS files. 
>>
>> Is there something very basic here I'm missing? 
>>
>> I've noticed a lot of the boto/storages examples that I see around the 
>> mezzanine forum have the query string auth turned off, but I'd like to 
>> understand the reasons behind this in case I want to roll out some 
>> cache-busting code later.
>>
>> thanks- John 
>>
>>
>>
>>

-- 
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: Amazon s3 storage backed, upload image to blog from admin HTTP 500 on demo site.

2014-05-27 Thread Ryan Sadwick
My site is SSL and I haven't had any problems with s3.  It was rough 
initially but I just continued to work through the problems and found a 
sweet spot.  I find that it is important to understand how S3/Boto work 
instead of pasting someone's settings.  Here is what I used.  I stripped 
out my variables with strings, happy tinkering.  You should find all 
documentation on the Boto site.

*DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'*
*AWS_ACCESS_KEY_ID = 'your_id'*
*AWS_SECRET_ACCESS_KEY = 'your_key'*
*AWS_STORAGE_BUCKET_NAME = 'bucketname'*
*STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'*
*AWS_QUERYSTRING_AUTH = False*
*AWS_S3_SECURE_URLS = True*

*AWS_S3_CUSTOM_DOMAIN = 's3.amazonaws.com/bucket_name'*
*S3_URL = 'https://s3.amazonaws.com/bucket_name'*
*MEDIA_URL = S3_URL*
*STATIC_URL = S3_URL*

For SSL to work, I had to use the aws_s3_custom_domain.  It's not 
documented and buried.

For thumbnails, I use sorl_thumbnails.  I found that sorl works great with 
s3 and I haven't run into any issues and implementing it within templates 
was easy.

Also, make sure your images are publicly accessible.  Test your access of 
your image bucket within your browser.  If you're getting an error there, 
you'll need to read up on permissions.  

Good luck and don't give up :)


On Tuesday, May 27, 2014 11:45:23 AM UTC-4, bob hosk wrote:
>
> Could it be trying to upload to the wrong dir( when in the admin), err was
>
>  "/admin/media-library/upload_file/ HTTP/1.1" 500 1
>
> Shouldn't this be my amazon bucket url followed by something like /media?
>

-- 
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] Cartridge: wishlist text customization

2014-05-18 Thread Ryan Sadwick
This seems simple but I want to take the right path, I just need a nudge in 
the right direction.

When you add an item to the wishlist, a text alert returns "Item added to 
wishlist".  I'd like to custom that text without modifying the wishlist app 
that comes with cartridge.  Can I override that with a context processor?

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.


[mezzanine-users] Re: Problem moving or adding pages from the admin

2014-01-24 Thread Ryan Sadwick
Any javascript errors showing up in your browser's console?

On Friday, January 24, 2014 11:22:59 PM UTC-5, Jake Schmitz wrote:
>
>
> For some reason I can only create pages from the quick add on the main 
> admin page. When I try to add a page from within the actual list of all my 
> pages, nothing happens. I cannot move the order of my pages around nor can 
> I add a nested page. Any help would be appreciated.
>

-- 
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/groups/opt_out.


Re: [mezzanine-users] mezzanine-cartridge pic upload problem :cannot upload product image using admin account

2014-01-22 Thread Ryan Sadwick
I've only run into this on OSX while in a dev environment.  See if this 
works:

Using brew: http://brew.sh/


   - 
   
   brew install jpeg 
   - 
   
   brew install libjpeg 
   - 
   
   sudo pip install Pillow 
   

On Wednesday, January 22, 2014 2:56:36 AM UTC-5, lu zou wrote:
>
> could you go into more details, I just download a clean cartridge from 
> github and run it again ,same problem come along
>
> On Wednesday, 22 January 2014 17:14:10 UTC+10, Stephen McDonald wrote:
>>
>> That error typically occurs when there has been a problem with the 
>> JavaScript that handles the drag/drop re-ordering.
>>
>> Check your browser's JavaScript console for errors or perhaps missing 
>> files.
>>
>>
>> On Wed, Jan 22, 2014 at 6:11 PM, lu zou  wrote:
>>
>>> when I am create a product in admin account ,if I upload the product 
>>> image ,there will be a bug ,donot why, using the default django pic ,same 
>>> problem ,all kinds of the image type I have tried to upload ,all come 
>>> across the same problem 
>>>
>>> error info:
>>>
>>> invalid literal for int() with base 10: ''
>>>
>>> traceback info :
>>>
>>>
>>>- 
>>>
>>> /Users/luzou/Documents/djanproj/cartridge/src/cartridge/cartridge/shop/admin.py
>>>  in save_formset
>>>
>>>1. 
>>>   
>>>
>>> self._images_formset, change)
>>>   
>>>   2. ... 
>>>▶ Local vars 
>>>- 
>>>
>>>
>>>
>>>- 
>>>
>>> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/core/models.py
>>>  in save
>>>
>>>1. 
>>>   
>>>   super(Orderable, self).save(*args, **kwargs)
>>>   
>>>   ...
>>>▶ Local vars 
>>>
>>>
>>> also when upload pic from the media library(which have been uploaded into 
>>> already ) into gallery 
>>>
>>> same error:
>>>
>>> invalid literal for int() with base 10: ''
>>>
>>>  
>>>
>>>- 
>>>
>>>
>>> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/pages/admin.py
>>> in change_view
>>>1. 
>>>   
>>>   return super(PageAdmin, self).change_view(request, object_id, 
>>> **kwargs)
>>>   
>>>   ...
>>>▶ Local vars 
>>>
>>>
>>>
>>>
>>>- 
>>>
>>> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/galleries/models.py
>>> in save
>>>1. 
>>>   
>>>   super(GalleryImage, self).save(*args, **kwargs)
>>>   
>>>   ...
>>>▶ Local vars 
>>>- 
>>>
>>> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/core/models.py
>>> in save
>>>1. 
>>>   
>>>   super(Orderable, self).save(*args, **kwargs)
>>>   
>>>   ...
>>>▶ Local vars 
>>>- 
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Mezzanine Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to mezzanine-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> -- 
>> Stephen McDonald
>> http://jupo.org 
>>
>

-- 
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/groups/opt_out.


Re: [mezzanine-users] Re: deployment issue --- gunicorn

2014-01-18 Thread Ryan Sadwick
I was able to fix the problem I was having and successfully deployed.

I started over from a basic mezzanine project.  It worked perfectly.  Then 
I slowly merged in my settings and apps.  I'm using amazon s3 for my cdn 
and everything snapped together fine.  There was a few things I had to 
adjust to get the filebrower working with s3 but I expected that :)

I believe the original cause of the issue was I was working in the wrong 
virtualenv which caused a bunch of issues with supervisor.  While I was 
able to fix the issues with supervisor I was ultimately in the wrong 
virtualenv which caused problems with gunicorn.

Thanks for the help!





On Thursday, January 16, 2014 6:35:58 AM UTC-5, Klamann, Norbert wrote:
>
> I repeated the whole exercise and now it works .
>
> gunicorn.conf.py is changed an looks like that.
>
> mezzanine@wsa02:~/mezz_test/project$ cat gunicorn.conf.py
>
> from __future__ import unicode_literals
> import multiprocessing
> bind = "127.0.0.1:8000"
> workers = multiprocessing.cpu_count() * 2 + 1
> loglevel = "error"
> proc_name = "mezz_test"
>
> Now I get a Error 500  when I visit the new instance but that is another 
> problem i presume.
>
>
> Thanks for your help
>
> Norbert
>
>
>
>
>
>
> 2014/1/16 Stephen McDonald >
>
>> Thanks Harry
>>
>> FWIW my successful test used 8000 for the gunicorn port.
>>
>>
>> On Thu, Jan 16, 2014 at 11:32 AM, >wrote:
>>
>>> At least for the most basic deployment of mezzanine (ie. no custom theme 
>>> app yet) I seem to have resolved the issue.
>>>
>>> Although I did a few different things, I think that the major factor was 
>>> changing the gunicorn port from 8000 to anything else (8001, ).
>>>
>>> I'll keep you posted as to whether this moment of success persists.
>>>
>>> Harry
>>>
>>>
>>> On Friday, 10 January 2014 13:41:31 UTC+8, har...@iinet.net.au wrote:
>>>

 Hi,

 I'm very new to Mezzanine and have been loving it --- especially the 
 fabric deploment.  However, I seem to be having some troubles with 
 gunicorn.

 I started from a fresh linode running debian and allowed 'fab all' to 
 build the full system.

 I would very much appreciate some assistance with this.

 My basic process is:

 server:

 new linode profile
 ssh as root
 adduser user
 apt-get install sudo vim
 add harry to sudoers file
 on local machine:
 ssh-copy-id -i ~/.ssh/id_rsa.pub
 sudo pip install virtualenvwrapper
 add to bashrc:

 export WORKON_HOME=$HOME/.virtualenvs
 source /usr/local/bin/virtualenvwrapper.sh
 export PIP_VIRTUALENV_BASE=$WORKON_HOME

 local:

 mkvirtualenv black_earth_{project}
 pip install -r requirements.txt
 createdb {project}
 mezzanine-project {project}
 set database parameters in local_settings.py
 copy keys and deploy setting (FABRIC) to local_settings.py
 set allowed_hosts in settings.py
 ALLOWED_HOSTS = [
 'localhosts',
 '.mysite.org.au',
 ]
 python manage.py createdb
 check local server
 set up git repository
 git init
 git add .
 git  git remote add origin {gitserver}
 git push -u origin master
 pip freeze > requirements.txt
 fab all

 pip error:
 sudo pip install setuptools --no-use-wheel --upgrade

 At the final point in the deployment --- restart --- I get the error:

 $ supervisorctl start black_earth_semina:gunicorn_black_earth_semina ->

 [blackearthcollective.org.au] out: sudo password:
 [blackearthcollective.org.au] out: 
 black_earth_semina:gunicorn_black_earth_semina: 
 ERROR (abnormal termination)
 [blackearthcollective.org.au] out: 

 This is with a completely standard mezzanine setup.  I thought that the 
 problem was with my theme project.

 from the supervisor gunicorn log:

 !!!
 !!! WARNING: This command is deprecated.
 !!!
 !!! You should now run your application with the WSGI interface
 !!! installed with your project. Ex.:
 !!!
 !!! gunicorn myproject.wsgi:application
 !!!
 !!! See https://docs.djangoproject.com/en/1.4/howto/deployment/
 wsgi/gunicorn/
 !!! for more info.
 !!!

 2014-01-10 01:16:35 [12088] [CRITICAL] WORKER TIMEOUT (pid:12097)

>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Mezzanine Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to mezzanine-use...@googlegroups.com .
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> -- 
>> Stephen McDonald
>> http://jupo.org 
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Mezzanine Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/mezzanine-users/Ltmdrd3D2aw/unsubsc

[mezzanine-users] Re: deployment issue --- gunicorn

2014-01-15 Thread Ryan Sadwick
Same here, I hit the same snag.  Currently deploying on Linode.

On Tuesday, January 14, 2014 11:00:16 AM UTC-5, 
norbert...@klamann-software.de wrote:
>
> Hi all, any ideas for this ? 
>
> I have the same problem
>
>
> Thanks a lot
>
> Norbert
>
> Am Freitag, 10. Januar 2014 06:41:31 UTC+1 schrieb har...@iinet.net.au:
>>
>>
>> Hi,
>>
>> I'm very new to Mezzanine and have been loving it --- especially the 
>> fabric deploment.  However, I seem to be having some troubles with gunicorn.
>>
>> I started from a fresh linode running debian and allowed 'fab all' to 
>> build the full system.
>>
>> I would very much appreciate some assistance with this.
>>
>> My basic process is:
>>
>> server:
>>
>> new linode profile
>> ssh as root
>> adduser user
>> apt-get install sudo vim
>> add harry to sudoers file
>> on local machine:
>> ssh-copy-id -i ~/.ssh/id_rsa.pub
>> sudo pip install virtualenvwrapper
>> add to bashrc:
>>
>> export WORKON_HOME=$HOME/.virtualenvs
>> source /usr/local/bin/virtualenvwrapper.sh
>> export PIP_VIRTUALENV_BASE=$WORKON_HOME
>>
>> local:
>>
>> mkvirtualenv black_earth_{project}
>> pip install -r requirements.txt
>> createdb {project}
>> mezzanine-project {project}
>> set database parameters in local_settings.py
>> copy keys and deploy setting (FABRIC) to local_settings.py
>> set allowed_hosts in settings.py
>> ALLOWED_HOSTS = [
>> 'localhosts',
>> '.mysite.org.au',
>> ]
>> python manage.py createdb
>> check local server
>> set up git repository
>> git init
>> git add .
>> git  git remote add origin {gitserver}
>> git push -u origin master
>> pip freeze > requirements.txt
>> fab all
>>
>> pip error:
>> sudo pip install setuptools --no-use-wheel --upgrade
>>
>> At the final point in the deployment --- restart --- I get the error:
>>
>> $ supervisorctl start black_earth_semina:gunicorn_black_earth_semina ->
>>
>> [blackearthcollective.org.au] out: sudo password:
>> [blackearthcollective.org.au] out: 
>> black_earth_semina:gunicorn_black_earth_semina: ERROR (abnormal termination)
>> [blackearthcollective.org.au] out: 
>>
>> This is with a completely standard mezzanine setup.  I thought that the 
>> problem was with my theme project.
>>
>> from the supervisor gunicorn log:
>>
>> !!!
>> !!! WARNING: This command is deprecated.
>> !!!
>> !!! You should now run your application with the WSGI interface
>> !!! installed with your project. Ex.:
>> !!!
>> !!! gunicorn myproject.wsgi:application
>> !!!
>> !!! See 
>> https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/gunicorn/
>> !!! for more info.
>> !!!
>>
>> 2014-01-10 01:16:35 [12088] [CRITICAL] WORKER TIMEOUT (pid:12097)
>>
>

-- 
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/groups/opt_out.