How to install Argonaut
- Download and install ActivePython
- Open Command Prompt
pypm install argonaut
Version 0.3.4 (30th March 2011)
Author: Jason Robinson jaywink (at) basshero.org http://www.basshero.org
Argonaut is a blogging engine built with Pylons. It is lightweight and can be deployed on many types of web servers running Python.
The application is still very much in alpha stages and as such there are bugs in the system and a lot of features which have not been implemented.
Argonaut is distributed under the FreeBSD license. This means you can use, copy and distribute the code and application for free and with no obligations. It is however required that the included copyright is included with the application using source or binary components. Please see the file LICENSE.txt for the full license.
3.1 Prequisites for install
- Python 2.4 - 2.7 [http://www.python.org]
- Pylons 1.0 [http://pylonshq.com/]
- Python setuptools (easy_install) [http://pypi.python.org/pypi/setuptools]
Please see Pylons documentation to get started with Pylons [http://pylonshq.com/docs/en/0.9.7/gettingstarted/].
3.2 Other components
In addition to Pylons, Argonaut uses the following components:
- Mako (templates, the View) [http://www.makotemplates.org/]
- SQLAlchemy (the Model) [http://www.sqlalchemy.org/]
- Sqlalchemy-migrate (database migration) [http://pypi.python.org/pypi/sqlalchemy-migrate]
- repoze.what (authentication and access rights) [http://what.repoze.org/docs/1.0/]
- CKEditor (for writing posts) [http://ckeditor.com/]
- AddToAny (for sharing) [http://www.addtoany.com/]
- jQuery (for additional magic) [http://jquery.com/]
- Simple3color (default theme) [http://www.oswd.org/design/preview/id/3533]
- TurboMail (for notifications) [http://www.python-turbomail.org/]
3.3 Installation and Setup
Prequisites for install must be fulfilled. Install Argonaut using easy_install:
easy_install argonautOR with local .egg file
Make a config file as follows:
paster make-config argonaut config.ini
Tweak the config file as appropriate. Please see Pylons application setup pages for hints on editing the config file [http://pythonpaste.org/deploy/]. After this run the following to setup the application:
paster setup-app config.ini#arg
Then you are ready to go.
You can test the installation by running:
paster serve config.ini
After this visit the link http://127.0.0.1:5000
Optionally you can extract the source and run Argonaut by launching development mode via setup.py. Just extract the source, install Pylons and in the Argonaut base directory run:
python setup.py develop paster serve development.ini
4. Updating from a previous version
An automatic database schema update routine has been implemented since 0.3 version. Unfortunately this does not handle all database related changes. Please see changelog below for notes on what needs to be done with version upgrades.
5.1 Modifying the site
Argonaut features templates that can be used to control the site structure, layout and texts. Unfortunately in this early version there is no admin panel so all editing must be made to the files directly.
Template files are situated in argonaut/templates. Please see Mako documentation on how to change the templates.
During application setup a database will be created in the form that is configured in config.ini. In addition to blog data, Argonaut also stores some configuration values in the database. These are stored in the table 'config'.
The default user for writing posts is 'admin', password 'admin'. Currently users can only be added directly to the database. An admin panel will be added later.
5.4 Other usage notes
Proper documentation and usage will be added slowly over future releases :)
Please contact the author at jaywink (at) basshero.org for support, ideas and bug reports.
- 0.3.4 30th March 2011
- Removed usage of sqlalchemy-migrate since it was causing problems. A new type of DB migration will be thought out later.
- 0.3.3 29th March 2011
- Fixed routing for landing page with lowest page_order
- Post commenting can now be disabled with the config setting comments_enabled, true/false
- Fixed character encoding problem when getting page name from database
- Base page now only displays links to active pages
- 0.3.2 20th February 2011
- Added 'media' and 'social' models to the database. Media contains links to images and other media items. Social contains links to contact information or other sites. Links are given a media ID which is displayed in the Social -box with an url to the site or contact information.
- 0.3 13th February 2011
- sqlalchemy-migrate is now used to do automatic database schema upgrades according to model changes. Added as dependency, installed via easy_install automatically. Implementation thanks to: http://shane.caraveo.com/2010/09/13/database-migrations-for-sqlalchemy-part-duex/
- Default landing page is now the one with the lowest page_order setting.
- Pages are now mapped to a page type. Default page types are 'blog', 'archives' and 'tags'.
- Page urls are now determined from page type, but can also be customised.
- Custom page support has been added. Custom pages are mapped to page type 'custom' which redirects traffic to a mako template file as indicated in the pages table.
- Version number will now be displayed in the Powered by -section in the main template. Removed these text strings and urls from the configuration table and placed them in the base template.
Updating from version 0.2: - Pre-upgrade the database table 'pages' needs to be dropped for an easy upgrade. After
this the script 'paster setup-app [config_file]#arg' needs to be run to create the table with the new schema. The rest of the database changes should be handled by the automatic schema update mechanism.
- 0.2 6th December 2010
- Initial Pylons version release
0.1.x The 0.1 versions are the old PHP powered versions which were never released.