Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- site/urls.py:
- from django.conf.urls.defaults import *
- # Uncomment the next two lines to enable the admin:
- from django.contrib import admin
- admin.autodiscover()
- urlpatterns = patterns('',
- # Example:
- (r'^news/', include('news.urls')),
- #(r'^news/$', 'news.views.index'),
- #(r'^/news/latest', 'news.views.latest'),
- #url(r'^/hemsida/news/latest', 'news.views.latest'),
- # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
- # to INSTALLED_APPS to enable admin documentation:
- # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
- # Uncomment the next line to enable the admin:
- (r'^admin/', include(admin.site.urls)),
- )
- site/news/urls.py:
- from django.conf.urls.defaults import *
- # Uncomment the next two lines to enable the admin:
- #from django.contrib import admin
- #admin.autodiscover()
- urlpatterns = patterns('new.views',
- # Example:
- (r'^news/$', 'index'),
- (r'^/news/latest', 'latest'),
- # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
- # to INSTALLED_APPS to enable admin documentation:
- # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
- # Uncomment the next line to enable the admin:
- #(r'^admin/', include(admin.site.urls)),
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement