Skip to content

Commit

Permalink
Chapter 12 in process.
Browse files Browse the repository at this point in the history
  • Loading branch information
miletskiy committed Oct 14, 2015
2 parents 88ce631 + fd03379 commit 06cca3f
Show file tree
Hide file tree
Showing 51 changed files with 2,795 additions and 588 deletions.
11 changes: 7 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Django
Pillow
MySQL-python
Django==1.8.3
Pillow==2.9.0
MySQL-python==1.2.5
django-crispy-forms==1.5.2
python-dateutil
python-dateutil==2.4.2
django-registration-redux==1.2
six==1.9.0
python-social-auth==0.2.12
12 changes: 10 additions & 2 deletions students/context_processors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@

from .util import get_groups
from .util import get_groups # get_current_language

def groups_processor(request):
return {'GROUPS':get_groups(request)}
# return {'GROUPS':['1','2','3']}
# return {'GROUPS':['1','2','3']}

# def lang_processor(request):
# return {'LANGS':get_current_language(request)}


# django.middleware.locale.LocaleMiddleware

# from django.middleware.locale import LocaleMiddleware
Loading

0 comments on commit 06cca3f

Please sign in to comment.