View | Details | Raw Unified | Return to bug 228092
Collapse All | Expand All

(-)py-django-cms/Makefile (-17 / +17 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	django-cms
4
PORTNAME=	django-cms
5
PORTVERSION=	2.4.1
5
PORTVERSION=	3.5.2
6
PORTREVISION=	3
7
CATEGORIES=	www python
6
CATEGORIES=	www python
8
MASTER_SITES=	CHEESESHOP
7
MASTER_SITES=	CHEESESHOP
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 12-34 Link Here
12
COMMENT=	Content management system built with the Django framework
11
COMMENT=	Content management system built with the Django framework
13
12
14
LICENSE=	BSD3CLAUSE
13
LICENSE=	BSD3CLAUSE
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
15
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}south>=0.7.3:databases/py-south@${FLAVOR} \
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django111>0:www/py-django111@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}django18>=1.4:www/py-django18@${FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}djangocms-admin-style>=1.0:www/py-djangocms-admin-style@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}django-classy-tags>=0.3.4.1:www/py-django-classy-tags@${FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}django-classy-tags>=0.7.2:www/py-django-classy-tags@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}django-mptt>=0.5.2:www/py-django-mptt@${FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}django-formtools>=1.0:www/py-django-formtools@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}django-sekizai>=0.6.1:www/py-django-sekizai@${FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}django-sekizai>=0.7:www/py-django-sekizai@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}html5lib>=0.90:www/py-html5lib@${FLAVOR}
21
		${PYTHON_PKGNAMEPREFIX}django-treebeard>=4.0.1:www/py-django-treebeard@${PY_FLAVOR}
22
22
23
USES=		python:2.7
23
USES=		python
24
USE_PYTHON=	autoplist distutils
24
USE_PYTHON=	distutils autoplist
25
NO_ARCH=	yes
25
26
26
OPTIONS_MULTI=	DATABASE
27
OPTIONS_MULTI=		DATABASE
27
OPTIONS_DEFAULT=SQLITE
28
OPTIONS_MULTI_DATABASE=	MYSQL PGSQL SQLITE
28
OPTIONS_MULTI_DATABASE=MYSQL PGSQL SQLITE
29
OPTIONS_DEFAULT=	SQLITE
30
MYSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:databases/py-MySQLdb@${PY_FLAVOR}
31
PGSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${PY_FLAVOR}
32
SQLITE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
29
33
30
MYSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:databases/py-MySQLdb@${FLAVOR}
31
PGSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${FLAVOR}
32
SQLIE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${FLAVOR}
33
34
.include <bsd.port.mk>
34
.include <bsd.port.mk>
(-)py-django-cms/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (django-cms-2.4.1.tar.gz) = ea284caea7b8e835186a2ad3d9a5aafcdc43db31c65711e710ef95b2a6ca497f
1
TIMESTAMP = 1524057883
2
SIZE (django-cms-2.4.1.tar.gz) = 4436793
2
SHA256 (django-cms-3.5.2.tar.gz) = 961e17223087d80004205b86062dcd26765264534bdb7020bd4d610279307c55
3
SIZE (django-cms-3.5.2.tar.gz) = 4844699
(-)py-django-cms/pkg-message (-19 / +176 lines)
Lines 1-23 Link Here
1
**********************************************************************
1
===============================================================================
2
2
3
To try out django CMS, open a shell and run the following commands:
3
****************************************************************************
4
 IMPORTANT / 
5
****************************************************************************
4
6
5
    django-admin.py startproject mycmsproject
7
If you're upgrading from a older version of py-django-cms please read the
6
    cd mycmsproject/mycmsproject
8
upgrade instructions at: 
7
    rm settings.py
8
    rm urls.py
9
    fetch https://gist.github.com/williambr/5748696/raw/settings.py
10
    fetch https://gist.github.com/raw/1125918/urls.py
11
    mkdir templates
12
    cd templates
13
    fetch https://gist.github.com/raw/1125918/example.html
14
    cd ../..
15
    python manage.py syncdb --all
16
    python manage.py migrate --fake
17
    python manage.py runserver
