Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '.source.python':
  2.     'urls snippet':
  3.         'prefix': 'views'
  4.         'body': '''
  5.        from django.shortcuts import render
  6.  
  7.        renderDict = {
  8.            'isNotIndex' : True,
  9.            'title' : 'TITLE_OF_PAGE', #if isNotIndex only
  10.            'isFed' : False,  #BOOLEAN is federation page??
  11.            'isFedMenu' : list(HERE PUNCTI IN FED MENU), #if isFed=True only
  12.            'hasSubMenu' : False, #BOOLEAN if page has sub menu??
  13.            'listSubMenu' : list(HERE PUNCTI IN SUB MENY) #if hasSubMenu=True only
  14.        }
  15.  
  16.        def index(request):
  17.            return render(request, 'somePage/index.html', renderDict)$1
  18.            '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement