[mezzanine-users] HOST_THEMES not working with imported themes

2016-07-21 Thread nikhil parmar
Hey I have been trying to enable the HOST_THEMES feature in my application. My directory structure is as follows flat and moderna

Re: [mezzanine-users] install Cartridge 0.11.0 on windows (via cygwin)

2016-07-21 Thread Ryne Everett
As for issue (2) you need to downgrade to html5lib<=0.999. This is pinned in bleach so I'm not sure why it wasn't constrained. (I had this problem too.) You can fix it with `pip install -U bleach`. On Thu, Jul 21, 2016 at 8:31 PM, Alain Turcotte wrote: > I am

[mezzanine-users] install Cartridge 0.11.0 on windows (via cygwin)

2016-07-21 Thread Alain Turcotte
I am trying to install Cartridge 0.11.0 on windows (via cygwin), and i have 2 bugs: 1) "mezzanine-project -a cartridge atcart" give me the error : CommandError: 'atcart' conflicts with the name of an existing Python module and cannot be used as a project name. Please try another name.

Re: [mezzanine-users] tel: being stripped from anchor href when saving a RichTextField. How do I allow it?

2016-07-21 Thread RandomDude
Yay! Happy customer. :D I just put your snippet in my models.py and it works. from bleach import sanitizer if "tel" not in sanitizer.BleachSanitizer.allowed_protocols: sanitizer.BleachSanitizer.allowed_protocols += ["tel"] I'm not in a position to upgrade Mezzanine due to formal procedures

Re: [mezzanine-users] Need some help with assigning user site permission in a view

2016-07-21 Thread zruu
Thank you man! This helped me out A LOT! Cheers! Den torsdag 21 juli 2016 kl. 23:20:24 UTC+2 skrev Ryne Everett: > > Ah, that makes sense. I guess you can't pass ManyToManyField's in the > constructor. Try: > > siteperms = SitePermissions.objects.create(user=user) >

Re: [mezzanine-users] Need some help with assigning user site permission in a view

2016-07-21 Thread Ryne Everett
Ah, that makes sense. I guess you can't pass ManyToManyField's in the constructor. Try: siteperms = SitePermissions.objects.create(user=user) siteperms.sites.add(site) On Thu, Jul 21, 2016 at 5:15 PM, zruu wrote: > Hi Ryne, > > Thanks for the quick reply. That was

Re: [mezzanine-users] Need some help with assigning user site permission in a view

2016-07-21 Thread zruu
Hi Ryne, Thanks for the quick reply. That was what I was looking for. I have a form on the front end that a user can create a site, and a user account at the same time. I want to automate this to minimize the administration as possible. However I tried that, and I got the error: 'sites' is

Re: [mezzanine-users] Need some help with assigning user site permission in a view

2016-07-21 Thread Ryne Everett
SitePermission.objects.create(user=user, sites=(site,)) I question whether this is really what you want to do, but without a better idea what your goal is it's all I can offer. On Thu, Jul 21, 2016 at 4:56 PM, zruu wrote: > Hey guys, > > I really need your help. I'm

[mezzanine-users] Need some help with assigning user site permission in a view

2016-07-21 Thread zruu
Hey guys, I really need your help. I'm stuck at the moment. Maybe is too late. However. I need to in my class view add site permission instead of using through the admin. I have no clue how to do this. I looked through the Mezzanine code and all I found was this piece of code that looks

Re: [mezzanine-users] Bad Gateway

2016-07-21 Thread Ryne Everett
A couple causes of gunicorn timeouts I've seen is larger files that don't transfer within the default --timeout (30 seconds). This isn't necessarily your problem but if it is you can increase the timeout. I've also seen it when streaming files, in which case the solution is to make the workers

Re: [mezzanine-users] Bad Gateway

2016-07-21 Thread loevdav
Hi Ken, Thanks. Yes I can but I'm not sure where do you want to get because the issuet happens on different sites and on different actions (sometimes just loading the home page and other time isnide the admin). I have been looking on the web and it looks like some people solved it by

Re: [mezzanine-users] Bad Gateway

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

Re: [mezzanine-users] Bad Gateway

2016-07-21 Thread loevdav
Hi Ken, Thanks a lot for the reply: Here are the logs: *Error log* [2016-07-01 10:30:43 +] [3496] [CRITICAL] WORKER TIMEOUT (pid:1105) [2016-07-01 10:30:49 +] [3496] [CRITICAL] WORKER TIMEOUT (pid:6783) [2016-07-01 10:35:53 +] [3496] [CRITICAL] WORKER TIMEOUT (pid:7129)