18
9
19
The last command should start a local server on port 8000 serving
10
http://docs.django-cms.org/en/latest/upgrade/index.html
20
your CMS installation, so open your browser and go to 127.0.0.1:8000
21
and you should see the CMS welcome page.
22
11
23
**********************************************************************
12
The described steps further down are a distilled version of "How to install
13
django CMS by hand" which is available at:
14
15
http://docs.django-cms.org/en/latest/how_to/install.html
16
17
The manual gives enough information how to setup py-django-cms for
18
development use. For production environments please consider to read the
19
full documentation available at:
20
21
http://docs.django-cms.org/en/latest/index.html
22
23
****************************************************************************
24
 1. Create a new Django project
25
****************************************************************************
26
27
$ django-admin.py startproject myproject
28
29
****************************************************************************
30
 2. Edit settings.py
31
****************************************************************************
32
33
--- Set a SITE_ID by adding the following line:
34
35
SITE_ID = 1	# 1 will suffice in most cases
36
37
--- Add the next lines to INSTALLED_APPS:
38
39
'djangocms_admin_style' 	# must come BEFORE django.contrib.admin
40
'django.contrib.sites'
41
'cms'
42
'menus'
43
'sekizai'
44
'treebeard'
45
46
--- Configure the LANGUAGES and LANGUAGE_CODE, e.g.:
47
48
LANGUAGES = [
49
    ('en', 'English'),
50
    ('de', 'German'),
51
]
52
53
LANGUAGE_CODE = 'en'	# For simplicity's sake at this stage it is worth
54
			# changing the default en-us in that you'll find in
55
			# the LANGUAGE_CODE setting to en.
56
57
--- Add the following lines to MIDDLEWARE_CLASSES:
58
59
'cms.middleware.utils.ApphookReloadMiddleware'	# Optional, but useful
60
'cms.middleware.user.CurrentUserMiddleware'
61
'cms.middleware.page.CurrentPageMiddleware'
62
'cms.middleware.toolbar.ToolbarMiddleware'
63
'cms.middleware.language.LanguageCookieMiddleware'
64
'django.middleware.locale.LocaleMiddleware'
65
66
--- Add MEDIA_URL (where media files will be served) and MEDIA_ROOT (where they
67
--- will be stored):
68
69
MEDIA_URL = "/media/"
70
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
71
72
--- See the Django documentation for guidance on serving media files in
73
--- production.
74
75
--- Add a CMS_TEMPLATES section that will be the project's default template:
76
77
CMS_TEMPLATES = [
78
    ('home.html', 'Home page template'),
79
]
80
81
--- Add the next lines to TEMPLATES['OPTIONS']['context_processors']:
82
83
'sekizai.context_processors.sekizai'
84
'cms.context_processors.cms_settings'
85
86
--- Django needs to be know where to look for its templates, so add following
87
--- line (the appropriate directory will be created in the next step) to the
88
----TEMPLATES['DIRS'] list:
89
90
['templates']
91
92
--- In the root of the project, create a templates directory, and in that,
93
--- home.html, a minimal django CMS template:
94
95
{% load cms_tags sekizai_tags %}
96
<html>
97
    <head>
98
        <title>{% page_attribute "page_title" %}</title>
99
        {% render_block "css" %}
100
    </head>
101
    <body>
102
        {% cms_toolbar %}
103
        {% placeholder "content" %}
104
        {% render_block "js" %}
105
    </body>
106
</html>
107
108
--- Note: See Django's template language documentation for more on how template
109
--- inheritance works.
110
111
****************************************************************************
112
 3. Edit urls.py
