-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyScript_forms.py
More file actions
43 lines (30 loc) · 1.32 KB
/
myScript_forms.py
File metadata and controls
43 lines (30 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- coding: utf-8 -*-
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Raduga02.settings')
import django
django.setup()
from app.models import Director, Member, Place_departure_choices, Residing, Participation , \
News, Place_residing_choices, Food, Transfer, Excursion
from app.forms import UserRegistrationForm, MemberForm , ParticipationForm,ResidingForm, TransferForm, ExcursionForm, \
DirectorEditForm
from django.contrib.auth.models import User
from django import forms
import simplejson
from django.core import serializers
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.shortcuts import render
from os import path
PROJECT_ROOT = path.dirname(path.abspath(path.dirname(__file__)))
print PROJECT_ROOT
print path.join(PROJECT_ROOT, 'Raduga02', 'app','templates', 'tables', 'Profile.html')
print 'tables\Profile.html'
print "###############################################################################################"
print "###############################################################################################"
args = {}
args['formEditDir'] = DirectorEditForm()
f = DirectorEditForm()
#print render(None, 'tables\Profile.html', args)
print str(f.helper.label_class)
for i in f.helper.layout:
print str(i)