better imports

This commit is contained in:
Arne Schauf 2013-09-28 22:20:19 +02:00
parent 60353a6429
commit f43c71960f
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@
from django import forms from django import forms
from django.contrib.auth.models import User from django.contrib.auth.models import User
from main.models import * from main.models import Host
class HostForm(forms.ModelForm): class HostForm(forms.ModelForm):
class Meta: class Meta:

View File

@ -5,7 +5,8 @@ from django.http import HttpResponse
from django.conf import settings from django.conf import settings
from django.shortcuts import render from django.shortcuts import render
from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required
from main.forms import * from main.forms import HostForm
from main.models import Host
class HomeView(TemplateView): class HomeView(TemplateView):
template_name = "base.html" template_name = "base.html"