We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm install -g bower npm install -g bower
from .base_settings import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'forum', 'USER': 'admin105', 'PASSWORD': 'yesadmin@816', 'HOST': '192.168.2.110', 'PORT': '5432', } } INSTALLED_APPS += [ 'el_pagination', 'easy_thumbnails', 'constance', 'constance.backends.database', 'djangobower', 'lbforum', 'lbattachment', 'lbutils', ] TEMPLATES[0]['OPTIONS']['context_processors'] += ['django.contrib.messages.context_processors.messages', ] PRJ_ROOT = BASE_DIR STATIC_URL = '/static/' STATIC_ROOT = os.path.join(PRJ_ROOT, 'collectedstatic') HOST_URL = '' MEDIA_URL_ = '/media/' MEDIA_URL = HOST_URL + MEDIA_URL_ MEDIA_ROOT = os.path.join(PRJ_ROOT, 'media') SIGNUP_URL = '/accounts/signup/' LOGIN_URL = '/accounts/login/' LOGOUT_URL = '/accounts/logout/' LOGIN_REDIRECT_URL = '/' CHANGE_PASSWORD_URL = '/accounts/password/change/' CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend' CONSTANCE_CONFIG = { 'forbidden_words': ('', 'Forbidden words', str), } ## setting for BOWER from django.conf.global_settings import STATICFILES_FINDERS STATICFILES_FINDERS += (('djangobower.finders.BowerFinder'),) BOWER_COMPONENTS_ROOT = PRJ_ROOT BOWER_INSTALLED_APPS = ( 'jquery#1.12', 'markitup#1.1.14', 'mediaelement#2.22.0', 'blueimp-file-upload#9.12.5', ) ## settings for BBcode BBCODE_AUTO_URLS = True #add allow tags HTML_SAFE_TAGS = ['embed'] HTML_SAFE_ATTRS = ['allowscriptaccess', 'allowfullscreen', 'wmode'] #add forbid tags HTML_UNSAFE_TAGS = [] HTML_UNSAFE_ATTRS = [] """ #default html safe settings acceptable_elements = ['a', 'abbr', 'acronym', 'address', 'area', 'b', 'big', 'blockquote', 'br', 'button', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt', 'em', 'font', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'ins', 'kbd', 'label', 'legend', 'li', 'map', 'menu', 'ol', 'p', 'pre', 'q', 's', 'samp', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'u', 'ul', 'var'] acceptable_attributes = ['abbr', 'accept', 'accept-charset', 'accesskey', 'action', 'align', 'alt', 'axis', 'border', 'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'checked', 'cite', 'clear', 'cols', 'colspan', 'color', 'compact', 'coords', 'datetime', 'dir', 'enctype', 'for', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'ismap', 'label', 'lang', 'longdesc', 'maxlength', 'method', 'multiple', 'name', 'nohref', 'noshade', 'nowrap', 'prompt', 'rel', 'rev', 'rows', 'rowspan', 'rules', 'scope', 'shape', 'size', 'span', 'src', 'start', 'summary', 'tabindex', 'target', 'title', 'type', 'usemap', 'valign', 'value', 'vspace', 'width', 'style'] """
--index-url https://pypi.tuna.tsinghua.edu.cn/simple django==1.10 django-bower lbforum postmarkup==1.2.2 # PyMySQL==0.9.2 psycopg2==2.7.5
from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^', include('lbforum.urls')), url(r'^attachments/', include('lbattachment.urls')), ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
npm install bower
npm install -g bower npm install -g bower
settings.py
requirements.txt
[project_name]/urls.py
The text was updated successfully, but these errors were encountered: