Re: [mezzanine-users] Problem deploying Mezzanine on DigitalOcean

2016-09-07 Thread Eduardo Rivas
It looks like your theme application is lacking migrations. You'll need to 
create those if you want to use Mezzanine's models as dependencies of your 
app.

python manage.py makemigrations theme
python manage.py migrate theme

-- 
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] Problem deploying Mezzanine on DigitalOcean

2016-09-07 Thread Arti K
I have the exact same error - 

*Operations to perform:*

*  Synchronize unmigrated apps: *staticfiles, boot, filebrowser_safe, 
sitemaps, theme, grappelli_safe

*  Apply all migrations: *core, redirects, django_comments, sessions, 
admin, twitter, galleries, sites, auth, blog, generic, contenttypes, conf, 
forms, pages

*Synchronizing apps without migrations:*

  Creating tables...

Creating table theme_homepage

Creating table theme_slide

Creating table theme_iconblurb

Creating table theme_portfolio

Running deferred SQL...

Traceback (most recent call last):

  File "manage.py", line 29, in 

execute_from_command_line(sys.argv)

  File 
"/AOM/wisenv/lib/python2.7/site-packages/Django-1.8.4-py2.7.egg/django/core/management/__init__.py",
 
line 338, in execute_from_command_line

utility.execute()

  File 
"/AOM/wisenv/lib/python2.7/site-packages/Django-1.8.4-py2.7.egg/django/core/management/__init__.py",
 
line 330, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

  File 
"/AOM/wisenv/lib/python2.7/site-packages/Django-1.8.4-py2.7.egg/django/core/management/base.py",
 
line 393, in run_from_argv

self.execute(*args, **cmd_options)

  File 
"/AOM/wisenv/lib/python2.7/site-packages/Django-1.8.4-py2.7.egg/django/core/management/base.py",
 
line 444, in execute

output = self.handle(*args, **options)

  File 
"/AOM/wisenv/lib/python2.7/site-packages/Django-1.8.4-py2.7.egg/django/core/management/commands/migrate.py",
 
line 179, in handle

created_models = self.sync_apps(connection, 
executor.loader.unmigrated_apps)

  File 
"/AOM/wisenv/lib/python2.7/site-packages/Django-1.8.4-py2.7.egg/django/core/management/commands/migrate.py",
 
line 318, in sync_apps

cursor.execute(statement)

  File 
"/AOM/wisenv/lib/python2.7/site-packages/Django-1.8.4-py2.7.egg/django/db/backends/utils.py",
 
line 79, in execute

return super(CursorDebugWrapper, self).execute(sql, params)

  File 
"/AOM/wisenv/lib/python2.7/site-packages/Django-1.8.4-py2.7.egg/django/db/backends/utils.py",
 
line 64, in execute

return self.cursor.execute(sql, params)

  File 
"/AOM/wisenv/lib/python2.7/site-packages/Django-1.8.4-py2.7.egg/django/db/utils.py",
 
line 97, in __exit__

six.reraise(dj_exc_type, dj_exc_value, traceback)

  File 
"/AOM/wisenv/lib/python2.7/site-packages/Django-1.8.4-py2.7.egg/django/db/backends/utils.py",
 
line 62, in execute

return self.cursor.execute(sql)

django.db.utils.ProgrammingError: relation "pages_page" does not exist

All my packages are up to date but I have no idea how to progress next. 
Could you please help ?
>
>

-- 
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] Problem deploying Mezzanine on DigitalOcean

2016-01-28 Thread George M
I've upgraded Mezzanine. 
New errors. Trying to fix them first.
Thanks.

On Thursday, January 28, 2016 at 12:01:36 PM UTC+3, George M wrote:
>
> Hi Eduardo,
> Methinks you're right. 
> The problem seems to be that pages_page has an unapplied migration which 
> also isnt working. I've been using mysql locally. 
> I've switched to postgresql and this is my new error.
> Creating tables...
> Creating table pages_page
> Creating table pages_richtextpage
> Creating table pages_link
> Running deferred SQL...
> Traceback (most recent call last):
>   File "manage.py", line 14, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 338, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 330, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 390, in run_from_argv
> self.execute(*args, **cmd_options)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 441, in execute
> output = self.handle(*args, **options)
>   File 
> "/usr/local/lib/python2.7/dist-packages/mezzanine/core/management/commands/createdb.py",
>  
> line 60, in handle
> interactive=self.interactive)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
> line 120, in call_command
> return command.execute(*args, **defaults)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
> line 441, in execute
> output = self.handle(*args, **options)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py",
>  
> line 179, in handle
> created_models = self.sync_apps(connection, 
> executor.loader.unmigrated_apps)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py",
>  
> line 317, in sync_apps
> cursor.execute(statement)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 
> 79, in execute
> return super(CursorDebugWrapper, self).execute(sql, params)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 
> 64, in execute
> return self.cursor.execute(sql, params)
>   File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 
> 97, in __exit__
> six.reraise(dj_exc_type, dj_exc_value, traceback)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 
> 62, in execute
> return self.cursor.execute(sql)
> django.db.utils.ProgrammingError: relation "django_site" does not exist
>
> Is it a problem with my mezzanine installation? From here 
> https://github.com/django/django-contrib-comments/issues/30
>
> On Wednesday, January 27, 2016 at 7:12:21 PM UTC+3, Eduardo Rivas wrote:
>>
>> Never mind, I think the problem is that you're not using migrations with 
>> your onepage app. I believe that any app that depends on another app 
>> that uses migrations (like mezzanine.pages) must also use migrations 
>> itself. 
>>
>

-- 
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] Problem deploying Mezzanine on DigitalOcean

2016-01-28 Thread George M
Hi Eduardo,
Methinks you're right. 
The problem seems to be that pages_page has an unapplied migration which 
also isnt working. I've been using mysql locally. 
I've switched to postgresql and this is my new error.
Creating tables...
Creating table pages_page
Creating table pages_richtextpage
Creating table pages_link
Running deferred SQL...
Traceback (most recent call last):
  File "manage.py", line 14, in 
execute_from_command_line(sys.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 338, in execute_from_command_line
utility.execute()
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 390, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 441, in execute
output = self.handle(*args, **options)
  File 
"/usr/local/lib/python2.7/dist-packages/mezzanine/core/management/commands/createdb.py",
 
line 60, in handle
interactive=self.interactive)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 120, in call_command
return command.execute(*args, **defaults)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 441, in execute
output = self.handle(*args, **options)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py",
 
line 179, in handle
created_models = self.sync_apps(connection, 
executor.loader.unmigrated_apps)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py",
 
line 317, in sync_apps
cursor.execute(statement)
  File 
"/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 
79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
  File 
"/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 
64, in execute
return self.cursor.execute(sql, params)
  File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 
97, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
  File 
"/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 
62, in execute
return self.cursor.execute(sql)
django.db.utils.ProgrammingError: relation "django_site" does not exist

Is it a problem with my mezzanine installation? From here 
https://github.com/django/django-contrib-comments/issues/30

On Wednesday, January 27, 2016 at 7:12:21 PM UTC+3, Eduardo Rivas wrote:
>
> Never mind, I think the problem is that you're not using migrations with 
> your onepage app. I believe that any app that depends on another app 
> that uses migrations (like mezzanine.pages) must also use migrations 
> itself. 
>

-- 
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] Problem deploying Mezzanine on DigitalOcean

2016-01-28 Thread Eduardo Rivas
Glad you could move forward. Have you created the migrations for the
onepage app? I don't think you'll be able to do much without that.

-- 
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] Problem deploying Mezzanine on DigitalOcean

