Guest User

Untitled

a guest
Feb 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. diff --git a/battle/forms.py b/battle/forms.py
  2. index 9516912..d31db35 100644
  3. --- a/battle/forms.py
  4. +++ b/battle/forms.py
  5. @@ -1,4 +1,4 @@
  6. -from django import newforms as forms
  7. +from django import forms as forms
  8.  
  9. class MainForm(forms.Form):
  10. option1 = forms.CharField( )
  11. diff --git a/urls.py b/urls.py
  12. index 4449348..a18e9c4 100644
  13. --- a/urls.py
  14. +++ b/urls.py
  15. @@ -6,7 +6,7 @@ from os import path as os_path
  16. # admin.autodiscover()
  17.  
  18. urlpatterns = patterns('',
  19. - (r'$', 'battletweets.battle.views.index'),
  20. + (r'^$', 'battletweets.battle.views.index'),
  21. (r'^battle/(?P<query1>[A-Za-z]+)/vs/(?P<query2>[A-Za-z]+)/$', 'battletweets.battle.views.versus_results'),
  22. # Example:
  23. # (r'^battletweets/', include('battletweets.foo.urls')),
Add Comment
Please, Sign In to add comment