Skip to content

Commit

Permalink
Bump GenericSite version
Browse files Browse the repository at this point in the history
  • Loading branch information
veselosky committed May 7, 2023
1 parent 2776b87 commit 4706446
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 50 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ django-environ==0.10.0
# via -r requirements.in
django-extensions==3.2.1
# via -r requirements.in
django-genericsite @ https://github.com/veselosky/django-genericsite/releases/download/release-0.1.2/django_genericsite-0.1.2-py3-none-any.whl
django-genericsite @ https://github.com/veselosky/django-genericsite/releases/download/release-0.1.3/django_genericsite-0.1.3-py3-none-any.whl
# via -r requirements.in
django-rich==1.5.0
# via -r requirements.in
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
django >= 4.2, < 5.0
django-environ >= 0.10.0
django-extensions >= 3.2.1
django-genericsite @ https://github.com/veselosky/django-genericsite/releases/download/release-0.1.2/django_genericsite-0.1.2-py3-none-any.whl
django-genericsite @ https://github.com/veselosky/django-genericsite/releases/download/release-0.1.3/django_genericsite-0.1.3-py3-none-any.whl
django-rich >= 1.5.0
docutils >= 0.19
pillow >= 9.5.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ django-environ==0.10.0
# via -r requirements.in
django-extensions==3.2.1
# via -r requirements.in
django-genericsite @ https://github.com/veselosky/django-genericsite/releases/download/release-0.1.2/django_genericsite-0.1.2-py3-none-any.whl
django-genericsite @ https://github.com/veselosky/django-genericsite/releases/download/release-0.1.3/django_genericsite-0.1.3-py3-none-any.whl
# via -r requirements.in
django-rich==1.5.0
# via -r requirements.in
Expand Down
53 changes: 6 additions & 47 deletions storyville/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from pathlib import Path

import environ
import genericsite.apps

PROJECT = __name__.split(".")[0]
# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand All @@ -26,29 +27,10 @@
WSGI_APPLICATION = f"{PROJECT}.wsgi.application"
ROOT_URLCONF = f"{PROJECT}.urls"

INSTALLED_APPS = [
# Add your custom apps here:
"genericsite",
# 3rd party apps used by GenericSite
"django_bootstrap_icons",
"easy_thumbnails",
"taggit",
"tinymce",
INSTALLED_APPS = genericsite.apps.plus(
# Third party apps:
"django_extensions",
# Core Django apps below custom so we can override their templates
"django.contrib.admin",
"django.contrib.admindocs",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.redirects",
"django.contrib.sites",
"django.contrib.staticfiles",
"genericsite.adminoverride",
]

)

MIDDLEWARE = [
# https://docs.djangoproject.com/en/4.2/ref/middleware/#django.middleware.security.SecurityMiddleware
Expand Down Expand Up @@ -218,34 +200,11 @@
# SECTION 2: App configuration.
#######################################################################################

THUMBNAIL_PROCESSORS = (
"easy_thumbnails.processors.colorspace",
"easy_thumbnails.processors.autocrop",
"easy_thumbnails.processors.scale_and_crop",
"easy_thumbnails.processors.filters",
)
THUMBNAIL_WIDGET_OPTIONS = {"size": (160, 90)}
THUMBNAIL_PROCESSORS = genericsite.apps.THUMBNAIL_PROCESSORS
THUMBNAIL_WIDGET_OPTIONS = genericsite.apps.THUMBNAIL_WIDGET_OPTIONS
THUMBNAIL_DEBUG = DEBUG

TINYMCE_DEFAULT_CONFIG = {
"height": "320px",
"width": "960px",
"menubar": "edit view insert format tools table help",
"pagebreak_separator": "<!-- pagebreak --><span id=continue-reading></span>",
"plugins": "advlist autoresize charmap code codesample help hr image imagetools "
"link lists media pagebreak paste searchreplace table toc visualblocks "
"visualchars wordcount",
"toolbar": "undo redo | bold italic strikethrough | styleselect | removeformat | "
"numlist bullist indent outdent | image pagebreak | code",
"image_advtab": True,
"image_caption": True,
"image_class_list": [
{"title": "Responsive", "value": "img-fluid"},
{"title": "Left", "value": "float-left"},
{"title": "Right", "value": "float-right"},
],
"image_list": "/images/recent.json",
}
TINYMCE_DEFAULT_CONFIG = genericsite.apps.TINYMCE_CONFIG

#######################################################################################
# SECTION 3: DEVELOPMENT: If running in a dev environment, loosen restrictions
Expand Down

0 comments on commit 4706446

Please sign in to comment.