Fresh Install - Error when executing python migrate.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Libravatar (obsolete) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello Everyone,
I'm trying to setup a libravatar service for my firm but i have issue during the setup.
My setup source is the following url : https:/
when i execute python manage.py migrate i get the following.
`python manage.py migrate
Operations to perform:
Synchronize unmigrated apps: tools, account, messages, public
Apply all migrations: contenttypes, django_openid_auth, auth, sessions
Synchronizing apps without migrations:
Creating tables...
Creating table account_photo
Creating table account_
Creating table account_
Creating table account_
Creating table account_
Creating table account_openidnonce
Creating table account_
Running deferred SQL...
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_
File "/usr/lib/
utility.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
output = self.handle(*args, **options)
File "/usr/lib/
created_models = self.sync_
File "/usr/lib/
cursor.
File "/usr/lib/
return super(CursorDeb
File "/usr/lib/
return self.cursor.
File "/usr/lib/
six.
File "/usr/lib/
return self.cursor.
django.
`
Here is my python migrate diffsettings:
`ADMINS = [('Admin', '<email address hidden>')]
ADMIN_EMAIL = '<email address hidden>' ###
ADMIN_MEDIA_PREFIX = '/media/' ###
ALLOWED_HOSTS = ['avatar.toto.fr']
AUTHENTICATION_
AUTH_LDAP_
AUTH_LDAP_
AUTH_LDAP_
AUTH_LDAP_
AUTH_LDAP_
AVATAR_DEFAULT_SIZE = 80 ###
AVATAR_MAX_SIZE = 512 ###
AVATAR_MIN_SIZE = 1 ###
AVATAR_
AVATAR_ROOT = '/var/www/
AVATAR_URL = 'http://
BASE_DIR = '/var/www/
CACERTS = '/etc/ssl/
CDN_SYNC_DELAY = 1800 ###
CONTACT_US = 'https:/
DATABASES = {'default': {'ENGINE': 'django.
DEBUG = True
DEFAULT_FROM_EMAIL = '<email address hidden>'
DEFAULT_PHOTO = '/img/nobody.png' ###
DEV_EMAIL = '<email address hidden>' ###
DISABLE_SIGNUP = False ###
EXPORT_FILES_ROOT = '/var/www/
EXPORT_FILES_URL = 'https:/
FILE_UPLOAD_
GEARMAN_SERVERS = ['localhost'] ###
GEARMAN_
INSTALLED_APPS = ('django.
JPEG_QUALITY = 85 ###
LANGUAGES = (('ca', 'Catalan'), ('cs', 'Czech'), ('de', 'German'), ('en', 'English'), ('en_GB', 'British English'), ('es', 'Spanish'), ('eu', 'Basque'), ('fr', 'French'), ('it', 'Italian'), ('ja', 'Japanese'), ('nl', 'Dutch'), ('pt_BR', 'Brazilian Portuguese'), ('ru', 'Russian'), ('sq', 'Albanian'), ('tr', 'Turkish'), ('uk', 'Ukrainian'))
LIBRAVATAR_VERSION = '0.1' ###
LOGIN_REDIRECT_URL = '/account/profile/'
LOGIN_URL = '/account/login/'
MAX_NUM_PHOTOS = 4 ###
MAX_NUM_
MAX_PHOTO_SIZE = 10485760 ###
MEDIA_ROOT = '/var/www/
MEDIA_URL = 'http://
MIDDLEWARE_CLASSES = ('django.
OPENID_CREATE_USERS = True ###
PASSWORD_HASHERS = ('django.
READY_FILES_ROOT = '/var/www/
REQUIRED_DOMAIN = 'toto.fr' ###
ROOT_URLCONF = 'libravatar.urls' ###
SECRET_KEY = '+%&mv-
SECURE_AVATAR_URL = 'https:/
SECURE_MEDIA_URL = 'https:/
SECURITY_URL = 'https:/
SERVER_EMAIL = '<email address hidden>'
SESSION_
SESSION_
SESSION_SERIALIZER = 'django.
SETTINGS_MODULE = 'libravatar.
SITE_NAME = 'avatar.toto.fr' ###
SITE_URL = 'https:/
SUPPORT_EMAIL = '<email address hidden>' ###
TEMPLATE_
TEMPLATE_DEBUG = True
TEMPLATE_DIRS = ('/var/
TIME_ZONE = 'UTC'
UPLOADED_FILES_ROOT = '/var/www/
UPLOADED_FILES_URL = 'https:/
USER_FILES_ROOT = '/var/www/
USER_FILES_URL = 'https:/
USE_L10N = True
USE_TZ = True`
May it be related that i had activate the ldap settings too soon ? I tried with the default settings only with change in the postgesql username and i still get this.
My OS is ubuntu Xenial.
Please let me know.
Sorry for the delay, I haven't had time yet to reproduce your problem in an Ubuntu Xenial virtual machine.
It does look like there is a problem with our instructions though. I will try to do a full run-through again on Ubuntu to see if there's anything else that might fail.