[mezzanine-users] Cartridge shop missing from admin on deployed site
Hi all, I've successfully deployed Mezzanine with Cartridge to a VPS. However, I don't see the shop information in the admin. It's showing up in the dev server, though. I don't see any errors showing up in the logs, so I'm not really sure what's happening. Stuff I've checked: - gunicorn logs - installed apps in settings.py - fabric output on deploy Nothing seems to be incorrect and I don't see any errors, but obviously something isn't quite right. Where else should I look to try to resolve this? -- 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: Subclass model of form page
I tried to create a subclass of Form model like this: class ContactPage (Page, Form): Representing A page of the home page RichTextField address = (_ ('Info'), null = True, blank = True) class Meta: verbose_name = _ (Form Info) verbose_name_plural = _ (Form Info) But I get the following error: *TypeError: Error When calling the metaclass bases * * Can not create a consistent method resolution * Do you have any idea? thank you Le mercredi 26 mars 2014 20:01:44 UTC+1, Cajoline a écrit : Hello, I would like to create a subclass model of form page, but I can not add custom fields. Create a subclass of a normal page I have no problem but for the form page I can not do it, because the fields to create form is not displayed Would you have an example of a subclass of page form Thank you -- 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 figure out why my Static Files won't load
Tried each combo and none worked...hmmm... On Friday, March 28, 2014 12:35:39 PM UTC-6, Kyle Pennell wrote: Thanks for responding. Double checking I understand: location /static/ { alias /opt/myenv/mezzanine_app/static/; } Should be: location /static/ { alias /opt/myenv/mezzanine_app/static; } Or? location /static/ { alias /opt/myenv/mezzanine_app; } On Thursday, March 27, 2014 8:45:04 PM UTC-6, Matthew Summers wrote: Remove the trailing slash on your location alias directive. On Thu, Mar 27, 2014 at 6:32 PM, Kyle Pennell kpen...@gmail.com wrote: Ah! Will try pulling that out. Thanks for the help, Stephen. On Thu, Mar 27, 2014 at 5:28 PM, Stephen McDonald st...@jupo.org wrote: On Fri, Mar 28, 2014 at 8:46 AM, Kyle Pennell kpen...@gmail.com wrote: Triple checked my settings and can't find why my static files aren't loading. Nginx and Gunicorn are installed and working. Symbolic Link between sites-available and sites-enabled is made ── sites-available │ ├── mezzanine_app │ └── myproject ├── sites-enabled │ ├── ahalearning - ../sites-available/ahalearning │ ├── mezzanine_app - ../sites-available/mezzanine_app │ └── myproject - ../sites-available/myproject Collectstatic has been run and static files are in place: ├── deploy │ ├── crontab │ ├── gunicorn.conf.py │ ├── live_settings.py │ ├── nginx.conf │ └── supervisor.conf ├── dev.db ├── fabfile.py ├── __init__.py ├── __init__.pyc ├── local_settings.py ├── local_settings.pyc ├── manage.py ├── requirements.txt ├── settings.py ├── settings.pyc ├── static │ ├── admin │ ├── css │ ├── filebrowser │ ├── fonts │ ├── grappelli │ ├── img │ ├── js │ ├── media │ ├── mezzanine │ ├── robots.txt │ └── test ├── urls.py ├── urls.pyc └── wsgi.py STATIC_ROOT in settings.py points to the right folder (opt/myenv/mezzanine_app/static/) My nginx server settings point to the right files: /etc/nginx/sites-available server { server_name 107.170.215.138; access_log off; location /static/ { alias /opt/myenv/mezzanine_app/static/; } I think this will look for the directory /opt/myenv/mezzanine_app/static/static/ location / { proxy_pass http://127.0.0.1:8001; proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Real-IP $remote_addr; add_header P3P 'CP=ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV'; } } Nginx and Gunicorn fire up without problems. Any idea what I might be missing? Why are my static files 404'ing? -- 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 a topic in the Google Groups Mezzanine Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/mezzanine-users/CrUlR8jjUw0/unsubscribe. To unsubscribe from this group and all its topics, 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-use...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- M. Summers ...there are no rules here -- we're trying to accomplish something. - Thomas A. Edison -- 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 figure out why my Static Files won't load
*Nginx Error Log:* 2014/03/28 12:16:12 [error] 13768#0: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 61.135.190.70, server: 107.170.215.138:8001, request: GET *Now to try to figure out what these are saying:* 2014/03/28 07:12:58 [error] 13768#0: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 220.181.51.146, server: 107.170.215.138:8001, request: GET$ 2014/03/28 07:28:45 [error] 13768#0: *10 connect() failed (111: Connection refused) while connecting to upstream, client: 220.181.51.147, server: 107.170.215.138:8001, request: GE$ 2014/03/28 07:32:54 [error] 13768#0: *12 connect() failed (111: Connection refused) while connecting to upstream, client: 220.181.51.140, server: 107.170.215.138:8001, request: GE$ 2014/03/28 07:45:33 [error] 13768#0: *14 connect() failed (111: Connection refused) while connecting to upstream, client: 220.181.51.147, server: 107.170.215.138:8001, request: GE$ 2014/03/28 07:49:52 [error] 13768#0: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 81.171.52.4, server: 107.170.215.138:8001, request: GET h$ 2014/03/28 07:52:08 [error] 13768#0: *19 connect() failed (111: Connection refused) while connecting to upstream, client: 189.114.248.181, server: 107.170.215.138:8001, request: H$ 2014/03/28 07:53:24 [error] 13768#0: *21 connect() failed (111: Connection refused) while connecting to upstream, client: 61.135.190.70, server: 107.170.215.138:8001, request: GET$ 2014/03/28 08:11:36 [error] 13768#0: *23 connect() failed (111: Connection refused) while connecting to upstream, client: 61.135.190.198, server: 107.170.215.138:8001, request: GE$ 2014/03/28 11:58:37 [error] 13768#0: *25 connect() failed (111: Connection refused) while connecting to upstream, client: 61.135.190.70, server: 107.170.215.138:8001, request: GET$ 2014/03/28 12:16:12 [error] 13768#0: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 61.135.190.70, server: 107.170.215.138:8001, request: GET$ $t: GET / HTTP/1.0, upstream: http://127.0.0.1:8001/;, host: 107.170.215.138, referrer: http://www.baidu.com/s?wd=www; 2014/03/28 12:50:56 [error] 13768#0: *31 connect() failed (111: Connection refused) while connecting to upstream, client: 18.242.7.117, server: 107.170.215.138:8001, request: HEAD$ 2014/03/28 14:06:02 [error] 13768#0: *33 connect() failed (111: Connection refused) while connecting to upstream, client: 202.53.8.82, server: 107.170.215.138:8001, request: GET $t: GET / HTTP/1.0, upstream: http://127.0.0.1:8001/;, host: 107.170.215.138, referrer: http://www.baidu.com/s?wd=www; On Friday, March 28, 2014 12:41:57 PM UTC-6, Kyle Pennell wrote: Tried each combo and none worked...hmmm... On Friday, March 28, 2014 12:35:39 PM UTC-6, Kyle Pennell wrote: Thanks for responding. Double checking I understand: location /static/ { alias /opt/myenv/mezzanine_app/static/; } Should be: location /static/ { alias /opt/myenv/mezzanine_app/static; } Or? location /static/ { alias /opt/myenv/mezzanine_app; } On Thursday, March 27, 2014 8:45:04 PM UTC-6, Matthew Summers wrote: Remove the trailing slash on your location alias directive. On Thu, Mar 27, 2014 at 6:32 PM, Kyle Pennell kpen...@gmail.com wrote: Ah! Will try pulling that out. Thanks for the help, Stephen. On Thu, Mar 27, 2014 at 5:28 PM, Stephen McDonald st...@jupo.org wrote: On Fri, Mar 28, 2014 at 8:46 AM, Kyle Pennell kpen...@gmail.com wrote: Triple checked my settings and can't find why my static files aren't loading. Nginx and Gunicorn are installed and working. Symbolic Link between sites-available and sites-enabled is made ── sites-available │ ├── mezzanine_app │ └── myproject ├── sites-enabled │ ├── ahalearning - ../sites-available/ahalearning │ ├── mezzanine_app - ../sites-available/mezzanine_app │ └── myproject - ../sites-available/myproject Collectstatic has been run and static files are in place: ├── deploy │ ├── crontab │ ├── gunicorn.conf.py │ ├── live_settings.py │ ├── nginx.conf │ └── supervisor.conf ├── dev.db ├── fabfile.py ├── __init__.py ├── __init__.pyc ├── local_settings.py ├── local_settings.pyc ├── manage.py ├── requirements.txt ├── settings.py ├── settings.pyc ├── static │ ├── admin │ ├── css │ ├── filebrowser │ ├── fonts │ ├── grappelli │ ├── img │ ├── js │ ├── media │ ├── mezzanine │ ├── robots.txt │ └── test ├── urls.py ├── urls.pyc └── wsgi.py STATIC_ROOT in settings.py points to the right folder (opt/myenv/mezzanine_app/static/) My nginx server settings point to the right files: /etc/nginx/sites-available
Re: [mezzanine-users] Re: Subclass model of form page
Hi, here it's my custom model https://gist.github.com/anonymous/9840574 for the space between the _ I suppose it's render error of the google group form If you have any idea ? Thank you Le vendredi 28 mars 2014 11:15:49 UTC+1, Luc Milland a écrit : Hello, you should use gist or some other handy way to post your code and post the whole thing, so we don't have to guess the rest. For instance, here you use the _ function which is usually a shortcut for ugettext ( https://docs.djangoproject.com/en/dev/topics/i18n/translation/#standard-translation) . If this is the way you use it, why is there a space between '_' and '(' ? regards, Luc Le vendredi 28 mars 2014 à 01:42 -0700, Cajoline a écrit : I tried to create a subclass of Form model like this: class ContactPage (Page, Form): Representing A page of the home page RichTextField address = (_ ('Info'), null = True, blank = True) class Meta: verbose_name = _ (Form Info) verbose_name_plural = _ (Form Info) But I get the following error: *TypeError: Error When calling the metaclass bases * * Can not create a consistent method resolution * Do you have any idea? thank you Le mercredi 26 mars 2014 20:01:44 UTC+1, Cajoline a écrit : Hello, I would like to create a subclass model of form page, but I can not add custom fields. Create a subclass of a normal page I have no problem but for the form page I can not do it, because the fields to create form is not displayed Would you have an example of a subclass of page form Thank you -- 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: Subclass model of form page
Hey Cajoline, I would use field injection to add the new fields you want to the current form class, https://mezzanine.jupo.org/docs/model-customization.html#field-injection On Fri, Mar 28, 2014 at 5:23 PM, Cajoline cont...@circonflex.net wrote: I'll rephrase what I'd like to do :) I would like to create my own custom content form page, to add one or two additional fields. I tried to inherit the Page model but I have form fields that appear etc (this is normal) and if I try to inherit the model Form I get an error because apparently I can not get there directly. My question is how can I do to have inherited Page content model with the ability to create form fields and options that exist in the Forms pages thank you, Regards -- 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.
[mezzanine-users] Re: form file field upload error
This is finally fixed in https://github.com/stephenmcd/mezzanine/commit/9527662dc3c7d7dfaa6397e01be9ebc999f2646f On Friday, 1 February 2013 14:17:11 UTC+11, Josh Cartmell wrote: I'm getting the following error when I try to submit a Mezzanine form that includes two larger files (the files are about 1.3mb each): Traceback (most recent call last): File .../lib/python2.7/site-packages/django/core/handlers/base.py, line 105, in get_response response = middleware_method(request, callback, callback_args, callback_kwargs) File ...lib/python2.7/site-packages/Mezzanine-1.2.3-py2.7.egg/mezzanine/pages/middleware.py, line 80, in process_view processor_response = processor(request, page) File ...lib/python2.7/site-packages/Mezzanine-1.2.3-py2.7.egg/mezzanine/forms/page_processors.py, line 58, in form_processor f.seek(0) ValueError: I/O operation on closed file After submitting the serving produces a 500 error. The form entries, and files end up in the database, but no emails are sent to people who should get copies. Anyone have any tips or pointers? Thanks, Josh -- 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.