Merge lp:~pydjwiki-dev/pydjwiki/no-proj into lp:pydjwiki

Proposed by M. Nesvold
Status: Merged
Approved by: M. Nesvold
Approved revision: 39
Merged at revision: 28
Proposed branch: lp:~pydjwiki-dev/pydjwiki/no-proj
Merge into: lp:pydjwiki
Diff against target: None lines
To merge this branch: bzr merge lp:~pydjwiki-dev/pydjwiki/no-proj
Reviewer Review Type Date Requested Status
Louis Wilson Needs Fixing
Review via email: mp+6432@code.launchpad.net
To post a comment you must log in.
Revision history for this message
M. Nesvold (mdnesvold) wrote :

You probably want to double-check me that the installation instructions actually work.

lp:~pydjwiki-dev/pydjwiki/no-proj updated
33. By M. Nesvold

Fixed fatal typo in installation instructions

34. By Louis Wilson <email address hidden>

Updated the documentation build system to use Make

35. By Louis Wilson <email address hidden>

Changed two docstrings to refer to non-deprecated functions

36. By Louis Wilson <email address hidden>

Updated installation documentation

Revision history for this message
Louis Wilson (louis-wins) wrote :

Installation instructions seem to be lacking. I fixed what I could, but could not figure out how to get it to use the CSS file. For some reason PYDJWIKI_MEDIA_ROOT is not being defined, and I'm not really sure how that Middleware is supposed to work.
Also, as far as I can tell, the user has to add "${SITE_PACKAGES_DIR}/pydjwiki/templates" to their TEMPLATE_DIRS variable (unless this can be added to the included settings.py somehow), which seems bad to me. This still doesn't fix the previous issue, though.
I'll add this as a bug.

review: Needs Fixing
lp:~pydjwiki-dev/pydjwiki/no-proj updated
37. By M. Nesvold

Fixed autoloading of default data fixture on first syncdb

38. By M. Nesvold

Updated installation instructions to include installing humanize

39. By M. Nesvold

