Moved src/gen/web to src/web
svn: r13547
This commit is contained in:
parent
08d8861048
commit
f90c2db4cd
@ -137,7 +137,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(os.path.join(ROOT_DIR, 'gen'), 'web')
|
||||
WEB_DIR = os.path.join(ROOT_DIR, 'web')
|
||||
#SYSTEM_FILTERS = os.path.join(DATA_DIR, "system_filters.xml")
|
||||
TIP_DATA = os.path.join(DATA_DIR, "tips.xml")
|
||||
|
||||
|
@ -59,14 +59,14 @@ _ = translator.gettext
|
||||
ngettext = translator.ngettext
|
||||
|
||||
from django.conf import settings
|
||||
import gen.web.settings as default_settings
|
||||
import web.settings as default_settings
|
||||
try:
|
||||
settings.configure(default_settings, DEBUG=True)
|
||||
except RuntimeError:
|
||||
# already configured; ignore
|
||||
pass
|
||||
|
||||
from gen.web.libdjango import DjangoInterface
|
||||
from web.libdjango import DjangoInterface
|
||||
|
||||
def export_all(database, filename, option_box=None, callback=None):
|
||||
if not callable(callback):
|
||||
|
@ -1,19 +1,19 @@
|
||||
# Initialize GRAMPS Django site
|
||||
|
||||
update: grampsdb/fixtures/initial_data.json
|
||||
PYTHONPATH=../../../src python manage.py syncdb
|
||||
PYTHONPATH=../../src python manage.py syncdb
|
||||
|
||||
grampsdb/fixtures/initial_data.json:
|
||||
PYTHONPATH=../../../src python init.py > grampsdb/fixtures/initial_data.json
|
||||
PYTHONPATH=../../src python init.py > grampsdb/fixtures/initial_data.json
|
||||
|
||||
init_gramps:
|
||||
PYTHONPATH=../../../src python init_gramps.py # clear primary and secondary tables
|
||||
PYTHONPATH=../../src python init_gramps.py # clear primary and secondary tables
|
||||
|
||||
run:
|
||||
PYTHONPATH=../../../src python manage.py runserver
|
||||
PYTHONPATH=../../src python manage.py runserver
|
||||
|
||||
sql:
|
||||
PYTHONPATH=../../../src python manage.py sqlall > gramps_sql.txt
|
||||
PYTHONPATH=../../src python manage.py sqlall > gramps_sql.txt
|
||||
|
||||
docs:
|
||||
mkdir -p docs
|
@ -1,6 +1,7 @@
|
||||
import web
|
||||
import gen
|
||||
from gen.db import GrampsDbBase
|
||||
from gen.web.libdjango import DjangoInterface
|
||||
from web.libdjango import DjangoInterface
|
||||
import Utils
|
||||
|
||||
# class Trans(object):
|
@ -1,7 +1,7 @@
|
||||
# forms.py forms for Django project gen.web
|
||||
# forms.py forms for Django web project
|
||||
|
||||
from django import forms
|
||||
from gen.web.grampsdb.models import *
|
||||
from web.grampsdb.models import *
|
||||
from django.forms.models import inlineformset_factory
|
||||
from django.forms.models import BaseModelFormSet
|
||||
import datetime
|
@ -1,4 +1,4 @@
|
||||
from gen.web.grampsdb.models import *
|
||||
from web.grampsdb.models import *
|
||||
from django.contrib import admin
|
||||
|
||||
for type_name in get_tables("all"):
|
@ -18,7 +18,7 @@
|
||||
"setting" : "db_created" ,
|
||||
"description" : "database creation date/time" ,
|
||||
"value_type" : "str" ,
|
||||
"value" : "2009-11-10 08:08"
|
||||
"value" : "2009-11-10 09:20"
|
||||
}
|
||||
},
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
from django.template import escape, Library
|
||||
from gen.web import libdjango
|
||||
from gen.web import djangodb
|
||||
import gen.web.grampsdb.models as models
|
||||
from web import libdjango
|
||||
from web import djangodb
|
||||
import web.grampsdb.models as models
|
||||
from gen.lib.date import Date as GDate, Today
|
||||
import DateHandler
|
||||
|
@ -8,9 +8,9 @@ from django.shortcuts import get_object_or_404, render_to_response
|
||||
from django.template import Context, RequestContext, escape
|
||||
from django.db.models import Q
|
||||
|
||||
import gen
|
||||
from gen.web.grampsdb.models import *
|
||||
from gen.web.settings import VIEWS
|
||||
import web
|
||||
from web.grampsdb.models import *
|
||||
from web.settings import VIEWS
|
||||
|
||||
def get_views():
|
||||
'''
|
||||
@ -21,7 +21,7 @@ def get_views():
|
||||
def main_page(request):
|
||||
context = RequestContext(request)
|
||||
context["views"] = [(pair[0], pair[1],
|
||||
getattr(gen.web.grampsdb.models, pair[2]).objects.count())
|
||||
getattr(web.grampsdb.models, pair[2]).objects.count())
|
||||
for pair in get_views()]
|
||||
context["view"] = 'home'
|
||||
context["cview"] = 'Home'
|
@ -1,7 +1,8 @@
|
||||
import time
|
||||
|
||||
import gen.web.grampsdb.models as models
|
||||
import web.grampsdb.models as models
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
import web
|
||||
import gen
|
||||
|
||||
# To get a django person from a django database:
|
@ -37,7 +37,7 @@ MIDDLEWARE_CLASSES = (
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
)
|
||||
|
||||
ROOT_URLCONF = 'gen.web.urls'
|
||||
ROOT_URLCONF = 'web.urls'
|
||||
|
||||
TEMPLATE_DIRS = (
|
||||
# Use absolute paths, not relative paths.
|
||||
@ -50,7 +50,7 @@ INSTALLED_APPS = (
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
'django.contrib.admin',
|
||||
'gen.web.grampsdb',
|
||||
'web.grampsdb',
|
||||
# 'django_extensions',
|
||||
)
|
||||
|
Binary file not shown.
@ -6,8 +6,8 @@ from django.conf.urls.defaults import *
|
||||
from django.contrib import admin
|
||||
admin.autodiscover()
|
||||
|
||||
from gen.web.grampsdb.views import (main_page, user_page, logout_page,
|
||||
view, view_detail)
|
||||
from web.grampsdb.views import (main_page, user_page, logout_page,
|
||||
view, view_detail)
|
||||
|
||||
urlpatterns = patterns('',
|
||||
# Specific matches first:
|
Loading…
Reference in New Issue
Block a user