Testing
Go to file
Dan McGee 8c077a4caa Add OpenSearch support to the site
Implements FS#14185. It is a bit more complex than listed there as I wanted
to not hardcode the URLs in the descriptor file; to do this we need to make
it a template and fill some things in. We also need to serve the file using
the correct mime type.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-08 21:01:15 -06:00
devel Make marking out of date actually work 2010-01-31 17:52:08 -06:00
main Make sure we use orm in migrations 2010-02-08 20:51:44 -06:00
media Make the feeds overview page suck less 2010-02-08 20:51:44 -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 Add OpenSearch support to the site 2010-02-08 21:01:15 -06:00
public Make recent updates group multiple architectures 2010-02-05 17:03:35 -06:00
scripts Fix reporead choking on empty values 2010-01-31 18:29:23 -06:00
templates Add OpenSearch support to the site 2010-02-08 21:01:15 -06:00
todolists Use select_related() to make a few more places more performant 2010-01-31 15:19:12 -06:00
__init__.py Initial import for public release... 2007-11-03 03:45:10 -04:00
.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 feeds: add per arch, per repo feed ability 2010-02-04 19:03:32 -06:00
HACKING update documentation 2008-10-10 18:38:08 -04:00
LICENSE Initial import for public release... 2007-11-03 03:45:10 -04:00
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 Make sitemap generation suck a lot less 2010-02-02 21:38:53 -06:00
TODO drop a couple completed to-dos and blank lines 2008-10-11 20:07:26 -04:00
urls.py Add OpenSearch support to the site 2010-02-08 21:01:15 -06: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)