mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 16:26:30 +01:00
Fixed a really obnoxious path/namespace problem. Hooray.
This commit is contained in:
parent
0adfd4d45c
commit
c3ce3451b3
9 changed files with 15 additions and 16 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from django.db import models
|
||||
import evennia.ansi
|
||||
import ansi
|
||||
|
||||
# Create your models here.
|
||||
class HelpEntry(models.Model):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
import evennia.defines_global as global_defines
|
||||
import evennia.ansi
|
||||
import defines_global as global_defines
|
||||
import ansi
|
||||
|
||||
class Attribute(models.Model):
|
||||
"""
|
||||
|
|
@ -57,7 +57,7 @@ class Object(models.Model):
|
|||
)
|
||||
|
||||
class Admin:
|
||||
list_display = ('id', 'name', 'type', 'owner', 'date_created')
|
||||
list_display = ('id', 'name', 'type', 'date_created')
|
||||
|
||||
"""
|
||||
BEGIN COMMON METHODS
|
||||
|
|
@ -583,5 +583,5 @@ class Object(models.Model):
|
|||
def __str__(self):
|
||||
return "%s(#%d%s)" % (self.get_ansiname(), self.id, self.flag_string())
|
||||
|
||||
import evennia.functions_db
|
||||
import evennia.session_mgr
|
||||
import functions_db
|
||||
import session_mgr
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import time
|
|||
import functions_general
|
||||
import functions_db
|
||||
import functions_help
|
||||
import evennia.defines_global as global_defines
|
||||
import defines_global as global_defines
|
||||
import session_mgr
|
||||
import ansi
|
||||
import os
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -24,8 +24,8 @@
|
|||
<Directory "/home/evennia/evennia">
|
||||
SetHandler python-program
|
||||
PythonHandler django.core.handlers.modpython
|
||||
PythonPath "['/home/evennia'] + sys.path"
|
||||
SetEnv DJANGO_SETTINGS_MODULE evennia.settings
|
||||
PythonPath "['/home/evennia/evennia'] + sys.path"
|
||||
SetEnv DJANGO_SETTINGS_MODULE settings
|
||||
PythonDebug On
|
||||
</Directory>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ from django.db import connection
|
|||
from django.contrib.auth.models import User
|
||||
from apps.objects.models import Object
|
||||
from apps.config.models import ConfigValue
|
||||
import evennia.defines_global as global_defines
|
||||
import defines_global as global_defines
|
||||
import gameconf
|
||||
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
#!/bin/bash
|
||||
export DJANGO_SETTINGS_MODULE="settings"
|
||||
export PYTHONPATH=/home/gtaylor/dev/
|
||||
python2.5 server.py
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from apps.config.models import CommandAlias
|
|||
import scheduler
|
||||
import functions_db
|
||||
import functions_general
|
||||
import evennia.defines_global as global_defines
|
||||
import defines_global as global_defines
|
||||
import session_mgr
|
||||
import gameconf
|
||||
import settings
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ MIDDLEWARE_CLASSES = (
|
|||
'django.middleware.doc.XViewMiddleware',
|
||||
)
|
||||
|
||||
ROOT_URLCONF = 'evennia.urls'
|
||||
ROOT_URLCONF = 'urls'
|
||||
|
||||
TEMPLATE_DIRS = (
|
||||
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
||||
|
|
@ -74,7 +74,7 @@ INSTALLED_APPS = (
|
|||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.admin',
|
||||
'evennia.apps.config',
|
||||
'evennia.apps.objects',
|
||||
'evennia.apps.helpsys',
|
||||
'apps.config',
|
||||
'apps.objects',
|
||||
'apps.helpsys',
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue