I made some code public and added this post today: http://www.oceanatech.com/blog/running-mezzanine-django-on-heroku-and-locally-example-code/
Hope it helps. If you post your code and provide specific errors I'd be happy to help more. On Thu, Oct 9, 2014 at 7:48 AM, Ben Havilland <[email protected]> wrote: > Do you have some code to take a look at? Are you able to run the project > locally? Have you done a mezzanine deployment w/o heroku before or is this > a first attempt all together? Cheers > On Oct 2, 2014 3:49 AM, "Guillermo Valle" <[email protected]> wrote: > >> I am also getting this same error. And Ben's tutorial hasn't solved it >> for me (I haven't followed it fully because I'm serving statics with Heroku >> not S3, but have followed everything that I thought would apply). The >> location of LOCAL and DYNAMIC SETTINGS doesn't seem to fix it for me :( Any >> other ideas? >> >> On Tuesday, March 25, 2014 7:36:26 PM UTC+1, Kyle Pennell wrote: >>> >>> Hey all, >>> Would love to get some help here if you could. Hit the wall on what I >>> can do/try. >>> >>> I'm just trying to deploy a basic mezzanine setup on Heroku. I've tried >>> Josh's tutorial <https://gist.github.com/joshfinnie/4046138>, Ben's >>> Tutorial >>> <http://www.benhavilland.com/blog/deploying-mezzanine-on-heroku/>, >>> searched Stackoverflow, here, etc. Going on 10 hours trying. Hit unique >>> and interesting bugs on each one. >>> >>> So I'm trying Steven Elliot's tutorial >>> <http://stevenelliottjr.github.io/>. I reasoned that it was the newest >>> (15 days ago) and might work better. He's been extremely helpful on >>> Twitter. >>> >>> Hit this roadblock here: >>> >>> (mezzenv)kpennell@vm-0:~/mezz-site$ python manage.py >>>>> collectstatic >>>>> >>>>> /home/kpennell/mezz-site/mezzenv/local/lib/python2.7/ >>>>> site-packages/mezzanine/utils/conf.py:51: UserWarning: You >>>>> haven't defined the ALLOWED_HOSTS settings, which Django 1.5 requires >>>>> . Will fall back to the domains configured as sites. >>>>> warn("You haven't defined the ALLOWED_HOSTS settings, which " >>>>> /home/kpennell/mezz-site/mezzenv/local/lib/python2.7/ >>>>> site-packages/mezzanine/utils/conf.py:59: UserWarning: TIME_ >>>>> ZONE setting is not set, using closest match: Etc/UTC >>>>> warn("TIME_ZONE setting is not set, using closest match: %s" % tz) >>>>> Traceback (most recent call last): >>>>> File "manage.py", line 29, in <module> >>>>> execute_from_command_line(sys.argv) >>>>> File "/home/kpennell/mezz-site/mezzenv/local/lib/ >>>>> python2.7/site-packages/django/core/management/__init_ >>>>> _.py", line 399, in execute_from_command_line >>>>> utility.execute() >>>>> File "/home/kpennell/mezz-site/mezzenv/local/lib/ >>>>> python2.7/site-packages/django/core/management/__init_ >>>>> _.py", line 392, in execute >>>>> self.fetch_command(subcommand).run_from_argv(self.argv) >>>>> File "/home/kpennell/mezz-site/mezzenv/local/lib/ >>>>> python2.7/site-packages/django/core/management/__init_ >>>>> _.py", line 261, in fetch_command >>>>> commands = get_commands() >>>>> File "/home/kpennell/mezz-site/mezzenv/local/lib/ >>>>> python2.7/site-packages/django/core/management/__init_ >>>>> _.py", line 107, in get_commands >>>>> apps = settings.INSTALLED_APPS >>>>> File "/home/kpennell/mezz-site/mezzenv/local/lib/ >>>>> python2.7/site-packages/django/conf/__init__.py", >>>>> line 54, in __getattr__ >>>>> self._setup(name) >>>>> File "/home/kpennell/mezz-site/mezzenv/local/lib/ >>>>> python2.7/site-packages/django/conf/__init__.py", line 49, in _setup >>>>> self._wrapped = Settings(settings_module) >>>>> File "/home/kpennell/mezz-site/mezzenv/local/lib/ >>>>> python2.7/site-packages/django/conf/__init__.py", >>>>> line 128, in __init__ >>>>> mod = importlib.import_module(self.SETTINGS_MODULE) >>>>> File "/home/kpennell/mezz-site/mezzenv/local/lib/ >>>>> python2.7/site-packages/django/utils/importlib.py", >>>>> line 40, in import_module >>>>> __import__(name) >>>>> File "/home/kpennell/mezz-site/settings.py", line 442, in <module> >>>>> set_dynamic_settings(globals()) >>>>> File "/home/kpennell/mezz-site/mezzenv/local/lib/ >>>>> python2.7/site-packages/mezzanine/utils/conf.py", >>>>> line 184, in set_dynamic_settings >>>>> shortname = db["ENGINE"].split(".")[-1] >>>>> KeyError: u'ENGINE' >>>>> >>>> >>> So something with collect static doesn't work. Something to do with >>> set_dynamic_settings. I copied his tut verbatim and cloned the project he >>> gave me and both hit the snag there. >>> >>> I can post the code here if you want but thought pushing to github would >>> be easier: >>> >>> https://github.com/kpennell/mezz-try >>> >>> >>> >>> Any ideas? >>> >>> >>> -- >> 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 [email protected]. >> 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
