Update Django to 1.3.
From Piotr Sikora, ok Ryan Boggs (MAINTAINER), discussed with me and landry@.
This commit is contained in:
parent
33324b068a
commit
50e0636f2c
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.16 2011/03/10 09:29:10 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.17 2011/04/24 18:40:03 rpointel Exp $
|
||||
|
||||
COMMENT = high-level Python web framework
|
||||
|
||||
MODPY_EGG_VERSION = 1.2.5
|
||||
MODPY_EGG_VERSION = 1.3
|
||||
LNAME = django
|
||||
DISTNAME = Django-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-${LNAME}-${MODPY_EGG_VERSION}
|
||||
@ -18,16 +18,18 @@ PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = http://media.djangoproject.com/releases/${MODPY_EGG_VERSION:R}/
|
||||
MASTER_SITES = http://media.djangoproject.com/releases/${MODPY_EGG_VERSION}/
|
||||
|
||||
MODULES = lang/python
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
SUBST_VARS += LNAME
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${LNAME}
|
||||
cd ${WRKSRC}/docs && pax -rw * ${PREFIX}/share/doc/${LNAME}
|
||||
|
||||
do-regress:
|
||||
cd ${WRKSRC} && env LC_CTYPE=en_US.UTF-8 PYTHONPATH=. \
|
||||
${MODPY_BIN} tests/runtests.py --settings=test_sqlite
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
MD5 (Django-1.2.5.tar.gz) = 4DHqPQCZYDXknkv6huB8QA==
|
||||
RMD160 (Django-1.2.5.tar.gz) = 5X9IMxN3BHdjh1h25Rx1T5H1j4A=
|
||||
SHA1 (Django-1.2.5.tar.gz) = lZPmdFZQ0GwK+Cp51uME2VhBn5Q=
|
||||
SHA256 (Django-1.2.5.tar.gz) = ZJOHJIKWOGtYnEqL+R00WQtD+Ttuv+bO++oN30ZBzNY=
|
||||
SIZE (Django-1.2.5.tar.gz) = 6379313
|
||||
MD5 (Django-1.3.tar.gz) = G4926RwnVkcIZJZx8ylVHw==
|
||||
RMD160 (Django-1.3.tar.gz) = V6O9s+syZjRkfS7qnfG1SEMWx7w=
|
||||
SHA1 (Django-1.3.tar.gz) = +IFNXhQSu5MjGNtRMCYNpb8FP/c=
|
||||
SHA256 (Django-1.3.tar.gz) = eu7lyAACq4HU6/VBYpKUn/RuFEjRg6GD/gX/Y0R3HIM=
|
||||
SIZE (Django-1.3.tar.gz) = 6504003
|
||||
|
@ -1,17 +1,17 @@
|
||||
$OpenBSD: patch-django_core_servers_basehttp_py,v 1.1 2011/01/02 22:04:10 rpointel Exp $
|
||||
--- django/core/servers/basehttp.py.orig Fri Dec 24 13:26:15 2010
|
||||
+++ django/core/servers/basehttp.py Fri Dec 24 13:26:15 2010
|
||||
@@ -14,6 +14,7 @@ import re
|
||||
import stat
|
||||
$OpenBSD: patch-django_core_servers_basehttp_py,v 1.2 2011/04/24 18:40:03 rpointel Exp $
|
||||
--- django/core/servers/basehttp.py.orig Thu Apr 21 23:45:26 2011
|
||||
+++ django/core/servers/basehttp.py Thu Apr 21 23:47:02 2011
|
||||
@@ -14,6 +14,7 @@ import socket
|
||||
import sys
|
||||
import urllib
|
||||
import warnings
|
||||
+import select
|
||||
|
||||
from django.core.management.color import color_style
|
||||
from django.utils.http import http_date
|
||||
@@ -718,4 +719,11 @@ def run(addr, port, wsgi_handler):
|
||||
@@ -693,4 +694,11 @@ def run(addr, port, wsgi_handler, ipv6=False):
|
||||
server_address = (addr, port)
|
||||
httpd = WSGIServer(server_address, WSGIRequestHandler)
|
||||
httpd = WSGIServer(server_address, WSGIRequestHandler, ipv6=ipv6)
|
||||
httpd.set_app(wsgi_handler)
|
||||
- httpd.serve_forever()
|
||||
+
|
||||
|
@ -1,19 +0,0 @@
|
||||
Complete documentation on Django may be found in:
|
||||
${PREFIX}/share/doc/${LNAME}/
|
||||
|
||||
or online:
|
||||
http://docs.djangoproject.com/en/dev/
|
||||
|
||||
Release notes about the changes that occurred in
|
||||
this release may be found online at:
|
||||
http://docs.djangoproject.com/en/dev/releases/1.2/
|
||||
|
||||
If you want a database for Django you should install the Python
|
||||
database adapter(s) of your choice ('pkg_add py-psycopg2',
|
||||
'pkg_add py-mysql', etc).
|
||||
|
||||
Please note, there have been significant changes between
|
||||
version 0.96 and 1.0 that may cause problems when upgrading
|
||||
projects. A guide for upgrading projects can be found
|
||||
online at:
|
||||
http://docs.djangoproject.com/en/1.0/releases/1.0-porting-guide/
|
File diff suppressed because it is too large
Load Diff
39
www/py-django/pkg/README
Normal file
39
www/py-django/pkg/README
Normal file
@ -0,0 +1,39 @@
|
||||
$OpenBSD: README,v 1.1 2011/04/24 18:40:03 rpointel Exp $
|
||||
|
||||
Running Django on OpenBSD
|
||||
=========================
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
Complete project documentation may be found in:
|
||||
${PREFIX}/share/doc/${LNAME}/
|
||||
|
||||
or online:
|
||||
http://docs.djangoproject.com/en/${MODPY_EGG_VERSION}/
|
||||
|
||||
Release notes about the changes that occurred in this release
|
||||
may be found online at:
|
||||
http://docs.djangoproject.com/en/dev/releases/${MODPY_EGG_VERSION}/
|
||||
|
||||
Databases
|
||||
---------
|
||||
Django supports number of different databases, but you need
|
||||
to install Python database adapter(s) to use them:
|
||||
* py-mysql - for MySQL database,
|
||||
* py-psycopg2 - for PostgreSQL database.
|
||||
|
||||
SQLite works out-of-the-box.
|
||||
|
||||
UTF-8
|
||||
-----
|
||||
Django assumes that you're running UTF-8 capable system, but
|
||||
it doesn't enforce any locales, which results in regressions
|
||||
when running in an environment without enabled UTF-8 locale.
|
||||
|
||||
This means that, unless you've got UTF-8 locale enabled for
|
||||
your profile, you need to enable UTF-8 while starting Django
|
||||
process:
|
||||
|
||||
$ env LC_CTYPE=en_US.UTF-8 ./manage.py runserver
|
||||
|
||||
or configure your application server to pass this setting.
|
Loading…
x
Reference in New Issue
Block a user