Port details |
- py-django-cms Content management system built with the Django framework
- 3.9.0_1 www
=1 3.9.0Version of this port present on the latest quarterly branch. - Maintainer: xenophon+fbsdports@irtnog.org
 - Port Added: 2012-02-07 04:58:41
- Last Update: 2022-04-28 10:02:15
- Commit Hash: 0cf5531
- People watching this port, also watch:: otrs, links, mupdf, py38-django
- Also Listed In: python
- License: BSD3CLAUSE
- Description:
- A free and open source content management system for publishing
content on the World Wide Web and intranets. It is based on Django
and written in Python.
WWW: http://django-cms.org/
- SVNWeb : git : Homepage
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}django-cms>0:www/py-django-cms@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/www/py-django-cms/ && make install clean
- To add the package, run one of these commands:
- pkg install www/py-django-cms
- pkg install py38-django-cms
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.NOTE: This is a Python port. Instead of py38-django-cms listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py38-django-cms
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1643096439
SHA256 (django-cms-django-cms-3.9.0_GH0.tar.gz) = 0a57c3a5c6cc6ed85576d3d00cd08880e7eb5249165d0992434817cce4b3e298
SIZE (django-cms-django-cms-3.9.0_GH0.tar.gz) = 4562625
- Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py38-setuptools>0 : devel/py-setuptools@py38
- python3.8 : lang/python38
- Runtime dependencies:
-
- py38-django32>=2.2 : www/py-django32@py38
- py38-djangocms-admin-style>=1.2 : www/py-djangocms-admin-style@py38
- py38-django-classy-tags>=0.7.2 : www/py-django-classy-tags@py38
- py38-django-formtools>=2.1 : www/py-django-formtools@py38
- py38-django-sekizai>=0.7 : www/py-django-sekizai@py38
- py38-django-treebeard>=4.3 : www/py-django-treebeard@py38
- py38-sqlite3>0 : databases/py-sqlite3@py38
- py38-setuptools>0 : devel/py-setuptools@py38
- python3.8 : lang/python38
- There are no ports dependent upon this port
- Configuration Options:
- ===> The following configuration options are available for py38-django-cms-3.9.0_1:
====> Options available for the multi DATABASE: you have to choose at least one of them
MYSQL=off: MySQL database support
PGSQL=off: PostgreSQL database support
SQLITE=on: SQLite database support
===> Use 'make config' to modify these settings
- Options name:
- www_py-django-cms
- USES:
- python:3.5+
- pkg-message:
- For install:
- IMPORTANT /
If you're upgrading from a older version of py-django-cms please read the
upgrade instructions at:
http://docs.django-cms.org/en/latest/upgrade/index.html
The described steps further down are a distilled version of "How to install
django CMS by hand" which is available at:
http://docs.django-cms.org/en/latest/how_to/install.html
The manual gives enough information how to setup py-django-cms for
development use. For production environments please consider to read the
full documentation available at:
http://docs.django-cms.org/en/latest/index.html
1. Create a new Django project
$ django-admin.py startproject myproject
2. Edit settings.py
--- Set a SITE_ID by adding the following line:
SITE_ID = 1 # 1 will suffice in most cases
--- Add the next lines to INSTALLED_APPS:
'djangocms_admin_style' # must come BEFORE django.contrib.admin
'django.contrib.sites'
'cms'
'menus'
'sekizai'
'treebeard'
--- Configure the LANGUAGES and LANGUAGE_CODE, e.g.:
LANGUAGES = [
('en', 'English'),
('de', 'German'),
]
LANGUAGE_CODE = 'en' # For simplicity's sake at this stage it is worth
# changing the default en-us in that you'll find in
# the LANGUAGE_CODE setting to en.
--- Add the following lines to MIDDLEWARE_CLASSES:
'cms.middleware.utils.ApphookReloadMiddleware' # Optional, but useful
'cms.middleware.user.CurrentUserMiddleware'
'cms.middleware.page.CurrentPageMiddleware'
'cms.middleware.toolbar.ToolbarMiddleware'
'cms.middleware.language.LanguageCookieMiddleware'
'django.middleware.locale.LocaleMiddleware'
--- Add MEDIA_URL (where media files will be served) and MEDIA_ROOT (where they
--- will be stored):
MEDIA_URL = "/media/"
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
--- See the Django documentation for guidance on serving media files in
--- production.
--- Add a CMS_TEMPLATES section that will be the project's default template:
CMS_TEMPLATES = [
('home.html', 'Home page template'),
]
--- Add the next lines to TEMPLATES['OPTIONS']['context_processors']:
'sekizai.context_processors.sekizai'
'cms.context_processors.cms_settings'
--- Django needs to be know where to look for its templates, so add following
--- line (the appropriate directory will be created in the next step) to the
----TEMPLATES['DIRS'] list:
['templates']
--- In the root of the project, create a templates directory, and in that,
--- home.html, a minimal django CMS template:
{% load cms_tags sekizai_tags %}
<html>
<head>
<title>{% page_attribute "page_title" %}</title>
{% render_block "css" %}
</head>
<body>
{% cms_toolbar %}
{% placeholder "content" %}
{% render_block "js" %}
</body>
</html>
--- Note: See Django's template language documentation for more on how template
--- inheritance works.
3. Edit urls.py
--- Edit urls.py and add url(r'^', include('cms.urls')) to the urlpatterns
--- list. It should come after other patterns, so that specific URLs for other
--- applications can be detected first.
--- You'll also need to have an import for django.conf.urls.include and
--- configure a media file serving for development purposes:
from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls.static import static
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('cms.urls')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
4. Setup the relational database backend
--- For testing purpose SQLite can be used and it is configured by default
--- in a new Django project's DATABASES.
--- Refer to Django's DATABASES setting documentation for the appropriate
--- configuration when PostgreSQL or MySQL are used as database backends.
5. Run migrations to create database tables
--- When a database backend has been choosen and set up properly, run the
--- following command:
$ python manage.py migrate
6. Create an admin superuser
--- For maintenance purposes it is necessary to create a admin user:
$ python manage.py createsuperuser
7. Check CMS installation
--- This will check your configuration, your applications, your database and
--- report on any problems:
$ python manage.py cms check
--- When there are no errors continue with the last step.
8. Start the CMS
--- The django CMS project will now run by issuing:
$ python manage.py runserver
--- The CMS can now be reached http://localhost:8000/ and the admin interface
--- at http://localhost:8000/admin/
- Master Sites:
|
Commit History - (may be incomplete: see SVNWeb link above for full details) |
Date | By | Description |
28 Apr 2022 10:02:15 3.9.0_1
|
Kai Knoblich (kai)  |
www/py-django32: Switch consumers over to Django 3.2
Django 2.2 became End-of-Life on 11th April 2022 and Django 3.2 is the
new LTS (= Long Term Support) release which will be supported until
April 2024.
* Switch the most ports that use www/py-django22 to www/py-django32
* Switch www/seahub over to www/py-djangorestframework
* Ports that are not yet ready for Django 3.2 (only three so far) or
those that have already been set with an expiration date were not
taken into account.
* Bump PORTREVISION due dependency change where necessary.
PR: 261313
Reviewed by: bofh, dvl, koobs, ultima
Approved by: bofh, dvl, koobs, ultima, sunpoet, Kevin Golding, Ivan Rozhuk,
Alexander Sieg (maintainers)
maintainer timeout (remaining maintainers)
Differential Revision: https://reviews.freebsd.org/D34859 |
12 Feb 2022 17:12:26 3.9.0
|
Kai Knoblich (kai)  |
www/py-django-cms: Update to 3.9.0
* Switch to GitHub for a while because no sdists at PyPI are available.
Changelog:
https://github.com/django-cms/django-cms/compare/3.7.1...3.9.0
PR: 261479
Approved by: maintainer timeout (2+ weeks) |
06 Apr 2021 14:31:07 3.7.1
|
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
19 Apr 2020 09:15:56
3.7.1
|
kai  |
www/py-django-cms: Update to 3.7.1
* Also assign the port to Django 2.2 because Django 1.11 is End-of-Life
since April. [1]
* Do the same for its dependencies (including www/py-django-classy-tags [2])
and bump PORTREVISION accordingly.
Changelog:
https://github.com/divio/django-cms/blob/3.7.1/CHANGELOG.rst
PR: 245361 [1] 245360 [2]
Approved by: maintainer timeout (14 days) [1] [2] |
14 Aug 2019 12:25:09
3.5.2
|
mat  |
Convert to UCL & cleanup pkg-message (categories w) |
21 May 2018 15:52:35
3.5.2
|
miwi  |
- Update to 3.5.2
- Switch to py-django111
PR: 228092
Submitted by: freebsd_ports@k-worx.org
Approved by: maintainer
Sponsored by: iXsystems Inc. |
19 Feb 2018 11:10:43
2.4.1_3
|
antoine  |
Reduce dependency on the python2 metaport
PR: 225752
Submitted by: Yasuhiro KIMURA |
30 Nov 2017 15:50:34
2.4.1_2 
|
mat  |
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the (Only the first 15 lines of the commit message are shown above ) |
01 Apr 2016 14:33:58
2.4.1_2
|
mat  |
Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.
With hat: portmgr
Sponsored by: Absolight |
16 Jan 2016 11:19:09
2.4.1_2
|
miwi  |
- Switch forgotten ports over to py-django18
- Fix PYTHON_PKGNAMEPREFIX
Reported by: antoinebot |
16 Jan 2016 09:52:37
2.4.1_2 
|
miwi  |
- Switch all ports to www/py-django18
- Bump PORTREVISION |
17 Aug 2015 14:20:41
2.4.1_1
|
mat  |
Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.
Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.
Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)
Reviewed by: antoine, bapt
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3336 |
21 Dec 2014 16:09:05
2.4.1_1
|
feld  |
Update "BSD" license in www category |
18 Oct 2014 19:08:30
2.4.1_1
|
rm  |
www/py-django-cms: convert to USES=python
Approved by: portmgr (blanket) |
20 Jun 2014 07:44:23
2.4.1_1
|
adamw  |
Use OPTIONS helpers, and change NOPORTDOCS reference to DOCS. |
16 Feb 2014 14:41:05
2.4.1_1
|
miwi  |
- Stage support |
29 Jan 2014 15:27:52
2.4.1_1
|
miwi  |
- Convert to PYDISTUTILS_AUTOPLIST
- Stage support
- Bump PORTREVISION |
13 Jan 2014 21:00:04
2.4.1
|
rene  |
Python cleanup:
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2
- USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes
Reviewed by: python (mva, rm)
Approved by: portmgr-lurkers (mat) |
20 Sep 2013 23:36:54
2.4.1
|
bapt  |
Add NO_STAGE all over the place in preparation for the staging support (cat:
www) |
10 Jun 2013 14:25:07
2.4.1
|
wg  |
- Update to 2.4.1 [1]
- Update pkg-message
Changes: http://docs.django-cms.org/en/2.4.0/upgrade/2.4.html
PR: ports/178988 [1]
Submitted by: Melvyn Sopacua <melvyn@magemana.nl>
Approved by: culot / jpaetzel (mentors, implicit), maintainer (timeout) |
29 May 2013 08:08:55
2.3_1
|
miwi  |
- Mark BROKEN fails to build |
17 Oct 2012 19:46:39
2.3_1
|
rm  |
- let user to change database backend via options (default is sqlite)
- bump PORTREVISION
- trim Makefile header while here
PR: 169248
Submitted by: Matthew X. Economou <xenophon+freebsd at irtnog dot org>
(maintainer)
Feature safe: yes |
13 Aug 2012 19:07:13
2.3
|
rm  |
- update to version 2.3
- update dependency upon www/py-django-sekizai (at least 0.6.1 is needed)
- fix directories at pkg-message
- use @dirrm (not @dirrmtry) for the port's own directories
- don't try to use @dirrmtry to other ports directories
while here:
- use CHEESESHOP shortcut
- remove unnecessary MASTER_SITE_SUBDIR
- strict python version to 2.x only
PR: 169599
Submitted by: bsam
Approved by: maintainer timeout (6 weeks) |
07 Feb 2012 04:28:08
2.2
|
miwi  |
A free and open source content management system for publishing
content on the World Wide Web and intranets. It is based on Django
and written in Python.
WWW: http://django-cms.org/
PR: ports/164624
Submitted by: Matthew X. Economou <xenophon+fbsdports@irtnog.org> |