Skip to content

Commit

Permalink
[Chore #12629770] Clean up and refactor folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Nwuguru Sunday committed Jul 15, 2016
1 parent 43eeb80 commit 73cb479
Show file tree
Hide file tree
Showing 34 changed files with 987 additions and 1,291 deletions.
6 changes: 0 additions & 6 deletions app/photos/urls.py

This file was deleted.

20 changes: 9 additions & 11 deletions app/photos/views.py
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('/')
Loading

0 comments on commit 73cb479

Please sign in to comment.