Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '.source.python':
- 'urls snippet':
- 'prefix': 'views'
- 'body': '''
- from django.shortcuts import render
- renderDict = {
- 'isNotIndex' : True,
- 'title' : 'TITLE_OF_PAGE', #if isNotIndex only
- 'isFed' : False, #BOOLEAN is federation page??
- 'isFedMenu' : list(HERE PUNCTI IN FED MENU), #if isFed=True only
- 'hasSubMenu' : False, #BOOLEAN if page has sub menu??
- 'listSubMenu' : list(HERE PUNCTI IN SUB MENY) #if hasSubMenu=True only
- }
- def index(request):
- return render(request, 'somePage/index.html', renderDict)$1
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement