Skip to content

Commit

Permalink
add template based project
Browse files Browse the repository at this point in the history
  • Loading branch information
gael.pasgrimaud committed Feb 7, 2009
1 parent 63506d3 commit 579f005
Show file tree
Hide file tree
Showing 35 changed files with 1,131 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pylonsapp/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include pylonsapp/config/deployment.ini_tmpl
recursive-include pylonsapp/public *
recursive-include pylonsapp/templates *
19 changes: 19 additions & 0 deletions pylonsapp/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
This file is for you to describe the pylonsapp application. Typically
you would include information such as the information below:

Installation and Setup
======================

Install ``pylonsapp`` using easy_install::

easy_install pylonsapp

Make a config file as follows::

paster make-config pylonsapp config.ini

Tweak the config file as appropriate and then setup the application::

paster setup-app config.ini

Then you are ready to go.
82 changes: 82 additions & 0 deletions pylonsapp/development.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#
# pylonsapp - Pylons development environment configuration
#
# The %(here)s variable will be replaced with the parent directory of this file
#
[DEFAULT]
debug = true
# Uncomment and replace with the address which should receive any error reports
#email_to = you@yourdomain.com
smtp_server = localhost
error_email_from = paste@localhost

[server:main]
use = egg:Paste#http
host = 127.0.0.1
port = 5000

[app:main]
use = egg:pylonsapp
full_stack = true

cache_dir = %(here)s/data
beaker.session.key = pylonsapp
beaker.session.secret = somesecret

# If you'd like to fine-tune the individual locations of the cache data dirs
# for the Cache data, or the Session saves, un-comment the desired settings
# here:
#beaker.cache.data_dir = %(here)s/data/cache
#beaker.session.data_dir = %(here)s/data/sessions

# SQLAlchemy database URL
sqlalchemy.url = sqlite:///%(here)s/development.db

# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
# execute malicious code after an exception is raised.
#set debug = false


# Logging configuration
[loggers]
keys = root, routes, pylonsapp, sqlalchemy

[handlers]
keys = console

[formatters]
keys = generic

[logger_root]
level = INFO
handlers = console

[logger_routes]
level = INFO
handlers =
qualname = routes.middleware
# "level = DEBUG" logs the route matched and routing variables.

[logger_pylonsapp]
level = DEBUG
handlers =
qualname = pylonsapp

[logger_sqlalchemy]
level = INFO
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S
19 changes: 19 additions & 0 deletions pylonsapp/docs/index.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pylonsapp
+++++++++

This is the main index page of your documentation. It should be written in
`reStructuredText format <http://docutils.sourceforge.net/rst.html>`_.

You can generate your documentation in HTML format by running this command::

setup.py pudge

For this to work you will need to download and install `buildutils`_,
`pudge`_, and `pygments`_. The ``pudge`` command is disabled by
default; to ativate it in your project, run::

setup.py addcommand -p buildutils.pudge_command

.. _buildutils: http://pypi.python.org/pypi/buildutils
.. _pudge: http://pudge.lesscode.org/
.. _pygments: http://pygments.org/
Loading

0 comments on commit 579f005

Please sign in to comment.