Commits

Kirill Nikolenko  committed 6399b10

done

  • Participants
  • Parent commits 63601b0

Comments (0)

Files changed (2)

File students_crud/managment/commands/data_list.py

 # -*- coding: utf-8 -*-
-import sys
-import os
-
-sys.path.append('E:/code/MyProjects/testexercise/students')
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
 
 from django.core.management.base import BaseCommand, CommandError
 from students.students_crud.models import Group

File students_crud/views.py

 from django.core.urlresolvers import reverse
 from django.contrib.auth.decorators import login_required
 
-#from models import Group
 from forms import GroupForm, StudentForm
 from models import Group, Student
 
         form = GroupForm()
     return render_to_response('edit.html', {'form': form}, context_instance=RequestContext(request))
 
-
+"""Не лучшее решение"""
 @login_required
 def edit_group(request, group_id):
     if request.method == "POST":