Skip to content

Commit f8b577e

Browse files
author
Mario Colombo
committed
upgrade to django CMS 3.9
1 parent 20cf675 commit f8b577e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ db.sqlite3
1818
._*
1919
.Spotlight-V100
2020
.Trashes
21+
22+
.idea/

quickstart/urls.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@
1010
if settings.DEBUG:
1111
urlpatterns.extend(static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT))
1212

13-
urlpatterns.append(path('', include('cms.urls')))
13+
urlpatterns.append(path('', include('cms.urls')))
14+
15+
# the new django admin sidebar is bad UX in django CMS custom admin views.
16+
admin.site.enable_nav_sidebar = False

requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
django>=3.1,<3.2
1+
django>=3.1,<3.2 # 3.2 has dark admin theme which looks bad in custom django CMS admin views
22
dj-database-url==0.5.0
33
django-storage-url==0.5.0
44
whitenoise==5.2.0
@@ -9,8 +9,7 @@ psycopg2==2.8.5
99
uwsgi==2.0.19.1
1010

1111
# key requirements for django CMS
12-
django-cms>=3.8,<3.9
13-
django-treebeard>=4.0,<5.0
12+
django-cms<4
1413
django-classy-tags>=2.0
1514
django-sekizai>=2.0
1615
six

0 commit comments

Comments
 (0)