-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore #12629770] Clean up and refactor folder structure
- Loading branch information
Nwuguru Sunday
committed
Jul 15, 2016
1 parent
43eeb80
commit 73cb479
Showing
34 changed files
with
987 additions
and
1,291 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
from django.shortcuts import render | ||
from django.http import HttpResponse, HttpResponseNotFound | ||
from django.contrib.auth import logout | ||
from django.http import HttpResponse | ||
from django.shortcuts import render | ||
from django.shortcuts import redirect | ||
import json | ||
import cloudinary | ||
from PIL import Image, ImageFilter, ImageOps | ||
from django.conf import settings | ||
from photos.models import * | ||
from api.image_edit import * | ||
|
||
# Create your views here. | ||
|
||
|
||
def index(request): | ||
context = { | ||
'index': 'Login' if not request.user.is_authenticated() else 'Dashboard', | ||
'user': request.user.username | ||
'index': 'Login' if not request.user.is_authenticated() | ||
else 'Dashboard', | ||
'user': request.user.username | ||
} | ||
return render(request, 'base.html', context) | ||
|
||
|
||
def logout_view(request): | ||
logout(request) | ||
return redirect('/') | ||
return redirect('/') |
Oops, something went wrong.