Moved src/web to src/webapp
svn: r18329
This commit is contained in:
parent
3773107669
commit
d2eac17b4f
@ -178,7 +178,7 @@ RULE_GLADE = os.path.join(GLADE_DIR, "rule.glade")
|
||||
|
||||
PLUGINS_DIR = os.path.join(ROOT_DIR, "plugins")
|
||||
DATA_DIR = os.path.join(ROOT_DIR, "data")
|
||||
WEB_DIR = os.path.join(ROOT_DIR, 'web')
|
||||
WEB_DIR = os.path.join(ROOT_DIR, 'webapp')
|
||||
#SYSTEM_FILTERS = os.path.join(DATA_DIR, "system_filters.xml")
|
||||
TIP_DATA = os.path.join(DATA_DIR, "tips.xml")
|
||||
WEBSTUFF_DIR = os.path.join(PLUGINS_DIR, "webstuff")
|
||||
|
@ -1,4 +1,4 @@
|
||||
from web.grampsdb.models import *
|
||||
from webapp.grampsdb.models import *
|
||||
from django.contrib import admin
|
||||
|
||||
for type_name in get_tables("all"):
|
||||
|
@ -1,7 +1,7 @@
|
||||
# forms.py forms for Django web project
|
||||
|
||||
from django import forms
|
||||
from web.grampsdb.models import *
|
||||
from webapp.grampsdb.models import *
|
||||
from django.forms.models import inlineformset_factory
|
||||
from django.forms.models import BaseModelFormSet
|
||||
from django.forms.widgets import TextInput
|
||||
|
@ -36,7 +36,7 @@ from django.contrib.contenttypes import generic
|
||||
from gen.lib.date import Date as GDate, Today
|
||||
from Utils import create_id, create_uid
|
||||
|
||||
from web.grampsdb.profile import Profile
|
||||
from webapp.grampsdb.profile import Profile
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -41,10 +41,10 @@ from django.db.models import Q
|
||||
# Gramps Modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import web
|
||||
from web.grampsdb.models import *
|
||||
from web.grampsdb.forms import *
|
||||
from web.dbdjango import DbDjango
|
||||
import webapp
|
||||
from webapp.grampsdb.models import *
|
||||
from webapp.grampsdb.forms import *
|
||||
from webapp.dbdjango import DbDjango
|
||||
|
||||
import gen.proxy
|
||||
from Utils import create_id
|
||||
@ -248,8 +248,8 @@ def send_file(request, filename, mimetype):
|
||||
return response
|
||||
|
||||
def process_action(request, view, handle, action):
|
||||
from web.reports import import_file
|
||||
from web.reports import export_file
|
||||
from webapp.reports import import_file
|
||||
from webapp.reports import export_file
|
||||
from cli.plug import run_report
|
||||
db = DbDjango()
|
||||
if view == "report":
|
||||
|
@ -9,7 +9,7 @@ import os
|
||||
# ------------------------------
|
||||
# from cli.plug import run_report
|
||||
# from django.conf import settings
|
||||
# import web.settings as default_settings
|
||||
# import webapp.settings as default_settings
|
||||
# try:
|
||||
# settings.configure(default_settings)
|
||||
# except:
|
||||
|
@ -71,7 +71,7 @@ MIDDLEWARE_CLASSES = (
|
||||
# 'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||
)
|
||||
|
||||
ROOT_URLCONF = 'web.urls'
|
||||
ROOT_URLCONF = 'webapp.urls'
|
||||
|
||||
TEMPLATE_DIRS = (
|
||||
# Use absolute paths, not relative paths.
|
||||
@ -83,7 +83,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
|
||||
# "django.core.context_processors.debug",
|
||||
"django.core.context_processors.i18n",
|
||||
"django.core.context_processors.media",
|
||||
"web.grampsdb.views.context_processor",
|
||||
"webapp.grampsdb.views.context_processor",
|
||||
)
|
||||
|
||||
INSTALLED_APPS = (
|
||||
@ -92,7 +92,7 @@ INSTALLED_APPS = (
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
'django.contrib.admin',
|
||||
'web.grampsdb',
|
||||
'webapp.grampsdb',
|
||||
# 'django_extensions',
|
||||
# 'debug_toolbar',
|
||||
)
|
||||
|
@ -38,9 +38,9 @@ from django.conf.urls.defaults import *
|
||||
from django.contrib import admin
|
||||
admin.autodiscover()
|
||||
|
||||
from web.grampsdb.views import (main_page, user_page, logout_page,
|
||||
process_action, view, view_detail,
|
||||
view_name_detail)
|
||||
from webapp.grampsdb.views import (main_page, user_page, logout_page,
|
||||
process_action, view, view_detail,
|
||||
view_name_detail)
|
||||
|
||||
urlpatterns = patterns('',
|
||||
# Specific matches first:
|
||||
|
@ -43,10 +43,10 @@ from django.contrib.contenttypes.models import ContentType
|
||||
# Gramps-Connect Modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import web.grampsdb.models as models
|
||||
import web.grampsdb.forms as forms
|
||||
from web import libdjango
|
||||
from web.dbdjango import DbDjango
|
||||
import webapp.grampsdb.models as models
|
||||
import webapp.grampsdb.forms as forms
|
||||
from webapp import libdjango
|
||||
from webapp.dbdjango import DbDjango
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user