Created
October 6, 2008 03:45
-
-
Save igorgue/14985 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/battle/forms.py b/battle/forms.py | |
index 9516912..d31db35 100644 | |
--- a/battle/forms.py | |
+++ b/battle/forms.py | |
@@ -1,4 +1,4 @@ | |
-from django import newforms as forms | |
+from django import forms as forms | |
class MainForm(forms.Form): | |
option1 = forms.CharField( ) | |
diff --git a/urls.py b/urls.py | |
index 4449348..a18e9c4 100644 | |
--- a/urls.py | |
+++ b/urls.py | |
@@ -6,7 +6,7 @@ from os import path as os_path | |
# admin.autodiscover() | |
urlpatterns = patterns('', | |
- (r'$', 'battletweets.battle.views.index'), | |
+ (r'^$', 'battletweets.battle.views.index'), | |
(r'^battle/(?P<query1>[A-Za-z]+)/vs/(?P<query2>[A-Za-z]+)/$', 'battletweets.battle.views.versus_results'), | |
# Example: | |
# (r'^battletweets/', include('battletweets.foo.urls')), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment