[mezzanine-users] Re: Deploying vennila mezzanine site on Digital Ocean
Glad it worked. But how did you restart? Restarting the service only didn't work for me. Only overall reboot of server did it for me. -- 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: Field Injected: Column cannot be null
Instead of providing the null and blank parameters, you should take them out and maybe you should use the default='' -- 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: Python 3 and fabric
I also realized that Fabric doesn't work with Python 3.X and have been working on building a server the hard way the last few days. It actually hasn't been to bad - I've spent as much time working on it as I did fighting with various deployment tools. The trick has been integrating a bunch of disparate guides with Django and Mezzanine. I've taken pretty good notes so far I think. Would anybody be interested in a detailed tutorial tailored to Mezzanine as an alternative to the official "deploy with Fabric" docs? I'm still pretty new at this, so anybody interested in checking and contributing notes would be welcome as well! On Tuesday, November 10, 2015 at 1:42:03 PM UTC-6, Joshua Glenn wrote: > > I have installed mezzanine and deployed a working test website with it > (the hard way). But I wanted to check into the fabric deployment tools that > are included with mezzanine. But, I am using Python 3. Does fabric even > work with Py3? > -- 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: Deploying vennila mezzanine site on Digital Ocean
Yes,the supervisor just needed a restart. 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: Field Injected: Column cannot be null
Something I just noticed. When I save a blog post with a game_date, and then go back to it, remove the date and save it, it works fine. However when creating it with out the game_date it gives me that cannot be null error. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Field Injected: Column cannot be null
Yes -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Field Injected: Column cannot be null
Did you run the migration after making the field non-required? -- 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] Field Injected: Column cannot be null
So i injected a field and im trying to make it optional so i did something like this... *EXTRA_MODEL_FIELDS = (* * ( "mezzanine.blog.models.BlogPost.game_date",* *"DateTimeField",* *("Game Date",),* *{"null": True, "blank": True},* *),* *)* Now when I do the blog post and leave that field empty I get *(1048, "Column 'game_date' cannot be null")* Can anyone help me out? -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Re: Deploying vennila mezzanine site on Digital Ocean
If thats the case, maybe you only need to restart the supervisor service, instead of the whole server. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Re: Deploying vennila mezzanine site on Digital Ocean
I guess same thing happened to me, and I spent more than a day figuring out. After deploying for the first time, please *RESTART* ($ sudo reboot) your server. If I'm right, it should solve your problem. For whatever reasons, after deploying, supervisor doesn't kick in automatically, and the gunicorn.conf.py? (mine complained of missing gunicorn.sock) file is created on the fly, thus it wouldn't exist unless the supervisor whatever is running. If it doesn't work, then our problems might be different. On Thursday, December 3, 2015 at 3:28:08 PM UTC, Klerp wrote: > > Even on Ubuntu 14.04.3 x32 I get the same error : 502 bad gateway : nginx > / 1.4.6 (Ubuntu) and the same cause > > $cat logs/deploytest_supervisor > Error: 'gunicorn.conf.py' doesn't exist > > > -- 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 have disappeared
I guess you've in one way or the other, deleted the media folder, or a folder holding the uploaded images relating to the missing ones. -- 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 have disappeared
Have you changed anything in your settings.py file recently? Den torsdag 3 december 2015 kl. 20:40:36 UTC+1 skrev Alexey Kutalo: > > Hi. > > En HTML I have only: > > But if I load in the usual manner, such as use Bsbanners, it display good. > > Does anybody have any idea what could have happened? > > > -- 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] Images have disappeared
Hi. En HTML I have only: But if I load in the usual manner, such as use Bsbanners, it display good. Does anybody have any idea what could have happened? -- 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: Deploying vennila mezzanine site on Digital Ocean
Even on Ubuntu 14.04.3 x32 I get the same error : 502 bad gateway : nginx / 1.4.6 (Ubuntu) and the same cause $cat logs/deploytest_supervisor Error: 'gunicorn.conf.py' doesn't exist -- 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: Deploying vennila mezzanine site on Digital Ocean
Thanks. I chose Debian as http://mezzanine.jupo.org/docs/deployment.html#fabric mentioned the bundled was for debian. I've referred http://bitofpixels.com/blog/deploying-mezzanine-to-digital-ocean-using-the-included-fabfile/ and http://bscientific.org/blog/mezzanine-fabric-git-vagrant-joy/ and have tried different things but I thought the best way would be to follow latest documentation and get the basic one working. I will try on Ubuntu and post my results. > > > -- 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 cartridge custom theme not loading
I have figured it out i needed to update my template_dirs with my app directory. Thanks! On Thursday, December 3, 2015 at 2:51:38 PM UTC+1, christopher fosipo Ajulo wrote: > > hello, Im new to mezzanine and somewhat a bit familiar to django, so i am > created a new app a new app theme > > INSTALLED_APPS = ( > "theme", > "django.contrib.admin", > "django.contrib.auth", > "django.contrib.contenttypes", > "django.contrib.redirects", > "django.contrib.sessions", > "django.contrib.sites", > > did the collecttemplates procedure and copied the the generated > templates/base.html to theme/templates/base.html > edited my base.html to the custom template changing the css path using > the find and replace method but nothing seems to change on the site, it's > still using the default bootstrap, please some help here. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] mezzanine cartridge custom theme not loading
hello, Im new to mezzanine and somewhat a bit familiar to django, so i am created a new app a new app theme INSTALLED_APPS = ( "theme", "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.redirects", "django.contrib.sessions", "django.contrib.sites", did the collecttemplates procedure and copied the the generated templates/base.html to theme/templates/base.html edited my base.html to the custom template changing the css path using the find and replace method but nothing seems to change on the site, it's still using the default bootstrap, please some help here. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Deploying vennila mezzanine site on Digital Ocean
Since you're just testing things out, could you rebuild the droplet with Ubuntu 14.04 and try again? My guess is that something fails because of Debian, but I could be wrong. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[mezzanine-users] Deploying vennila mezzanine site on Digital Ocean
Hello, Since I ran into trouble trying to deploy my work, I wanted to try just the bare minimum first. I did the following as documented but get Error: 'gunicorn.conf.py' doesn't exist. The exact steps I followed are below. Could you help me with anything I missed or the right approach in resolving the issue? Thanks. At digital ocean: Gave a droplet hostname chose debian 7.0 X 32 bit create At networking->domains map A record @ with droplet IP SSH droplet-ip: Logged in and changed admin password On my system: virtualenv activate pip install mezzanine pip install fabric mezzanine-project deploytest python manage.py createdb --noinput python manage.py runserver ** all well locally login with default admin ** Uncomment fabric in local_setting.py. Those changed in bold ### # DEPLOY SETTINGS # ### # Domains for public site ALLOWED_HOSTS = ["mysitename"] # These settings are used by the default fabfile.py provided. # Check fabfile.py for defaults. FABRIC = { "DEPLOY_TOOL": "rsync", # Deploy with "git", "hg", or "rsync" "SSH_USER": "user1", # VPS SSH username "HOSTS": ["IP address of my droplet from digital ocean"], # The IP address of your VPS "DOMAINS": ALLOWED_HOSTS, # Edit domains in ALLOWED_HOSTS "REQUIREMENTS_PATH": "requirements.txt", # Project's pip requirements "LOCALE": "en_US.UTF-8", # Should end with ".UTF-8" "DB_PASS": "somepassword", # Live database password "ADMIN_PASS": "somepassword", # Live admin user password "SECRET_KEY": SECRET_KEY, "NEVERCACHE_KEY": NEVERCACHE_KEY, } $ fab secure After all setup Security steps completed. Log in to the server as 'user1 from now on. Done. $ fab all After all setup “ .. --- restart --- supervisorctl update -> Done. Disconnecting from ... done. “ ping ip and ping mysitename works but accessing mysitename gives ‘502 Bad Gateway’ ssh and login to new ip with user1. /home/user1 has logs and mezzanine folders and logs has deploytest_error_nginx.log deploytest_supervisor $cat logs/deploytest_supervisor Error: 'gunicorn.conf.py' doesn't exist but $ find . -name gunicorn.conf.py ./mezzanine/deploytest/gunicorn.conf.py $ cat logs/deploytest_error_nginx.log 2015/12/03 11:15:33 [crit] 22044#0: *1 connect() to unix:/home/user1/mezzanine/deploytest/gunicorn.sock failed (2: No such file or directory) while connecting to upstream, client: xyz , server: mysitename, request: "GET / HTTP/1.1", upstream: "http://unix:/home/user1/mezzanine/deploytest/gunicorn.sock:/";, host: "mysitename" -- 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.