Пример #1
0
    url(r'^accounts/login/$', 'django.contrib.auth.views.login'),
    url(r'^login/{0,1}$', TemplateView.as_view(template_name='login.html')),
    url(r'^grappelli/', include('grappelli.urls')),
    url(r'^meetings/', include('chipy_org.apps.meetings.urls')),
    url(r'^profiles/',
        include('chipy_org.apps.profiles.urls', namespace="profiles")),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^about/', include('chipy_org.apps.about.urls')),
    url(r'^logout', 'django.contrib.auth.views.logout', {'next_page': '/'}),
    url(r'^contact/', ChipyContactView.as_view(), name="contact"),
    url(r'^tinymce/', include('tinymce.urls')),
    url(r'^pages/', include('django.contrib.flatpages.urls')),
    url(r'^sponsors/', include('chipy_org.apps.sponsors.urls')),
]

# Would love a back tracking url resolver
urlpatterns += [
    url(r'^api/meetings/$', MeetingListAPIView.as_view()),
    url(r'^api/meetings/(?P<meeting_id>\d+)/meetup/sync$',
        MeetingMeetupSync.as_view())
]

if settings.SERVE_MEDIA:
    urlpatterns += [
        url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.MEDIA_ROOT,
            'show_indexes': True
        }),
    ]
    urlpatterns += staticfiles_urlpatterns()
Пример #2
0
    url(r'', include('main.urls')),
    url(r'', include('social_auth.urls')),
    url(r'^accounts/login/$', 'django.contrib.auth.views.login'),
    url(r'^login/{0,1}$', TemplateView.as_view(template_name='login.html')),
    (r'^grappelli/', include('grappelli.urls')),
    url(r'^meetings/', include('meetings.urls')),
    url(r'^profiles/', include('profiles.urls', namespace="profiles")),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^about/', include('about.urls')),
    url(r'^logout', 'django.contrib.auth.views.logout',
        {'next_page': '/'}
    ),
    url(r'^contact/', ChipyContactView.as_view(), name="contact"),
    url(r'^tinymce/', include('tinymce.urls')),
    url(r'^pages/', include('django.contrib.flatpages.urls')),
)

# Would love a back tracking url resolver
urlpatterns += patterns(
    "",
    url(r'^api/meetings/$', MeetingListAPIView.as_view()),
    url(r'^api/meetings/(?P<meeting_id>\d+)/meetup/sync$', MeetingMeetupSync.as_view())
)

if settings.SERVE_MEDIA:
    urlpatterns += patterns("",
        url(r'^site_media/media/(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
    )
    urlpatterns += staticfiles_urlpatterns()
Пример #3
0
    url(r"^meetings/", include("chipy_org.apps.meetings.urls")),
    url(r"^groups/", include("chipy_org.apps.subgroups.urls")),
    url(r"^announcements/", include("chipy_org.apps.announcements.urls")),
    url(r"^profiles/", include("chipy_org.apps.profiles.urls")),
    url(r"^admin/", admin.site.urls),
    url(r"^logout", LogoutWithRedirectAndMessage.as_view()),
    url(r"^contact/", ContactView.as_view(), name="contact"),
    url(r"^tinymce/", include("tinymce.urls")),
    url(r"^pages/", include("django.contrib.flatpages.urls")),
    url(r"^sponsors/", include("chipy_org.apps.sponsors.urls")),
    url(r"^job-board/", include("chipy_org.apps.job_board.urls")),
]

# Would love a back tracking url resolver
urlpatterns += [
    url(r"^api/meetings/$", MeetingListAPIView.as_view()),
    url(r"^api/meetings/(?P<meeting_id>\d+)/meetup/sync$",
        MeetingMeetupSync.as_view()),
]

if settings.SERVE_MEDIA:
    urlpatterns += [
        url(
            r"^media/(?P<path>.*)$",
            django.views.static.serve,
            {
                "document_root": settings.MEDIA_ROOT,
                "show_indexes": True
            },
        ),
    ]