- Make Mayan behave like a Single Page App by using partials.
- Add URI.js, Ajax form. - Split base.js into mayan_app.js, mayan_image.js, partial_navigation.js. - Add a HOME_VIEW setting. Use it for the default view to be loaded. - New template loading order root.html -> base.html -> any template. root.html is only loaded once. Other templates are loaded and merged with base.html via ajax load. - Fix bug in document page view. Was storing the URL and the querystring as a single url variable. Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
e4f61b3ad8
commit
f3f4dcd84a
@@ -251,8 +251,9 @@ COMPRESS_CSS_FILTERS = (
|
||||
COMPRESS_ENABLED = False
|
||||
COMPRESS_PARSER = 'compressor.parser.HtmlParser'
|
||||
# --------- Django -------------------
|
||||
HOME_VIEW = 'common:home'
|
||||
LOGIN_URL = 'authentication:login_view'
|
||||
LOGIN_REDIRECT_URL = 'common:home'
|
||||
LOGIN_REDIRECT_URL = 'common:root'
|
||||
INTERNAL_IPS = ('127.0.0.1',)
|
||||
# ---------- Django REST framework -----------
|
||||
REST_FRAMEWORK = {
|
||||
@@ -293,3 +294,5 @@ STRONGHOLD_PUBLIC_URLS = (r'^/docs/.+$',)
|
||||
SWAGGER_SETTINGS = {
|
||||
'DOC_EXPANSION': 'None',
|
||||
}
|
||||
# ----- AJAX REDIRECT -----
|
||||
AJAX_REDIRECT_CODE = 278
|
||||
|
||||
Reference in New Issue
Block a user