diff options
author | prashantsinalkar | 2017-04-12 11:49:44 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-04-12 11:49:44 +0530 |
commit | 860152d58b6acdf9d625ea658271639e29356608 (patch) | |
tree | 8c430056a8ea168b1d0f1dc22bbec5b91058a2fd /website/views.py | |
parent | a26b338a1553c0e4f449f189abbb664bad4bb083 (diff) | |
download | pyfoss-860152d58b6acdf9d625ea658271639e29356608.tar.gz pyfoss-860152d58b6acdf9d625ea658271639e29356608.tar.bz2 pyfoss-860152d58b6acdf9d625ea658271639e29356608.zip |
added pyhton workshop page dynamic content
Diffstat (limited to 'website/views.py')
-rw-r--r-- | website/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/website/views.py b/website/views.py index c6b6654..c0a61e1 100644 --- a/website/views.py +++ b/website/views.py @@ -33,16 +33,16 @@ def dispatcher(request, permalink=''): if permalink == 'python-workshops': blocks = get_blocks() rows = FOSSEEStats.objects.using('fossee_in').filter(foss_name='Python', type ='Workshop').order_by('-w_id') + python_wokshop_page_content = Page.objects.get(permalink='python-workshops-page') context = { + 'page' : python_wokshop_page_content, 'navs': blocks['navs'], 'sidebar': blocks['sidebar'], 'footer': blocks['footer'], 'permalink': permalink, 'obj' : rows, } - #rows = FOSSEEStats.objects.using('fossee_in').all() - #return render(request, 'website/templates/test.html',context) if permalink == '' or permalink == 'home' : permalink = 'home' |