Closed helvrud closed 6 years ago
@helvrud What method did you use to install djangocms-lab-publications
? What output do you get when running pip freeze
?
I did pip install djangocms-lab-publications
then added INSTALLED_APPS = (
'taggit',
'taggit_helpers',
'cms_lab_publications',
'easy_thumbnails',
'filer',
'mptt',
) so my settings.py
import os
gettext = lambda s: s
DATA_DIR = os.path.dirname(os.path.dirname(__file__))
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'cv)2wme+1b=dp0o7h(xy9a#&qqm1o4%c-x_tn+aksjj-jo%((5'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = [ 'localhost']
# Application definition
ROOT_URLCONF = 'cucam.urls'
WSGI_APPLICATION = 'cucam.wsgi.application'
LANGUAGE_CODE = 'en'
TIME_ZONE = 'Europe/Prague'
USE_I18N = False
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.8/howto/static-files/
STATIC_URL = '/static/'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(DATA_DIR, 'media')
STATIC_ROOT = os.path.join(DATA_DIR, 'static')
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'cucam', 'static'),
)
SITE_ID = 1
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'cucam', 'templates'),],
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.i18n',
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.template.context_processors.media',
'django.template.context_processors.csrf',
'django.template.context_processors.tz',
'sekizai.context_processors.sekizai',
'django.template.context_processors.static',
'cms.context_processors.cms_settings',
'aldryn_boilerplates.context_processors.boilerplate',
],
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader',
'aldryn_boilerplates.template_loaders.AppDirectoriesLoader',
],
},
},
]
MIDDLEWARE_CLASSES = (
'cms.middleware.utils.ApphookReloadMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'cms.middleware.user.CurrentUserMiddleware',
'cms.middleware.page.CurrentPageMiddleware',
'cms.middleware.toolbar.ToolbarMiddleware',
'cms.middleware.language.LanguageCookieMiddleware'
)
INSTALLED_APPS = (
'djangocms_admin_style',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.sites',
'django.contrib.sitemaps',
'django.contrib.staticfiles',
'django.contrib.messages',
#~ 'cmsplugin_cascade',
'cms',
'menus',
'sekizai',
'treebeard',
'djangocms_text_ckeditor',
'filer',
'easy_thumbnails',
'djangocms_column',
'djangocms_link',
'cmsplugin_filer_file',
'cmsplugin_filer_folder',
'cmsplugin_filer_image',
'cmsplugin_filer_utils',
'djangocms_style',
'djangocms_snippet',
'djangocms_googlemap',
'djangocms_video',
#~ 'cmsplugin_bootstrap',
'aldryn_bootstrap3',
#~ 'djangocms_bootstrap4',
'aldryn_common',
'aldryn_boilerplates',
'aldryn_newsblog',
'aldryn_people',
'aldryn_reversion',
'parler',
'aldryn_translation_tools',
'sortedm2m',
'reversion',
#~ 'revision',
#~ 'twcarousel',
#~ 'bootstrap3',
'cucam',
'aldryn_apphooks_config',
'aldryn_categories',
'taggit',
'taggit_helpers',
'appconf',
'django_tablib',
'extended_choices',
'standard_form',
#~ 'cms_lab_carousel',
'cms_lab_publications',
'mptt',
#~ 'taggit',
'aldryn_events',
'bootstrap3',
)
ALDRYN_BOOTSTRAP3_CAROUSEL_STYLES = [
('feature', ('Featured Version')),
('standard', ('Standard Version')),
]
LANGUAGES = (
## Customize this
('en', gettext('en')),
('ru', gettext('ru')),
)
CMS_LANGUAGES = {
## Customize this
1: [
{
'hide_untranslated': False,
'code': 'ru',
'name': gettext('ru'),
'public': True,
'redirect_on_fallback': True,
},
],
'default': {
'hide_untranslated': False,
'redirect_on_fallback': True,
'public': True,
},
}
PARLER_LANGUAGES = {
1: (
{'code': 'en', },
{'code': 'ru', },
),
'default': {
'fallbacks': ['en', 'ru', ],
'hide_untranslated': False,
}
}
CMS_TEMPLATES = (
## Customize this
)
CMS_PERMISSION = True
CMS_PLACEHOLDER_CONF = {}
DATABASES = {
'default': {
'CONN_MAX_AGE': 0,
'ENGINE': 'django.db.backends.mysql',
'HOST': '127.0.0.1',
'NAME': 'cucam',
'PASSWORD': '***',
'PORT': '3306',
'USER': 'cucam'
},
'sqlite3': {
'CONN_MAX_AGE': 0,
'ENGINE': 'django.db.backends.sqlite3',
'HOST': 'localhost',
'NAME': 'project.db',
'PASSWORD': '',
'PORT': '',
'USER': ''
}
}
MIGRATION_MODULES = {
}
THUMBNAIL_PROCESSORS = (
'easy_thumbnails.processors.colorspace',
'easy_thumbnails.processors.autocrop',
'filer.thumbnail_processors.scale_and_crop_with_subject_location',
'easy_thumbnails.processors.filters'
)
# For easy_thumbnails to support retina displays (recent MacBooks, iOS)
THUMBNAIL_HIGH_RESOLUTION = True
THUMBNAIL_QUALITY = 95
THUMBNAIL_PRESERVE_EXTENSIONS = ('png', 'gif')
THUMBNAIL_SUBDIR = 'versions'
And this is mypip freeze
aldryn-apphooks-config==0.3.3
aldryn-boilerplates==0.7.7
aldryn-bootstrap3==1.2.2
aldryn-categories==1.1.0
aldryn-common==1.0.4
aldryn-events==2.1.0
aldryn-newsblog==2.0.0
aldryn-people==2.1.0
aldryn-reversion==1.1.0
aldryn-translation-tools==0.2.1
Babel==2.5.3
backport-collections==0.1
biopython==1.70
cmsplugin-filer==1.1.3
cmsplugin-svg==0.1.1
dj-database-url==0.4.2
Django==1.10.8
django-appconf==1.0.2
django-appdata==0.1.6
django-bootstrap3==9.1.0
django-braces==1.12.0
django-classy-tags==0.8.0
django-cms==3.5.0
django-countries==5.1.1
django-echoices==2.2.5
django-extended-choices==1.3
django-filer==1.3.0
django-formtools==2.1
django-mptt==0.8.7
django-ordered-model==1.4.3
django-parler==1.9.2
django-phonenumber-field==1.3.0
django-polymorphic==1.3
django-publications==0.6.2
django-publications-bootstrap==2.2.2
django-reversion==1.10.2
django-sekizai==0.10.0
django-sortedm2m==1.5.0
django-standard-form==1.1.1
django-tablib==3.2
django-taggit==0.22.2
django-taggit-anywhere==0.1.1
django-taggit-helpers==0.1.4
django-treebeard==4.2.0
djangocms-admin-style==1.2.7
djangocms-attributes-field==0.3.0
djangocms-column==1.7.0
djangocms-file==2.0.2
djangocms-googlemap==1.1.1
djangocms-installer==1.0.0
djangocms-lab-publications==0.1.5
djangocms-link==2.1.2
djangocms-picture==2.0.6
djangocms-snippet==2.0.0
djangocms-style==2.0.2
djangocms-text-ckeditor==3.5.3
djangocms-video==2.0.4
easy-thumbnails==2.4.2
et-xmlfile==1.0.1
future==0.16.0
html5lib==0.9999999
jdcal==1.3
lxml==4.1.1
mysqlclient==1.3.12
numpy==1.14.1
odfpy==1.3.6
openpyxl==2.5.0
phonenumbers==8.9.0
phonenumberslite==8.9.0
Pillow==5.0.0
pubmed-lookup==0.2.1
python-dateutil==2.6.1
python-slugify==1.2.0
pytz==2018.3
PyYAML==3.12
six==1.11.0
tablib==0.12.1
tzlocal==1.5.1
unicodecsv==0.14.1
Unidecode==0.4.21
uWSGI==2.0.16
xlrd==1.1.0
xlwt==1.3.0
xmltodict==0.11.0
YURL==0.13
Thanks @helvrud. Can you try re-installing from the development branch? Just install it on top of what you already have:
pip install --upgrade --no-deps git+http://github.com/mfcovington/djangocms-lab-publications.git@develop
Seems working now, thank you.
When I follow the instructions on installation I am getting ImportError: cannot import name 'TaggitCounter' I am using djangoCMS 3.5.0