mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Use Django dispatcher instead of CherryPy dispatcher
This commit is big because anything small breaks the code. - Django dispatcher is based on regular expressions and does not need a tree structure - Reduces a lot of unnecessary dependencies among modules - Use Django sessions middlewear instead of CherryPy sessions - Introduce dependency based modules instead of numeric load order - Remove PagePlugin and simply use Django views - Eliminate page rendering wrappers in favor of Django context processors - Use custom auth for now until replaced by Django auth middlewear - Use Django templated 404 and 500 error pages
This commit is contained in:
1 parent
657bb11bbc
commit
58d13e3ed8
42 files changed
+1281
-1289
No files matched your search
@@ -31,7 +31,7 @@ install: default apache-install freedombox-setup-install
|
||||
cp share/init.d/plinth $(DESTDIR)/etc/init.d
|
||||
cp -a lib/* $(DESTDIR)/usr/lib
|
||||
install plinth $(DESTDIR)/usr/bin/
|
||||
mkdir -p $(DESTDIR)/var/lib/plinth/cherrypy_sessions $(DESTDIR)/var/log/plinth $(DESTDIR)/var/run
|
||||
mkdir -p $(DESTDIR)/var/lib/plinth/sessions $(DESTDIR)/var/log/plinth $(DESTDIR)/var/run
|
||||
mkdir -p $(DESTDIR)/var/lib/plinth/data
|
||||
rm -f $(DESTDIR)/var/lib/plinth/users/sqlite3.distrib
|
||||
|
||||
@@ -46,7 +46,7 @@ uninstall:
|
||||
$(DESTDIR)/usr/share/man/man1/plinth.1.gz $(DESTDIR)/var/run/plinth.pid
|
||||
|
||||
dirs:
|
||||
@mkdir -p data/cherrypy_sessions
|
||||
@mkdir -p data/sessions
|
||||
|
||||
config: Makefile
|
||||
@test -f plinth.config || cp plinth.sample.config plinth.config
|
||||
@@ -59,7 +59,7 @@ html:
|
||||
@$(MAKE) -s -C doc html
|
||||
|
||||
clean:
|
||||
@rm -f cherrypy.config data/cherrypy_sessions/*
|
||||
@rm -f cherrypy.config data/sessions/*
|
||||
@find . -name "*~" -exec rm {} \;
|
||||
@find . -name ".#*" -exec rm {} \;
|
||||
@find . -name "#*" -exec rm {} \;
|
||||
|
||||
Reference in new issue
Block a user