import os
sys.path = sys.path + [os.path.dirname(os.path.dirname(os.path.abspath(__file__)))]
-os.environ['DJANGO_SETTINGS_MODULE']='ee.settings'
+os.environ['DJANGO_SETTINGS_MODULE']='xerxes.settings'
import MySQLdb
from django.contrib.auth.models import User
-from ee.base.models import UserProfile
+from xerxes.base.models import UserProfile
from datetime import datetime
conn = MySQLdb.connect(
from django.db.models import signals
from django.dispatch import dispatcher
from django.conf import settings
-from ee.influences.models import Character,Influence
-from ee.tools.notify import notify
+from xerxes.influences.models import Character,Influence
+from xerxes.tools.notify import notify
from django.contrib.auth.models import Group
def character_saved(instance, created):
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, HttpResponseForbidden
from django.views.generic.list_detail import object_detail, object_list
-from ee.influences.models import Character
-from ee.influences.models import Influence
-from ee.tools.forms import ContextModelForm
+from xerxes.influences.models import Character
+from xerxes.influences.models import Influence
+from xerxes.tools.forms import ContextModelForm
-# Django settings for ee project.
+# Django settings for xerxes project.
import os
MEDIA_URL = ''
# URL prefix for static files. Will be made available by
-# ee.tools.context_processors.static
+# xerxes.tools.context_processors.static
STATIC_URL_PREFIX = '/static/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
#'django.middleware.locale.LocaleMiddleware',
)
-ROOT_URLCONF = 'ee.urls'
+ROOT_URLCONF = 'xerxes.urls'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
- 'ee.events',
- 'ee.influences',
- 'ee.base',
- 'ee.tools',
+ 'xerxes.events',
+ 'xerxes.influences',
+ 'xerxes.base',
+ 'xerxes.tools',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
# Add STATIC_URL_PREFIX to the context
- "ee.tools.context_processors.static",
+ "xerxes.tools.context_processors.static",
)
LOGIN_URL = "/accounts/login/"
# Allow authentication against the phpb user accounts
AUTHENTICATION_BACKENDS = (
- 'ee.auth.PhpBBBackend',
+ 'xerxes.auth.PhpBBBackend',
'django.contrib.auth.backends.ModelBackend',
)
from django.contrib.auth.models import User,Group
from django.core.mail import EmailMessage
from django.template import loader
-from ee.tools.misc import make_iter
+from xerxes.tools.misc import make_iter
"""
Notify someone about something.
from django.conf import settings
from django.conf.urls.defaults import *
-from ee.influences.models import Character
-from ee.influences.models import Influence
+from xerxes.influences.models import Character
+from xerxes.influences.models import Influence
import os
urlpatterns = patterns('',
url(r'^$', 'django.views.generic.simple.redirect_to', {'url' : '/influences/'}),
url(r'^admin/', include('django.contrib.admin.urls')),
- url(r'^influences/$', 'ee.influences.views.index', name='influences_index'),
- url(r'^influences/influence/$', 'ee.influences.views.influence_list', name='influences_influence_list'),
- url(r'^influences/influence/(?P<object_id>\d+)/$', 'ee.influences.views.influence_detail', name='influences_influence_detail'),
- url(r'^influences/influence/add/(\d+)/$', 'ee.influences.views.add_influence', name='influences_add_influence_for_character'),
- url(r'^influences/influence/add/$', 'ee.influences.views.add_influence', name='influences_add_influence'),
+ url(r'^influences/$', 'xerxes.influences.views.index', name='influences_index'),
+ url(r'^influences/influence/$', 'xerxes.influences.views.influence_list', name='influences_influence_list'),
+ url(r'^influences/influence/(?P<object_id>\d+)/$', 'xerxes.influences.views.influence_detail', name='influences_influence_detail'),
+ url(r'^influences/influence/add/(\d+)/$', 'xerxes.influences.views.add_influence', name='influences_add_influence_for_character'),
+ url(r'^influences/influence/add/$', 'xerxes.influences.views.add_influence', name='influences_add_influence'),
- url(r'^influences/character/$', 'ee.influences.views.character_list', name='influences_character_list'),
- url(r'^influences/character/(?P<object_id>\d+)/$', 'ee.influences.views.character_detail', name='influences_character_detail'),
- url(r'^influences/character/add/$', 'ee.influences.views.add_character', name='influences_add_character'),
+ url(r'^influences/character/$', 'xerxes.influences.views.character_list', name='influences_character_list'),
+ url(r'^influences/character/(?P<object_id>\d+)/$', 'xerxes.influences.views.character_detail', name='influences_character_detail'),
+ url(r'^influences/character/add/$', 'xerxes.influences.views.add_character', name='influences_add_character'),
url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'base/login.html'}, name='login'),
url(r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='logout'),