forked from mozilla/badges.mozilla.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue mozilla#108: Initial skeleton of local teams sub-app
- Loading branch information
Showing
8 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
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
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
Empty file.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block pageid %}teams_home{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<p>Hi.</p> | ||
|
||
{% endblock %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from django.conf.urls import * | ||
|
||
from django.conf import settings | ||
|
||
urlpatterns = patterns('badgus.teams.views', | ||
url(r'^$', 'home', name='teams.home'), | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from django.conf import settings | ||
from django.db import models | ||
|
||
from django.contrib.auth.models import User, AnonymousUser | ||
from django.contrib.auth.forms import UserChangeForm | ||
|
||
from django.http import (HttpResponseRedirect, HttpResponse, | ||
HttpResponseForbidden, HttpResponseNotFound) | ||
from django.views.decorators.http import (require_GET, require_POST, | ||
require_http_methods) | ||
from django.contrib.auth import REDIRECT_FIELD_NAME, login as auth_login, logout as auth_logout | ||
from django.contrib.auth.decorators import login_required | ||
|
||
from django.shortcuts import get_object_or_404, render_to_response | ||
from django.template import RequestContext | ||
|
||
from django.core.urlresolvers import reverse | ||
from tower import ugettext_lazy as _ | ||
|
||
|
||
def home(request): | ||
"""Profile home page""" | ||
return render_to_response('teams/index.html', dict( | ||
), context_instance=RequestContext(request)) |
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