You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
372 B
13 lines
372 B
# -*- coding: utf-8 -*-
|
|
from django.shortcuts import redirect
|
|
|
|
from cms.views import details
|
|
from cms.models.pagemodel import Page
|
|
|
|
|
|
def site_index(request):
|
|
"""Главная страница сайта."""
|
|
if request.user.is_anonymous() or request.user.is_superuser:
|
|
return details(request, '')
|
|
else:
|
|
return redirect('customer_profile_view')
|
|
|