Added patch for bug #377492

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== renamed file 'wiki/pydjwiki/__init__.py' => '__init__.py'
=== renamed file 'wiki/pydjwiki/admin.py' => 'admin.py'
=== renamed file 'wiki/pydjwiki/deprecation.py' => 'deprecation.py'
=== renamed file 'wiki/pydjwiki/djhooks.py' => 'djhooks.py'
=== renamed directory 'wiki/pydjwiki/doc' => 'doc'
=== added file 'doc/Installation.tex'
--- doc/Installation.tex 1970-01-01 00:00:00 +0000
+++ doc/Installation.tex 2009-05-11 17:55:38 +0000
@@ -0,0 +1,65 @@
1\documentclass{article}
2
3\usepackage{fullpage}
4
5\begin{document}
6\title{PyDjWiki Installation Guide}
7\author{}
8\date{}
9\maketitle
10
11\begin{abstract}
12This document describes the steps necessary to get the PyDjWiki app running on a Django project.
13\end{abstract}
14
15\section{Start your project}
16
17If you haven't done so already, start a project using \texttt{django-admin.py startproject}.
18
19\section{Download PyDjWiki}
20
21If you're reading this document, you've probably already done that. You can put the download wherever you want; you can either put it directly in your \texttt{site-packages} directory (as long as you name the folder \texttt{pydjwiki}), or somewhere else and put a symbolic link in \texttt{site-packages}:
22
23\begin{verbatim}
24ln -s path/to/download path/to/site-packages/pydjwiki
25\end{verbatim}
26
27\subsection{Finding \texttt{site-packages}}
28
29You can find out where your \texttt{site-packages} directory is located by typing the following into a shell prompt:
30
31\begin{verbatim}
32python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
33\end{verbatim}
34
35\section{Install the app}
36
37Now you have to tell your site project to use the PyDjWiki app.
38
39\subsection{Modify \texttt{settings.py}}
40
41In your project's \texttt{settings.py}, make the following changes:
42
43\begin{enumerate}
44\item Add the string \texttt{"pydjwiki.djhooks.PyDjWikiMiddleware"} to the beginning of your \texttt{MIDDLEWARE\_{}CLASSES} setting.
45\item Add the string \texttt{"pydjwiki.djhooks.context\_{}processor\_{}pydjwiki"} to your \texttt{TEMPLATE\_{}CONTEXT\_{}PROCESSORS} settings.
46\item Anywhere in the file, preferably near the top, add the line \texttt{from pydjwiki.settings import *} to import default PyDjWiki settings. (This will also set \texttt{LOGIN\_{}URL} and \texttt{LOGIN\_{}REDIRECT\_{}URL} if they aren't defined elsewhere in your settings file.)
47\end{enumerate}
48
49\subsection{Modify your URLConf}
50
51Add the following to your \texttt{urls.py} file:
52
53\begin{verbatim}
54urlpatterns += patterns("",
55 (r"^%s" % settings.PYDJWIKI_URL_ROOT[1:], include("pydjwiki.urls")),
56)
57\end{verbatim}
58
59\subsection{Sync your database}
60
61From the directory with your project's \texttt{manage.py} file, enter \texttt{python manage.py syncdb} into a shell prompt to create PyDjWiki's tables.
62
63The first time you do this with PyDjWiki installed, entries will be automatically created in the Namespace, Title, and Revision tables to provide a default front page (\texttt{meta/Front Page}) with sample content. This happens when PyDjWiki detects those three tables being created in the same \texttt{syncdb} run. If, for some reason, not all the tables are created at the same time, don't worry. The default data is stored in a fixture, so make sure all the necessary tables have been created and invoke \texttt{python manage.py loaddata pydjwikistart.xml} to load it in.
64
65%\end{document}
0\ No newline at end of file66\ No newline at end of file
167
=== modified file 'doc/Wikitext Extensibility.tex'
--- wiki/pydjwiki/doc/Wikitext Extensibility.tex 2009-05-10 21:31:13 +0000
+++ doc/Wikitext Extensibility.tex 2009-05-11 17:56:14 +0000
@@ -88,7 +88,8 @@
88In this case, the revelant node becomes88In this case, the revelant node becomes
8989
90\begin{verbatim}90\begin{verbatim}
91ExtensionNode (name="CHLOROPLETH" args={"base": "United States", ...} data="AL=9\nAK=3...")91ExtensionNode (name="CHLOROPLETH" args={"base": "United States", ...}
92 data="AL=9\nAK=3...")
92\end{verbatim}93\end{verbatim}
9394
94Which evaluates to95Which evaluates to
@@ -96,9 +97,9 @@
96\begin{verbatim}97\begin{verbatim}
97DocumentNode98DocumentNode
98|--- ParagraphNode99|--- ParagraphNode
99| |--- TextNode (text="The distribution of electoral votes is shown on the right.")100| |--- TextNode (text="The distribution ... is shown on the right.")
100|--- FloatNode (class="Figure")101|--- FloatNode (class="Figure")
101| |--- ImageNode (src="ext/chloropleth/United-States-c5dd1b2697720fe692c529688d3f4f8d.svg")102| |--- ImageNode (src="ext/chloropleth/United-States-hash.svg")
102\end{verbatim}103\end{verbatim}
103104
104\section{Handler methods}105\section{Handler methods}
105106
=== renamed file 'wiki/pydjwiki/dpr.py' => 'dpr.py'
=== renamed directory 'wiki/pydjwiki/dynamic' => 'dynamic'
=== added directory 'fixtures'
=== added file 'fixtures/pydjwikistart.xml'
--- fixtures/pydjwikistart.xml 1970-01-01 00:00:00 +0000
+++ fixtures/pydjwikistart.xml 2009-05-11 17:56:48 +0000
@@ -0,0 +1,4 @@
1<?xml version="1.0" encoding="utf-8"?>
2<django-objects version="1.0"><object pk="1" model="pydjwiki.title"><field to="pydjwiki.namespace" name="namespace" rel="ManyToOneRel">1</field><field type="CharField" name="name">Front_Page</field><field type="BooleanField" name="active">True</field></object><object pk="1" model="pydjwiki.namespace"><field type="CharField" name="name">meta</field><field type="CharField" name="renderer">pydjwiki.render.parsers.creoleadd.CreoleAdditionsParser</field></object><object pk="1" model="pydjwiki.revision"><field to="pydjwiki.title" name="title" rel="ManyToOneRel">1</field><field type="DateTimeField" name="timestamp">2009-01-01 00:00:00</field><field to="auth.user" name="user" rel="ManyToOneRel">1</field><field type="TextField" name="content">== Welcome! ==
3
4Your wiki is up and running!</field><field type="CharField" name="comment">Wiki creation</field><field type="BooleanField" name="is_minor">False</field></object><object pk="4" model="pydjwiki.dynamicpage"><field type="SlugField" name="url">allpages</field><field type="SlugField" name="key">all_pages</field><field type="CharField" name="view">pydjwiki.dynamic.allpages.view</field><field type="TextField" name="description"></field><field type="CharField" name="title">All pages</field><field type="BooleanField" name="index">True</field></object><object pk="2" model="pydjwiki.dynamicpage"><field type="SlugField" name="url">archive</field><field type="SlugField" name="key">archive</field><field type="CharField" name="view">pydjwiki.dynamic.archive.view</field><field type="TextField" name="description"></field><field type="CharField" name="title">Archive</field><field type="BooleanField" name="index">False</field></object><object pk="6" model="pydjwiki.dynamicpage"><field type="SlugField" name="url">edit</field><field type="SlugField" name="key">edit</field><field type="CharField" name="view">pydjwiki.dynamic.edit.view</field><field type="TextField" name="description"></field><field type="CharField" name="title">Edit</field><field type="BooleanField" name="index">False</field></object><object pk="1" model="pydjwiki.dynamicpage"><field type="SlugField" name="url">history</field><field type="SlugField" name="key">edit_history</field><field type="CharField" name="view">pydjwiki.dynamic.edithistory.view</field><field type="TextField" name="description">Displays the edit history for a page.</field><field type="CharField" name="title">Edit history</field><field type="BooleanField" name="index">False</field></object><object pk="5" model="pydjwiki.dynamicpage"><field type="SlugField" name="url">index</field><field type="SlugField" name="key">index</field><field type="CharField" name="view">pydjwiki.dynamic.index.view</field><field type="TextField" name="description"></field><field type="CharField" name="title">Dynamic pages</field><field type="BooleanField" name="index">True</field></object><object pk="3" model="pydjwiki.dynamicpage"><field type="SlugField" name="url">linkindex</field><field type="SlugField" name="key">link_index</field><field type="CharField" name="view">pydjwiki.dynamic.linkindex.view</field><field type="TextField" name="description"></field><field type="CharField" name="title">Index of links</field><field type="BooleanField" name="index">False</field></object><object pk="7" model="pydjwiki.dynamicpage"><field type="SlugField" name="url">linkshere</field><field type="SlugField" name="key">links_here</field><field type="CharField" name="view">pydjwiki.dynamic.linkshere.view</field><field type="TextField" name="description"></field><field type="CharField" name="title">Links to Page</field><field type="BooleanField" name="index">False</field></object></django-objects>
05
=== renamed file 'wiki/pydjwiki/lib.py' => 'lib.py'
=== renamed directory 'wiki/pydjwiki/management' => 'management'
=== modified file 'management/__init__.py'
--- wiki/pydjwiki/management/__init__.py 2009-02-13 00:00:19 +0000
+++ management/__init__.py 2009-05-11 02:42:53 +0000
@@ -0,0 +1,33 @@
1from datetime import datetime
2
3from django.db.models.signals import post_syncdb
4
5from pydjwiki import models
6
7
8def handle_syncdb(**kwargs):
9 from django.core.management import call_command
10 from django.contrib.auth.models import User
11 from pydjwiki.models import Namespace, Title, Revision
12 classes = Namespace, Title, Revision
13 if not all([m in kwargs['created_models'] for m in classes]):
14 return
15# ns = Namespace(name='meta',
16# renderer='pydjwiki.render.parsers.creoleadd.CreoleAdditionsParser')
17# ns.save()
18# title = Title(namespace=ns, name='Front_Page', active=False)
19# title.save()
20# content = '== Welcome! ==\n\nYour wiki is up and running!'
21# user = User.objects.order_by('id')[0]
22# rev = Revision(title=title, timestamp=datetime(2009, 1, 1),
23# user=user, content=content, comment='Wiki creation')
24# rev.save()
25# title.active = True
26# title.save()
27#
28# call_command('loaddata', 'dynamics.yaml')
29 call_command('loaddata', 'pydjwiki_start.xml')
30
31
32post_syncdb.connect(handle_syncdb, sender=models,
33 dispatch_uid='pydjwiki.management.handle_syncdb')
0\ No newline at end of file34\ No newline at end of file
135
=== renamed file 'wiki/pydjwiki/models.py' => 'models.py'
--- wiki/pydjwiki/models.py 2009-05-10 19:49:55 +0000
+++ models.py 2009-05-11 02:42:53 +0000
@@ -265,10 +265,16 @@
265265
266def update_revision_links(sender, **kwargs):266def update_revision_links(sender, **kwargs):
267 """Update Link table every time a Revision object is saved."""267 """Update Link table every time a Revision object is saved."""
268 kwargs['instance'].title.rebuild_links()268 try:
269 kwargs['instance'].title.rebuild_links()
270 except Exception:
271 pass
269post_save.connect(update_revision_links, sender=Revision)272post_save.connect(update_revision_links, sender=Revision)
270273
271def remove_inactive_title_links(sender, **kwargs):274def remove_inactive_title_links(sender, **kwargs):
272 """Update Link table every time a Title object is saved."""275 """Update Link table every time a Title object is saved."""
273 kwargs['instance'].rebuild_links()276 try:
277 kwargs['instance'].rebuild_links()
278 except Exception:
279 pass
274post_save.connect(remove_inactive_title_links, sender=Title)280post_save.connect(remove_inactive_title_links, sender=Title)
275281
=== renamed directory 'wiki/pydjwiki/render' => 'render'
=== added file 'settings.py'
--- settings.py 1970-01-01 00:00:00 +0000
+++ settings.py 2009-05-11 02:42:53 +0000
@@ -0,0 +1,35 @@
1PYDJWIKI_NAMESPACE_REGEX = r'[a-z]+'
2PYDJWIKI_TITLE_REGEX = r'[^\t\n\r\f\v?#]+'
3PYDJWIKI_URL_REGEX = r'(?P<namespace>%s)/(?P<title>%s)(?:#(?P<anchor>.*))?$' \
4 % (PYDJWIKI_NAMESPACE_REGEX, PYDJWIKI_TITLE_REGEX)
5PYDJWIKI_MEDIA_PSEUDONS = 'pydj-media'
6PYDJWIKI_SYSTEM_PSEUDONS = 'dynamic-page'
7PYDJWIKI_DEFAULT_NS = 'dev'
8PYDJWIKI_URL_ROOT = '/pydjwiki/'
9PYDJWIKI_WIKI_NAME = 'PyDjWiki Development Wiki'
10PYDJWIKI_FRONT_PAGE = 'meta/Front Page'
11PYDJWIKI_FRONT_PAGE_URL = ''.join((PYDJWIKI_URL_ROOT, PYDJWIKI_FRONT_PAGE))
12PYDJWIKI_SPACE_FRIENDLY_USER_AGENTS = (
13 # Modifying this setting requires a server restart. (Maybe.)
14 r'Firefox/3',
15 r'Opera',
16)
17PYDJWIKI_MAIN_NS = 'article'
18PYDJWIKI_SILENT_NAMESPACES = set((
19 PYDJWIKI_MAIN_NS,
20 PYDJWIKI_SYSTEM_PSEUDONS,
21))
22PYDJWIKI_SIDEBAR_TEMPLATES = (
23 'pydjwiki/sidebar/welcome.html',
24 'pydjwiki/sidebar/links.html',
25 'pydjwiki/sidebar/toc.html',
26)
27PYDJWIKI_LOGIN_PAGE = '%s/login/' % PYDJWIKI_SYSTEM_PSEUDONS
28PYDJWIKI_LOGOUT_PAGE = '%s/logout/' % PYDJWIKI_SYSTEM_PSEUDONS
29PYDJWIKI_EDIT_PAGE = '%s/edit/' % PYDJWIKI_SYSTEM_PSEUDONS
30
31from pydjwiki.dpr import _DynamicURLRegistry
32PYDJWIKI_DYNAMICS = _DynamicURLRegistry()
33
34LOGIN_URL = ''.join((PYDJWIKI_URL_ROOT, PYDJWIKI_LOGIN_PAGE))
35LOGIN_REDIRECT_URL = ''.join((PYDJWIKI_URL_ROOT, PYDJWIKI_FRONT_PAGE))
0\ No newline at end of file36\ No newline at end of file
137
=== renamed directory 'wiki/pydjwiki/templates' => 'templates'
=== added file 'templates/base.html'
--- templates/base.html 1970-01-01 00:00:00 +0000
+++ templates/base.html 2009-05-11 02:42:53 +0000
@@ -0,0 +1,8 @@
1<html>
2<head>
3<title>{% block title %}{% endblock %}</title>
4{% block extrahead %}{% endblock %}</head>
5<body>
6{% block content %}{% endblock %}
7</body>
8</html>
09
=== renamed directory 'wiki/pydjwiki/templatetags' => 'templatetags'
=== renamed file 'wiki/pydjwiki/urls.py' => 'urls.py'
=== renamed file 'wiki/pydjwiki/views.py' => 'views.py'
=== removed directory 'wiki'
=== removed file 'wiki/__init__.py'
=== removed file 'wiki/database'
1Binary files wiki/database 2009-03-01 04:12:40 +0000 and wiki/database 1970-01-01 00:00:00 +0000 differ10Binary files wiki/database 2009-03-01 04:12:40 +0000 and wiki/database 1970-01-01 00:00:00 +0000 differ
=== removed file 'wiki/manage.py'
--- wiki/manage.py 2009-03-11 03:25:19 +0000
+++ wiki/manage.py 1970-01-01 00:00:00 +0000
@@ -1,18 +0,0 @@
1#!/usr/bin/env python
2
3from django.core.management import execute_manager
4
5try:
6 import settings # Assumed to be in the same directory.
7except ImportError:
8 import sys
9 sys.stderr.write("Error: Can't find the file 'settings.py' in the "
10 "directory containing %r. It appears you've customized "
11 "things.\nYou'll have to run django-admin.py, passing "
12 "it your settings module.\n(If the file settings.py "
13 "does indeed exist, it's causing an ImportError "
14 "somehow.)\n" % __file__)
15 sys.exit(1)
16
17if __name__ == '__main__':
18 execute_manager(settings)
190
=== removed directory 'wiki/pydjwiki'
=== removed file 'wiki/settings.py'
--- wiki/settings.py 2009-03-09 20:04:00 +0000
+++ wiki/settings.py 1970-01-01 00:00:00 +0000
@@ -1,143 +0,0 @@
1# Django settings for wiki project.
2
3def _relative(stub):
4 import os.path
5 dir = os.path.dirname(__file__)
6 return os.path.normpath(u'%s/%s' % (dir, stub))
7
8DEBUG = True
9TEMPLATE_DEBUG = DEBUG
10
11ADMINS = (
12 ('Michael Nesvold', 'mdnesvold@gmail.com'),
13 ('Louis Wilson', 'louis.wilson@asu.edu'),
14 # ('Your Name', 'your_email@domain.com'),
15)
16
17MANAGERS = ADMINS
18
19DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql',
20 # 'sqlite3' or 'oracle'.
21DATABASE_NAME = _relative('database')
22DATABASE_USER = '' # Not used with sqlite3.
23DATABASE_PASSWORD = '' # Not used with sqlite3.
24DATABASE_HOST = '' # Set to empty string for localhost.
25 # Not used with sqlite3.
26DATABASE_PORT = '' # Set to empty string for default.
27 # Not used with sqlite3.
28
29# Local time zone for this installation. Choices can be found here:
30# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
31# although not all choices may be available on all operating systems.
32# If running in a Windows environment this must be set to the same as
33# your system time zone.
34TIME_ZONE = 'America/Phoenix'
35
36# Language code for this installation. All choices can be found here:
37# http://www.i18nguy.com/unicode/language-identifiers.html
38LANGUAGE_CODE = 'en-us'
39
40SITE_ID = 1
41
42# If you set this to False, Django will make some optimizations so as
43# not to load the internationalization machinery.
44USE_I18N = False
45
46# Absolute path to the directory that holds media.
47# Example: "/home/media/media.lawrence.com/"
48MEDIA_ROOT = ''
49
50# URL that handles the media served from MEDIA_ROOT. Make sure to use a
51# trailing slash if there is a path component (optional in other cases).
52# Examples: "http://media.lawrence.com", "http://example.com/media/"
53MEDIA_URL = ''
54
55# URL prefix for admin media -- CSS, JavaScript and images. Make sure
56# to use a trailing slash.
57# Examples: "http://foo.com/media/", "/media/".
58ADMIN_MEDIA_PREFIX = '/media/'
59
60# Make this unique, and don't share it with anybody.
61SECRET_KEY = 'gc%)t_l7ey9dpga(*4z+5nae+-%f%i6)#u85ps_=t=0j@pkndf'
62
63# List of callables that know how to import templates from various
64# sources.
65TEMPLATE_LOADERS = (
66 'django.template.loaders.filesystem.load_template_source',
67 'django.template.loaders.app_directories.load_template_source',
68# 'django.template.loaders.eggs.load_template_source',
69)
70
71MIDDLEWARE_CLASSES = (
72 'pydjwiki.djhooks.PyDjWikiMiddleware',
73 'django.middleware.common.CommonMiddleware',
74 'django.contrib.sessions.middleware.SessionMiddleware',
75 'django.contrib.auth.middleware.AuthenticationMiddleware',
76)
77
78ROOT_URLCONF = 'wiki.urls'
79
80TEMPLATE_DIRS = (
81 # Put strings here, like "/home/html/django_templates" or
82 # "C:/www/django/templates".
83 # Always use forward slashes, even on Windows.
84 # Don't forget to use absolute paths, not relative paths.
85 _relative('templates'),
86 _relative('pydjwiki/templates'),
87 _relative('pydjwiki/dev/templates'),
88)
89
90TEMPLATE_CONTEXT_PROCESSORS = (
91 'django.core.context_processors.auth', # specified in default value
92 'django.core.context_processors.debug', # specified in default value
93 'django.core.context_processors.i18n', # specified in default value
94 'django.core.context_processors.media', # specified in default value
95 'pydjwiki.djhooks.context_processor_pydjwiki',
96)
97
98INSTALLED_APPS = (
99 'django.contrib.admin',
100 'django.contrib.admindocs',
101 'django.contrib.auth',
102 'django.contrib.contenttypes',
103 'django.contrib.humanize',
104 'django.contrib.sessions',
105# 'django.contrib.sites',
106 'wiki.pydjwiki',
107)
108
109PYDJWIKI_NAMESPACE_REGEX = r'[a-z]+'
110PYDJWIKI_TITLE_REGEX = r'[^\t\n\r\f\v?#]+'
111PYDJWIKI_URL_REGEX = r'(?P<namespace>%s)/(?P<title>%s)(?:#(?P<anchor>.*))?$' \
112 % (PYDJWIKI_NAMESPACE_REGEX, PYDJWIKI_TITLE_REGEX)
113PYDJWIKI_MEDIA_PSEUDONS = 'pydj-media'
114PYDJWIKI_SYSTEM_PSEUDONS = 'dynamic-page'
115PYDJWIKI_DEFAULT_NS = 'dev'
116PYDJWIKI_URL_ROOT = '/pydjwiki/'
117PYDJWIKI_WIKI_NAME = 'PyDjWiki Development Wiki'
118PYDJWIKI_FRONT_PAGE = 'meta/Front Page'
119PYDJWIKI_FRONT_PAGE_URL = ''.join((PYDJWIKI_URL_ROOT, PYDJWIKI_FRONT_PAGE))
120PYDJWIKI_SPACE_FRIENDLY_USER_AGENTS = (
121 # Modifying this setting requires a server restart. (Maybe.)
122 r'Firefox/3',
123 r'Opera',
124)
125PYDJWIKI_MAIN_NS = 'article'
126PYDJWIKI_SILENT_NAMESPACES = set((
127 PYDJWIKI_MAIN_NS,
128 PYDJWIKI_SYSTEM_PSEUDONS,
129))
130PYDJWIKI_SIDEBAR_TEMPLATES = (
131 'pydjwiki/sidebar/welcome.html',
132 'pydjwiki/sidebar/links.html',
133 'pydjwiki/sidebar/toc.html',
134)
135PYDJWIKI_LOGIN_PAGE = '%s/login/' % PYDJWIKI_SYSTEM_PSEUDONS
136PYDJWIKI_LOGOUT_PAGE = '%s/logout/' % PYDJWIKI_SYSTEM_PSEUDONS
137PYDJWIKI_EDIT_PAGE = '%s/edit/' % PYDJWIKI_SYSTEM_PSEUDONS
138
139from pydjwiki.dpr import _DynamicURLRegistry
140PYDJWIKI_DYNAMICS = _DynamicURLRegistry()
141
142LOGIN_URL = ''.join((PYDJWIKI_URL_ROOT, PYDJWIKI_LOGIN_PAGE))
143LOGIN_REDIRECT_URL = ''.join((PYDJWIKI_URL_ROOT, PYDJWIKI_FRONT_PAGE))
1440
=== removed directory 'wiki/templates'
=== removed directory 'wiki/templates/admin'
=== removed file 'wiki/templates/admin/base.html'
--- wiki/templates/admin/base.html 2008-12-12 07:03:52 +0000
+++ wiki/templates/admin/base.html 1970-01-01 00:00:00 +0000
@@ -1,55 +0,0 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
3<head>
4<title>{% block title %}{% endblock %}</title>
5<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" />
6{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
7{% block extrastyle %}{% endblock %}
8{% block extrahead %}{% endblock %}
9{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
10</head>
11{% load i18n %}
12
13<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
14
15<!-- Container -->
16<div id="container">
17
18 {% if not is_popup %}
19 <!-- Header -->
20 <div id="header">
21 <div id="branding">
22 {% block branding %}{% endblock %}
23 </div>
24 {% if user.is_authenticated and user.is_staff %}
25 <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}<a href="{{ root_path }}password_change/">{% trans 'Change password' %}</a> / <a href="{{ root_path }}logout/">{% trans 'Log out' %}</a>{% endblock %}</div>
26 {% endif %}
27 {% block nav-global %}{% endblock %}
28 </div>
29 <!-- END Header -->
30 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title|escape }}{% endif %}</div>{% endblock %}
31 {% endif %}
32
33 {% if messages %}
34 <ul class="messagelist">{% for message in messages %}<li>{{ message|escape }}</li>{% endfor %}</ul>
35 {% endif %}
36
37 <!-- Content -->
38 <div id="content" class="{% block coltype %}colM{% endblock %}">
39 {% block pretitle %}{% endblock %}
40 {% block content_title %}{% if title %}<h1>{{ title|escape }}</h1>{% endif %}{% endblock %}
41 {% block content %}
42 {% block object-tools %}{% endblock %}
43 {{ content }}
44 {% endblock %}
45 {% block sidebar %}{% endblock %}
46 <br class="clear" />
47 </div>
48 <!-- END Content -->
49
50 {% block footer %}<div id="footer"></div>{% endblock %}
51</div>
52<!-- END Container -->
53
54</body>
55</html>
560
=== removed file 'wiki/templates/admin/base_site.html'
--- wiki/templates/admin/base_site.html 2008-12-12 07:03:52 +0000
+++ wiki/templates/admin/base_site.html 1970-01-01 00:00:00 +0000
@@ -1,10 +0,0 @@
1{% extends "admin/base.html" %}
2{% load i18n %}
3
4{% block title %}{{ title }} | {% trans 'PyDjWiki admin' %}{% endblock %}
5
6{% block branding %}
7<h1 id="site-name">{% trans 'PyDjWiki administration' %}</h1>
8{% endblock %}
9
10{% block nav-global %}{% endblock %}
110
=== removed file 'wiki/templates/base.html'
--- wiki/templates/base.html 2009-02-16 20:48:55 +0000
+++ wiki/templates/base.html 1970-01-01 00:00:00 +0000
@@ -1,8 +0,0 @@
1<html>
2<head>
3<title>{% block title %}{% endblock %}</title>
4{% block extrahead %}{% endblock %}</head>
5<body>
6{% block content %}{% endblock %}
7</body>
8</html>
90
=== removed file 'wiki/urls.py'
--- wiki/urls.py 2009-03-08 21:09:32 +0000
+++ wiki/urls.py 1970-01-01 00:00:00 +0000
@@ -1,20 +0,0 @@
1from django.conf import settings
2from django.conf.urls.defaults import *
3
4# Documentation
5urlpatterns = patterns('',
6 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
7 (r'^%s' % settings.PYDJWIKI_URL_ROOT[1:], include('wiki.pydjwiki.urls')),
8)
9
10# Redirect to /pydjwiki by default
11urlpatterns += patterns('django.views.generic.simple',
12 (r'^$', 'redirect_to', {'url': '/pydjwiki/'}),
13)
14
15# Admin site
16from django.contrib import admin
17admin.autodiscover()
18urlpatterns += patterns('',
19 (r'^admin/(.*)', admin.site.root)
20)

Subscribers

People subscribed via source and target branches

to all changes: