Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 4392d389dd3a0c36c5fd03ad27cc9d526a4849a1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sun Nov 18 15:15:35 2012 +0100
Update documentation - Development
- Add note about python-coverage
- Update to use the createdb and runserver shell script
- Fix formatting in the alembic section
---------------------------------------------------------------
doc/development.rst | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/doc/development.rst b/doc/development.rst
index f87f37f..836d5c9 100644
--- a/doc/development.rst
+++ b/doc/development.rst
@@ -29,11 +29,11 @@ See :doc:`configuration` for more detailed information about the
configuration.
Create the database scheme::
- python fedocal/fedocallib/model.py
+ ./createdb
Run the server::
- python fedocal/__init__.py
+ ./runserver
You should be able to access the server at
http://localhost:5000
@@ -122,6 +122,13 @@ by alone, allowing easier debugging of the tests. For example:
python fedocal/tests/test_week.py
+.. note:: In order to have the coverage information you might have to
+ install ``python-coverage``
+
+ ::
+
+ yum install python-coverage
+
Database changes
----------------
@@ -142,6 +149,7 @@ information on how to make a revision to the database schema.
The basic idea is to create a revision using (in the top folder):
::
+
alembic revision -m "<description of the change>"
Then edit the file generated in alembic/versions/ to add the correct command