django-diplomacy
django-diplomacy copied to clipboard
A play-by-web app for Diplomacy.
========= Diplomacy
.. image:: https://travis-ci.com/jbradberry/django-diplomacy.svg?branch=master :target: https://travis-ci.com/jbradberry/django-diplomacy
Diplomacy is a turn-based strategy game, set in Europe at the start of World War I. Each player represents one of the seven European Great Powers.
For game instructions and other useful info, see
http://www.wizards.com/default.asp?x=ah/prod/diplomacy
See also http://en.wikipedia.org/wiki/Diplomacy_(game)
Requirements
- Python 2.7, 3.5+
- Django >= 1.10, < 2.3
Recommended
django-turn-generation <https://github.com/jbradberry/django-turn-generation>_django-postoffice <https://github.com/jbradberry/django-postoffice>_
Installation
Use pip to install django-diplomacy from github ::
pip install git+https://github.com/jbradberry/django-diplomacy.git
Configuration
Add Django Diplomacy to the INSTALLED_APPS in your settings file.
::
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Added.
'diplomacy',
)
Also, be sure to include diplomacy.urls in your root urlconf.
Example::
from django.conf.urls import include, url
urlpatterns = [
url(r'^', include('diplomacy.urls')),
url(r'^admin/', include('admin.site.urls')),
url(r'^accounts/', include('django.contrib.auth.urls'),
]