* Fix MESSAGE

* Add missing dependency
This commit is contained in:
ryoon 2013-01-03 15:31:08 +00:00
parent 81e4627766
commit 09efa45cac
2 changed files with 30 additions and 5 deletions

View file

@ -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

View file

@ -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