This commit is contained in:
Greg Taylor 2006-11-20 18:54:49 +00:00
parent 2421c23521
commit b9b62c2f8f
30 changed files with 0 additions and 0 deletions

0
trunk/apps/config/__init__.py Executable file
View file

BIN
trunk/apps/config/__init__.pyc Executable file

Binary file not shown.

27
trunk/apps/config/models.py Executable file
View file

@ -0,0 +1,27 @@
from django.db import models
class CommandAlias(models.Model):
"""
Command aliases.
"""
user_input = models.CharField(maxlength=50)
equiv_command = models.CharField(maxlength=50)
class Admin:
list_display = ('user_input', 'equiv_command',)
class Config(models.Model):
"""
Although we technically have the ability to create more than one Config
object via the admin interface, we only really need one. This also leaves
the possibility for multiple games hosted on the same codebase or database
in the future, although this is not a priority. In any case, this model
contains most of the game-specific configuration.
"""
site_name = models.CharField(maxlength=100)
site_description = models.TextField(blank=True)
site_website = models.URLField(blank=True)
player_start_dbnum = models.IntegerField()
class Admin:
list_display = ('site_name', 'site_website',)

BIN
trunk/apps/config/models.pyc Executable file

Binary file not shown.

1
trunk/apps/config/views.py Executable file
View file

@ -0,0 +1 @@
# Create your views here.