Testing
Go to file
Dan McGee 48ee2c28a2 Touch up the depends and requiredby display in package details
This started out as a validation fix for the W3 validator: we had some <ul/>
elements that ended up on that page with no inner <li/> elements, so it was
invalid markup. I then realized we don't need to call the methods multiple
times so use the 'with' template tag.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31 16:43:48 -06:00
devel Adjust models and views for nullable maintainer 2010-01-31 13:44:03 -06:00
main Make looking up a package with many required by entries faster 2010-01-31 16:42:12 -06:00
media Fix up the packages search page 2010-01-31 11:50:34 -06:00
mirrors Use select_related() for some mirror pages 2010-01-30 13:53:11 -06:00
news modified import paths from archweb_dev to archweb 2009-11-09 22:24:34 -02:00
packages Use select_related() to make a few more places more performant 2010-01-31 15:19:12 -06:00
public Use select_related() to make a few more places more performant 2010-01-31 15:19:12 -06:00
scripts Handle empty pkgdesc and url a bit better 2010-01-31 16:08:06 -06:00
templates Touch up the depends and requiredby display in package details 2010-01-31 16:43:48 -06:00
todolists Use select_related() to make a few more places more performant 2010-01-31 15:19:12 -06:00
__init__.py
.gitignore No More Doh 2009-05-04 20:30:09 -04:00
AUTHORS update documentation 2008-10-10 18:38:08 -04:00
feeds.py Make the feed titles more descriptive 2010-01-31 15:36:42 -06:00
HACKING update documentation 2008-10-10 18:38:08 -04:00
LICENSE
local_settings.py.example Update cache settings in local_settings example 2010-01-31 13:13:46 -06:00
manage.py Massive retab fest. 2007-12-29 16:42:55 -08:00
README update documentation 2008-10-10 18:38:08 -04:00
settings.py Add initial South migration for 'main' app 2010-01-31 13:20:49 -06:00
sitemaps.py added sitemaps from archweb_pub 2009-11-09 22:24:45 -02:00
TODO drop a couple completed to-dos and blank lines 2008-10-11 20:07:26 -04:00
urls.py added missing packages views from archweb_pub 2009-11-09 22:24:52 -02:00

# License
 See LICENSE file.

# Authors
 See AUTHORS file.

# Dependencies
 - python
 - mysql-python or python-pysqlite
 - Django = 1.0

# Installation
For a simple testing installation:

 1. Install dependencies.
    $ pacman -S django python-pysqlite sqlite3
 
 2. Copy local_settings.py.example to local_settings.py and modify.
    Make sure to uncomment the appropriate db section (either sqlite or mysql).

 3. Sync the database to create it.
    $ python manage.py syncdb

 4. Load the fixtures to prepopulate some data.
    $ python manage.py loaddata arches.json repos.json
    
 5. Use the following commands to start a service instance
    $ python manage.py runserver

 6. To optionally populate the database with real data:
    $ wget ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
    $ scripts/reporead.py i686 ./core.db.tar.gz

    (alter architecture and repo to get x86_64 and extra packages if needed)