diff options
author | ryoon <ryoon> | 2013-01-03 15:31:08 +0000 |
---|---|---|
committer | ryoon <ryoon> | 2013-01-03 15:31:08 +0000 |
commit | 3a41be209e47c79856322dcb69e3cb677b6de2b3 (patch) | |
tree | a6b71edb744d385a7549dc668b5be926afa68609 /www | |
parent | f04b7717f0e7aa3d63b4f4914429d6ef605db773 (diff) | |
download | pkgsrc-3a41be209e47c79856322dcb69e3cb677b6de2b3.tar.gz |
* Fix MESSAGE
* Add missing dependency
Diffstat (limited to 'www')
-rw-r--r-- | www/py-mezzanine/MESSAGE | 31 | ||||
-rw-r--r-- | www/py-mezzanine/Makefile | 4 |
2 files changed, 30 insertions, 5 deletions
diff --git a/www/py-mezzanine/MESSAGE b/www/py-mezzanine/MESSAGE index 5a3d1ad4a4c..9a1d41824f5 100644 --- a/www/py-mezzanine/MESSAGE +++ b/www/py-mezzanine/MESSAGE @@ -1,5 +1,5 @@ =========================================================================== -$NetBSD: MESSAGE,v 1.1 2013/01/03 14:29:29 ryoon Exp $ +$NetBSD: MESSAGE,v 1.2 2013/01/03 15:31:08 ryoon Exp $ To use Mezzanine, you will need to perform the following steps. @@ -7,8 +7,10 @@ To use Mezzanine, you will need to perform the following steps. databases/postgresql91-server and enable it, then create database. $ sudo ${PREFIX}/share/examples/rc.d/pgsql onestart - $ sudo -u pgsql createuser + $ sudo -u pgsql createuser -P Enter name of role to add: YOURUSERNAME + Enter password for new role: YOURPASSWORD + Enter it again: YOURPASSWORD Shall the new role be a superuser? (y/n) n Shall the new role be allowed to create databases? (y/n) y Shall the new role be allowed to create more new roles? (y/n) n @@ -19,11 +21,32 @@ To use Mezzanine, you will need to perform the following steps. $ mezzanine-project project_name # cd project_name -3. Create database. +3. Edit local_settings.py. + +DEBUG = True + +DATABASES = { + "default": { + # Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle". + "ENGINE": "django.db.backends.postgresql_psycopg2", + # DB name or path to database file if using sqlite3. + "NAME": "dev.db", + # Not used with sqlite3. + "USER": "YOUUSERNAME", + # Not used with sqlite3. + "PASSWORD": "YOURPASSWORD", + # Set to empty string for localhost. Not used with sqlite3. + "HOST": "", + # Set to empty string for default. Not used with sqlite3. + "PORT": "", + } +} + +4. Create database. ${PYTHONBIN} manage.py createdb --noinput -4. Run web server +5. Run web server ${PYTHONBIN} manage.py runserver diff --git a/www/py-mezzanine/Makefile b/www/py-mezzanine/Makefile index 37183a055c8..b40c899de16 100644 --- a/www/py-mezzanine/Makefile +++ b/www/py-mezzanine/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2013/01/03 14:29:29 ryoon Exp $ +# $NetBSD: Makefile,v 1.2 2013/01/03 15:31:08 ryoon Exp $ # DISTNAME= Mezzanine-1.2.4 @@ -14,11 +14,13 @@ LICENSE= 2-clause-bsd PYTHON_VERSIONS_ACCEPTED= 27 26 DEPENDS+= ${PYPKGPREFIX}-flakes-[0-9]*:../../devel/py-flakes +DEPENDS+= ${PYPKGPREFIX}-postgresql-[0-9]*:../../databases/py-postgresql DEPENDS+= ${PYPKGPREFIX}-pep8-[0-9]*:../../devel/py-pep8 DEPENDS+= ${PYPKGPREFIX}-imaging-[0-9]*:../../graphics/py-imaging DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz DEPENDS+= ${PYPKGPREFIX}-django-[0-9]*:../../www/py-django +DEPENDS+= ${PYPKGPREFIX}-django-appconf-[0-9]*:../../www/py-django-appconf DEPENDS+= ${PYPKGPREFIX}-django-south-[0-9]*:../../www/py-django-south DEPENDS+= ${PYPKGPREFIX}-bleach-[0-9]*:../../www/py-bleach |