2016-03-06 00:18:40 +00:00
|
|
|
from django.conf.urls import include, url
|
2014-09-02 15:01:16 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
from .apps.homepage.sitemap import HomeSitemap
|
2014-09-03 08:25:58 +00:00
|
|
|
from .apps.blog.sitemap import BlogSitemap
|
|
|
|
|
2014-09-02 15:01:16 +00:00
|
|
|
|
|
|
|
# Sitemap
|
|
|
|
sitemaps = {
|
|
|
|
'home': HomeSitemap,
|
2014-09-03 08:25:58 +00:00
|
|
|
'blog': BlogSitemap,
|
2014-09-02 15:01:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
admin.autodiscover()
|
|
|
|
|
2016-03-06 00:18:40 +00:00
|
|
|
urlpatterns = [
|
|
|
|
#(r'^ckeditor/', include('ckeditor.urls')),
|
2014-09-02 15:01:16 +00:00
|
|
|
url(r'^admin/', include(admin.site.urls)),
|
2014-09-02 17:00:08 +00:00
|
|
|
url(r'^blog/', include('fmartingrcom.apps.blog.urls', namespace='blog')),
|
2015-03-22 14:42:22 +00:00
|
|
|
url(r'^portfolio/',
|
2015-03-19 22:12:08 +00:00
|
|
|
include('fmartingrcom.apps.projects.urls', namespace='projects')),
|
2016-03-06 00:18:40 +00:00
|
|
|
url(r'^', include('fmartingrcom.apps.homepage.urls', namespace='home')),
|
|
|
|
]
|
2015-03-19 22:11:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
from django.conf.urls.static import static
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
urlpatterns += static(settings.MEDIA_URL,
|
|
|
|
document_root=settings.MEDIA_ROOT)
|