Commits

Jérémie Ducastel committed 0c92fb9 Draft

post-deployment fixes.

Comments (0)

Files changed (6)

 
 from django.core.urlresolvers import reverse
 
-from lsnrevival.users.models import User
+from users.models import User
 
 # exceptions
 
 
 # urls
 
-urlpatterns = patterns('lsnrevival.users.views',
+urlpatterns = patterns('users.views',
     # log in processing
     url(r'^login/$', 'login', name='login'),
     # generic register processing
 from django import forms
 from django.core.urlresolvers import reverse
 
-from lsnrevival.users.models import User
-from lsnrevival.game.models import Challenge, Map
+from users.models import User
+from game.models import Challenge, Map
 
 # exceptions
 

web/templates/players.html

 <article>
     <header>Registered players</header>
     <ul>{% for p in players %}
-        <li>{{ p }} {{ p.email }}</li>{% endfor %}
+        <li>{{ p.nickname }} {{ p.email }}</li>{% endfor %}
     </ul>
 </article>
 {% endblock %}
 # exceptions
 
 # classes et fonctions
-urlpatterns = patterns('lsnrevival.web.views',
+urlpatterns = patterns('web.views',
     # accueil
     url(r'^$', 'index', name="index"),
     url(r'^home/$', 'user_index', name="user_index"),
 
 from google.appengine.api import users as gusers
 
-from lsnrevival.users.models import User
-from lsnrevival.users.decorators import login_required
-from lsnrevival.users.forms import LoginForm, RegisterForm
-from lsnrevival.game.models import Map, Challenge
+from users.models import User
+from users.decorators import login_required
+from users.forms import LoginForm, RegisterForm
+from game.models import Map, Challenge
 
 from .forms import LSNFileUploadForm, ChallengeForm, MapForm
 from .utils import get_uploads