0.4.17 slides for static pages
This commit is contained in:
@@ -29,13 +29,13 @@ def MainPage(request):
|
||||
name_ru = _('Главная')
|
||||
)
|
||||
|
||||
try:
|
||||
page = StaticPage.objects.get(url='contacts')
|
||||
except StaticPage.DoesNotExist:
|
||||
page = StaticPage.objects.create(
|
||||
url='contacts',
|
||||
name_ru = _('Контакты')
|
||||
)
|
||||
# try:
|
||||
# page = StaticPage.objects.get(url='contacts')
|
||||
# except StaticPage.DoesNotExist:
|
||||
# page = StaticPage.objects.create(
|
||||
# url='contacts',
|
||||
# name_ru = _('Контакты')
|
||||
# )
|
||||
|
||||
# from ArticlesApp.models import ArticleModel
|
||||
# arts = ArticleModel.objects.filter(enable=True).order_by('-createDT')[:4]
|
||||
@@ -68,11 +68,6 @@ def StaticPageView(request, url):
|
||||
elif url in ['main']:
|
||||
raise Http404
|
||||
|
||||
# if url in ['for_movers', 'for_customers']:
|
||||
# subscribes, all_options = get_subsribes_w_options()
|
||||
# Dict.update({
|
||||
# 'subscribes': subscribes,
|
||||
# })
|
||||
|
||||
try:
|
||||
page = StaticPage.objects.get(url=url)
|
||||
|
||||
Reference in New Issue
Block a user