Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git streema/apps/landing/views.py streema/apps/landing/views.py
- index 7fddef0..6d9baa6 100644
- --- streema/apps/landing/views.py
- +++ streema/apps/landing/views.py
- @@ -12,10 +12,12 @@ from streema.apps.activityfeed.models import Activity
- from streema.apps.utils.fb import fb_reverse
- from streema.apps.radios.models import Radio
- from streema.apps.accounts.decorators import fb_require_login
- +from django.contrib.csrf.middleware import csrf_exempt
- LANDING_LISTENERS_COUNT = 5
- +@csrf_exempt
- def main(req):
- diff --git streema/templates/landing/main.html streema/templates/landing/main.html
- index 2eab5eb..8b312e8 100644
- --- streema/templates/landing/main.html
- +++ streema/templates/landing/main.html
- @@ -58,7 +58,7 @@
- <h1 id="landingH1" class="landingTitle">Free Online Radio Stations - Discover New Music!</h1>
- <div id="searchBox" class="panelSearch">
- <form method="post" action="/">
- - {% csrf_token %}
- + {% csrf_token %}
- <input id="radioName" type="text" name="radio" value="What is your favorite radio station?" />
- <button id="buttonLetsDoIt" type="submit"></button>
- </form>
Add Comment
Please, Sign In to add comment