Skip to main content

Django app for qfusion authentication server

Project description

# django-warmama

[![build-status-image]][travis]
[![pypi-version]][pypi]

## Overview

Django app for qfusion authentication server

## Installation

Install using `pip`, please use a virtualenv...

```bash
$ pip install django-warmama
```

## Basic Usage

An example project is provided and is sufficient for testing with QFusion.
Just get the server started.

```bash
cd example-project
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
```

To use it with QFusion, you need to add some User, Server and Player models; so
navigate over to the admin page at
[http://localhost:8000/admin/](http://localhost:8000/admin/) and create some.

1. Create some normal django users first, qf clients will use these username
password combinations to connect.
2. Create warmama Player models. The `login` field must be the username of a
previously created User.
3. Create warmama Server models. The `login` field here will be the server's
authtoken. Either `regip` or `regipv6` must be set to the server's ipaddress,
for local testing `127.0.0.1` is allowed.

Finally configure the QFusion server and clients to use warmama for matchmaking.
For the server, set `sv_mm_enable` to `1` and `sv_mm_authtoken` to the `login`
value of the Server created above. For both the server and client set `mm_url`
to `http://127.0.0.1:8000` (without a trailing slash).

## Advanced Usage

Then configure your django project to use the app, you can override any of the
warmama settings (found in warmama/settings.py) in your project's settings.py
file.

```python
# project/settings.py

INSTALLED_APPS = (
...
'warmama',
)

# project/urls.py
urlpatterns = [
...
url(r'^warmama/', include('warmama.urls', namespace='warmama', app_name='warmama')),
]
```

Finally, run the migrations and (optionally) load the fixtures

```bash
python manage.py migrate
python manage.py loaddata --app warmama gametypes
python manage.py loaddata --app warmama weapons
```

## Testing

Install testing requirements.

```bash
$ pip install -r requirements.txt
```

Run with runtests.

```bash
$ ./runtests.py
```

You can also use the excellent [tox](http://tox.readthedocs.org/en/latest/)
testing tool to run the tests against all supported versions of Python and
Django. Install tox globally, and then simply run:

```bash
$ tox
```

## Documentation

To build the documentation, you'll need to install `mkdocs`.

```bash
$ pip install mkdocs
```

To preview the documentation:

```bash
$ mkdocs serve
Running at: http://127.0.0.1:8000/
```

To build the documentation:

```bash
$ mkdocs build
```


[build-status-image]: https://secure.travis-ci.org/kalhartt/django-warmama.png?branch=master
[travis]: http://travis-ci.org/kalhartt/django-warmama?branch=master
[pypi-version]: https://pypip.in/version/django-warmama/badge.svg
[pypi]: https://pypi.python.org/pypi/django-warmama

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-warmama-1.0.0.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_warmama-1.0.0-py2.py3-none-any.whl (55.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-warmama-1.0.0.tar.gz.

File metadata

File hashes

Hashes for django-warmama-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3a1f1ff908c06e2119a17eeaadd0abb5e4b5bcde9f6fbd9b41c24d40ec7ca8c7
MD5 18732163090625bf2e3f6f2b47e0200c
BLAKE2b-256 cb7d2b76a7bf43f10dca1b5b0a6186dadd1fd3152fd94e9657cab85116365b53

See more details on using hashes here.

File details

Details for the file django_warmama-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_warmama-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c173f4094eb5f2d2892562e0b1d6036e53c10d7344a49f6bf60e920f2d5511a4
MD5 03fe2c415158971737aab57099666ef0
BLAKE2b-256 9e9bd7b1330a535120426536e9e32776ba868728066b81c10e530c4f2333d825

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page