Settings updated

parent 21b6b845
from django import forms
from .models import Department, WidgetUser
class DepartmentForm(forms.ModelForm):
class Meta:
model = Department
fields = '__all__'
class WidgetUserForm(forms.ModelForm):
class Meta:
model = WidgetUser
fields = '__all__'
\ No newline at end of file
......@@ -61,7 +61,7 @@ ROOT_URLCONF = 'widget_huli.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment