예제 #1
0
from django.conf.urls import patterns, url
from main.views import SiteIndexView, PortfolioView
from main.views import contact
urlpatterns = patterns('',
        url(r'^contact/$', contact, name="contact"),
        url(r'^portfolio/$', PortfolioView.as_view(), name="portfolio"),
        url(r'^$', SiteIndexView.as_view(), name="siteindex"),
        )
예제 #2
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from main.views import SiteIndexView
from django.conf import settings
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'webscrape.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^feed/', include('main.urls')),
    url(r'^profile/', include('profiles.urls',namespace="profiles")),
    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'^$', SiteIndexView.as_view()),
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', { 'document_root' : settings.MEDIA_ROOT }),
    )