Splitting web stuff off into a separate apps directory. This stuff will end up being replaced/re-written, it's ancient and really badly done.
This commit is contained in:
parent
75b39ada13
commit
ed1510c4a7
12 changed files with 23 additions and 23 deletions
0
apps/news/__init__.py → apps/helpsys/managers/__init__.py
Executable file → Normal file
0
apps/news/__init__.py → apps/helpsys/managers/__init__.py
Executable file → Normal file
|
|
@ -1,38 +1,38 @@
|
||||||
"""
|
"""
|
||||||
Common settings that don't change very much. This allows us to update things
|
Common settings that don't change very much. This allows us to update things
|
||||||
like apps through subversion without developers having to modify their
|
like apps through subversion without developers having to modify their
|
||||||
settings.py file, which is not versioned.
|
settings.py file, which is not versioned.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# List of callables that know how to import templates from various sources.
|
# List of callables that know how to import templates from various sources.
|
||||||
TEMPLATE_LOADERS = (
|
TEMPLATE_LOADERS = (
|
||||||
'django.template.loaders.filesystem.load_template_source',
|
'django.template.loaders.filesystem.load_template_source',
|
||||||
'django.template.loaders.app_directories.load_template_source',
|
'django.template.loaders.app_directories.load_template_source',
|
||||||
)
|
)
|
||||||
|
|
||||||
# Context processors define context variables, generally for the template
|
# Context processors define context variables, generally for the template
|
||||||
# system to use.
|
# system to use.
|
||||||
TEMPLATE_CONTEXT_PROCESSORS = (
|
TEMPLATE_CONTEXT_PROCESSORS = (
|
||||||
'django.core.context_processors.auth',
|
'django.core.context_processors.auth',
|
||||||
'django.core.context_processors.debug',
|
'django.core.context_processors.debug',
|
||||||
'django.core.context_processors.i18n',
|
'django.core.context_processors.i18n',
|
||||||
'django.core.context_processors.media',
|
'django.core.context_processors.media',
|
||||||
'apps.website.webcontext.general_context',
|
'apps.website.webcontext.general_context',
|
||||||
)
|
)
|
||||||
|
|
||||||
# MiddleWare are semi-transparent extensions to Django's functionality.
|
# MiddleWare are semi-transparent extensions to Django's functionality.
|
||||||
# see http://www.djangoproject.com/documentation/middleware/ for a more detailed
|
# see http://www.djangoproject.com/documentation/middleware/ for a more detailed
|
||||||
# explanation.
|
# explanation.
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE_CLASSES = (
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
'django.middleware.doc.XViewMiddleware',
|
'django.middleware.doc.XViewMiddleware',
|
||||||
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
|
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
|
||||||
)
|
)
|
||||||
|
|
||||||
# Global and Evennia-specific apps. This ties everything together so we can
|
# Global and Evennia-specific apps. This ties everything together so we can
|
||||||
# refer to app models and perform DB syncs.
|
# refer to app models and perform DB syncs.
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.sites',
|
'django.contrib.sites',
|
||||||
|
|
@ -44,6 +44,6 @@ INSTALLED_APPS = (
|
||||||
'apps.objects',
|
'apps.objects',
|
||||||
'apps.helpsys',
|
'apps.helpsys',
|
||||||
'apps.genperms',
|
'apps.genperms',
|
||||||
'apps.news',
|
'webapps.news',
|
||||||
'apps.website',
|
'webapps.website',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
0
webapps/news/__init__.py
Executable file
0
webapps/news/__init__.py
Executable file
|
|
@ -1,6 +1,6 @@
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
|
|
||||||
urlpatterns = patterns('apps.news.views',
|
urlpatterns = patterns('webapps.news.views',
|
||||||
(r'^show/(?P<entry_id>\d+)/$', 'show_news'),
|
(r'^show/(?P<entry_id>\d+)/$', 'show_news'),
|
||||||
(r'^archive/$', 'news_archive'),
|
(r'^archive/$', 'news_archive'),
|
||||||
(r'^search/$', 'search_form'),
|
(r'^search/$', 'search_form'),
|
||||||
|
|
@ -13,7 +13,7 @@ from django.contrib.auth.models import User
|
||||||
from django import newforms as forms
|
from django import newforms as forms
|
||||||
from django.db.models import Q
|
from django.db.models import Q
|
||||||
|
|
||||||
from apps.news.models import NewsTopic, NewsEntry
|
from webapps.news.models import NewsTopic, NewsEntry
|
||||||
|
|
||||||
# The sidebar text to be included as a variable on each page. There's got to
|
# The sidebar text to be included as a variable on each page. There's got to
|
||||||
# be a better, cleaner way to include this on every page.
|
# be a better, cleaner way to include this on every page.
|
||||||
0
webapps/website/__init__.py
Normal file
0
webapps/website/__init__.py
Normal file
|
|
@ -1,5 +1,5 @@
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
|
|
||||||
urlpatterns = patterns('apps.website.views',
|
urlpatterns = patterns('webapps.website.views',
|
||||||
(r'^$', 'page_index'),
|
(r'^$', 'page_index'),
|
||||||
)
|
)
|
||||||
|
|
@ -2,7 +2,7 @@ from django.shortcuts import render_to_response, get_object_or_404
|
||||||
from django.template import RequestContext
|
from django.template import RequestContext
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
|
|
||||||
from apps.news.models import NewsEntry
|
from webapps.news.models import NewsEntry
|
||||||
import functions_db
|
import functions_db
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Loading…
Add table
Add a link
Reference in a new issue