Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbradberry/django-turn-generation
Timed generation of turns in turn-based game apps
https://github.com/jbradberry/django-turn-generation
Last synced: 20 days ago
JSON representation
Timed generation of turns in turn-based game apps
- Host: GitHub
- URL: https://github.com/jbradberry/django-turn-generation
- Owner: jbradberry
- License: mit
- Created: 2013-11-20T02:45:08.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-12-21T02:21:28.000Z (about 5 years ago)
- Last Synced: 2024-10-28T19:44:05.506Z (2 months ago)
- Language: Python
- Size: 107 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
======================
django-turn-generation
======================.. image:: https://travis-ci.com/jbradberry/django-turn-generation.svg?branch=master
:target: https://travis-ci.com/jbradberry/django-turn-generationA Django app for specifying the timing of and triggering turn
generation for turn-based strategy games.Requirements
------------- Python 2.7, 3.5+
- Django >= 1.10, < 2.3
- `djangorestframework `_ >= 3.7
- Celery >= 3.1
- python-dateutil
- pytzConfiguration
-------------Add ``'turngeneration'`` to the ``INSTALLED_APPS`` in your settings
file, and the custom permissions plugin to ``AUTHENTICATION_BACKENDS``
::INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',# Added.
'rest_framework',
'turngeneration',
]AUTHENTICATION_BACKENDS = [
'turngeneration.backends.TurnGenerationBackend',
'django.contrib.auth.backends.ModelBackend',
]Also, be sure to include ``turngeneration.urls`` in your root urlconf.
Example::
from django.conf.urls import include, url
urlpatterns = [
url(r'^', include('turngeneration.urls')),
url(r'^admin/', include('admin.site.urls')),
url(r'^accounts/', include('django.contrib.auth.urls'),
]