Moving.
This commit is contained in:
parent
2421c23521
commit
b9b62c2f8f
30 changed files with 0 additions and 0 deletions
0
trunk/apps/config/__init__.py
Executable file
0
trunk/apps/config/__init__.py
Executable file
BIN
trunk/apps/config/__init__.pyc
Executable file
BIN
trunk/apps/config/__init__.pyc
Executable file
Binary file not shown.
27
trunk/apps/config/models.py
Executable file
27
trunk/apps/config/models.py
Executable 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
BIN
trunk/apps/config/models.pyc
Executable file
Binary file not shown.
1
trunk/apps/config/views.py
Executable file
1
trunk/apps/config/views.py
Executable file
|
|
@ -0,0 +1 @@
|
|||
# Create your views here.
|
||||
Loading…
Add table
Add a link
Reference in a new issue