2016-01-27 Thread Eduardo Rivas
Never mind, I think the problem is that you're not using migrations with
your onepage app. I believe that any app that depends on another app
that uses migrations (like mezzanine.pages) must also use migrations itself.

-- 
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] Problem deploying Mezzanine on DigitalOcean

2016-01-27 Thread George M
I've been trying all day to deploy my first mezzanine site on DO.
All seemed to be going well until the deployment gets to the database.
Somehow this error will not go away.

[49.109.99.39] out: Operations to perform:
[49.109.99.39] out:   Synchronize unmigrated apps: staticfiles, boot, 
filebrowser_safe, sitemaps, compressor, onepage, grappelli_safe
[49.109.99.39] out:   Apply all migrations: core, redirects, 
django_comments, sessions, admin, twitter, galleries, onepage, auth, sites, 
blog, generic, contenttypes, conf, forms, pages
[49.109.99.39] out: Synchronizing apps without migrations:
[49.109.99.39] out:   Creating tables...
[49.109.99.39] out: Creating table onepage_homepage
[49.109.99.39] out: Creating table onepage_homesection
[49.109.99.39] out: Creating table onepage_about
[49.109.99.39] out: Creating table onepage_aboutsection
[49.109.99.39] out: Creating table onepage_services
[49.109.99.39] out: Creating table onepage_servicesection
[49.109.99.39] out: Creating table onepage_servicesubsection
[49.109.99.39] out: Creating table onepage_blog
[49.109.99.39] out: Creating table onepage_blogimage
[49.109.99.39] out: Creating table onepage_blogslide
[49.109.99.39] out: Creating table onepage_testimonial
[49.109.99.39] out: Creating table onepage_testimonialslide
[49.109.99.39] out: Creating table onepage_contact
[49.109.99.39] out: Creating table onepage_contactsection
[49.109.99.39] out: Running deferred SQL...
[49.109.99.39] out: Traceback (most recent call last):
[49.109.99.39] out:   File "/home/mucheru/mezzanine/akia/manage.py", line 
14, in 
[49.109.99.39] out: execute_from_command_line(sys.argv)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 338, in execute_from_command_line
[49.109.99.39] out: utility.execute()
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 330, in execute
[49.109.99.39] out: 
self.fetch_command(subcommand).run_from_argv(self.argv)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/core/management/base.py",
 
line 390, in run_from_argv
[49.109.99.39] out: self.execute(*args, **cmd_options)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/core/management/base.py",
 
line 441, in execute
[49.109.99.39] out: output = self.handle(*args, **options)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/mezzanine/core/management/commands/createdb.py",
 
line 60, in handle
[49.109.99.39] out: interactive=self.interactive)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 120, in call_command
[49.109.99.39] out: return command.execute(*args, **defaults)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/core/management/base.py",
 
line 441, in execute
[49.109.99.39] out: output = self.handle(*args, **options)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py",
 
line 179, in handle
[49.109.99.39] out: created_models = self.sync_apps(connection, 
executor.loader.unmigrated_apps)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py",
 
line 317, in sync_apps
[49.109.99.39] out: cursor.execute(statement)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/db/backends/utils.py",
 
line 64, in execute
[49.109.99.39] out: return self.cursor.execute(sql, params)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/db/utils.py",
 
line 97, in __exit__
[49.109.99.39] out: six.reraise(dj_exc_type, dj_exc_value, traceback)
[49.109.99.39] out:   File 
"/home/mucheru/.virtualenvs/akia/local/lib/python2.7/site-packages/django/db/backends/utils.py",
 
line 62, in execute
[49.109.99.39] out: return self.cursor.execute(sql)
[49.109.99.39] out: django.db.utils.ProgrammingError: relation "pages_page" 
does not exist


Fatal error: run() encountered an error (return code 1) while executing 
'/home/mucheru/.virtualenvs/akia/bin/python 
/home/mucheru/mezzanine/akia/manage.py createdb --noinput --nodata'

Any help 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/d/optout.