| lombardofr | 3218b2b | 2018-10-29 13:41:08 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2018 EveryUP Srl |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| lombardofr | 099364f | 2018-06-12 11:21:02 +0200 | [diff] [blame] | 17 | from django.shortcuts import render, redirect |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 18 | from django.contrib.auth.decorators import login_required |
| 19 | |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 20 | @login_required |
| 21 | def home(request): |
| lombardofr | 99f922f | 2018-07-17 17:27:36 +0200 | [diff] [blame] | 22 | return redirect('projects:open_project') |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 23 | |
| 24 | |
| 25 | def forbidden(request): |
| 26 | return render(request, 'forbidden.html') |
| 27 | |
| 28 | |
| 29 | |