Changeset bd72d5c for asadb/urls.py


Ignore:
Timestamp:
Sep 15, 2011, 3:34:54 PM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
5c68184
Parents:
ceaf3bd (diff), fbb362a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Alex Dehnert <adehnert@…> (09/15/11 15:34:54)
git-committer:
Alex Dehnert <adehnert@…> (09/15/11 15:34:54)
Message:

Merge remote branch 'remotes/origin/new-db'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/urls.py

    r5b834ab rbd72d5c  
    99import settings
    1010
     11import groups.urls
    1112import forms.views
    12 
    13 import groups.models
    1413
    1514urlpatterns = patterns('',
    1615    # Example:
    1716    # (r'^asadb/', include('asadb.foo.urls')),
    18     url(
    19         r'^$',
    20         'django.views.generic.simple.direct_to_template',
    21         {'template': 'index.html', 'extra_context': { 'pagename':'homepage' }, },
    22         name='homepage',
    23     ),
     17    url(r'^$', 'groups.views.view_homepage', name='homepage', ),
    2418
    2519    # FYSM
     
    4539
    4640    # Group list
    47     url(
    48         r'^groups/$',
    49         list_detail.object_list,
    50         {
    51             'queryset': groups.models.Group.objects.all(),
    52             'template_object_name': 'group',
    53             'extra_context': {'pagename': 'groups', },
    54         },
    55         name='group-list',
    56     ),
     41    (r'^groups/', include(groups.urls.urls(), ), ),
    5742
    5843    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
     
    6247    # Uncomment the next line to enable the admin:
    6348    (r'^admin/', include(admin.site.urls)),
     49    url(r'^accounts/login/password/', 'django.contrib.auth.views.login', name='login-password', ),
    6450    url(r'^accounts/login/',  'mit.scripts_login',  name='login', ),
    6551    url(r'^accounts/logout/', logout, name='logout', ),
Note: See TracChangeset for help on using the changeset viewer.