113
****************************************************************************
114
115
--- Edit urls.py and add url(r'^', include('cms.urls')) to the urlpatterns
116
--- list. It should come after other patterns, so that specific URLs for other
117
--- applications can be detected first.
118
119
--- You'll also need to have an import for django.conf.urls.include and
120
--- configure a media file serving for development purposes:
121
122
from django.conf import settings
123
from django.conf.urls import url, include
124
from django.conf.urls.static import static
125
126
urlpatterns = [
127
    url(r'^admin/', admin.site.urls),
128
    url(r'^', include('cms.urls')),
129
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
130
131
****************************************************************************
132
 4. Setup the relational database backend
133
****************************************************************************
134
135
--- For testing purpose SQLite can be used and it is configured by default
136
--- in a new Django project's DATABASES.
137
138
--- Refer to Django's DATABASES setting documentation for the appropriate
139
--- configuration when PostgreSQL or MySQL are used as database backends.
140
141
****************************************************************************
142
 5. Run migrations to create database tables
143
****************************************************************************
144
145
--- When a database backend has been choosen and set up properly, run the
146
--- following command:
147
148
$ python manage.py migrate
149
150
****************************************************************************
151
 6. Create an admin superuser
152
****************************************************************************
153
154
--- For maintenance purposes it is necessary to create a admin user:
155
156
$ python manage.py createsuperuser
157
158
****************************************************************************
159
 7. Check CMS installation
160
****************************************************************************
161
162
--- This will check your configuration, your applications, your database and
163
--- report on any problems:
164
165
$ python manage.py cms check
166
167
--- When there are no errors continue with the last step.
168
169
****************************************************************************
170
 8. Start the CMS
171
****************************************************************************
172
173
--- The django CMS project will now run by issuing:
174
175
$ python manage.py runserver
176
177
--- The CMS can now be reached http://localhost:8000/ and the admin interface
178
--- at http://localhost:8000/admin/
179
180
===============================================================================
(-)py-django-classy-tags/Makefile (-1 / +4 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	django-classy-tags
4
PORTNAME=	django-classy-tags
5
PORTVERSION=	0.8.0
5
PORTVERSION=	0.8.0
6
PORTREVISION=	1
6
CATEGORIES=	www python
7
CATEGORIES=	www python
7
MASTER_SITES=	CHEESESHOP
8
MASTER_SITES=	CHEESESHOP
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 10-17 Link Here
10
MAINTAINER=	cs@FreeBSD.org
11
MAINTAINER=	cs@FreeBSD.org
11
COMMENT=	Class based template tags for Django
12
COMMENT=	Class based template tags for Django
12
13
13
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/django/bin/django-admin.py:www/py-django18@${FLAVOR}
14
LICENSE=	BSD3CLAUSE
14
15
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django111>0:www/py-django111@${PY_FLAVOR}
17
15
USES=		python
18
USES=		python
16
USE_PYTHON=	autoplist distutils
19
USE_PYTHON=	autoplist distutils
17
20
(-)py-django-sekizai/Makefile (-6 / +21 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	django-sekizai
4
PORTNAME=	django-sekizai
5
PORTVERSION=	0.7
5
PORTVERSION=	0.10.0
6
PORTREVISION=	3
7
CATEGORIES=	www python
6
CATEGORIES=	www python
8
MASTER_SITES=	CHEESESHOP
7
MASTER_SITES=	CHEESESHOP
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 11-20 Link Here
11
MAINTAINER=	xenophon+fbsdports@irtnog.org
10
MAINTAINER=	xenophon+fbsdports@irtnog.org
12
COMMENT=	Block templating system for Django
11
COMMENT=	Block templating system for Django
13
12
14
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django18>0:www/py-django18@${FLAVOR} \
13
LICENSE=	BSD3CLAUSE
15
		${PYTHON_PKGNAMEPREFIX}django-classy-tags>=0.3.1:www/py-django-classy-tags@${FLAVOR}
14
LICENSE_FILE=	${WRKSRC}/LICENSE
16
15
17
USES=		python:2.7
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django111>0:www/py-django111@${PY_FLAVOR} \
18
USE_PYTHON=	distutils autoplist
17
		${PYTHON_PKGNAMEPREFIX}django-classy-tags>=0.3.1:www/py-django-classy-tags@${PY_FLAVOR}
19
18
19
USES=		python
20
USE_PYTHON=	distutils concurrent autoplist
21
NO_ARCH=	yes
22
23
PORTDOCS=	*
24
25
OPTIONS_DEFINE=	DOCS
26
DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
27
DOCS_VARS=		PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
28
29
post-install-DOCS-on:
30
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
31
	(cd ${WRKSRC}/build/sphinx/html && \
32
	${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
33
		"! -name .buildinfo -and ! -name objects.inv")
34
20
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)py-django-sekizai/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (django-sekizai-0.7.tar.gz) = 24de5efd35705faea01298bed64c44c233ae723250c21bbd9102dba17b51bdbb
1
TIMESTAMP = 1524057936
2
SIZE (django-sekizai-0.7.tar.gz) = 108418
2
SHA256 (django-sekizai-0.10.0.tar.gz) = 39c5d16ad694aa78278ca84fdc7b9f953ebcf94e2fc95b68c875d02014303260
3
SIZE (django-sekizai-0.10.0.tar.gz) = 18731

Return to bug 228092