是Ant + Ivy的初学者。所以任何帮助都表示赞赏。 在我的ivy.xml中,我列出了依赖部分和我需要构建的jar。
<dependency org="org.xxx" name="abc" rev="1.0.0" transitive="false"/>
下载abc.jar。但问题是abc.jar依赖于其他50个jar文件。那么如何全部下载呢?
由于
答案 0 :(得分:0)
您已将传递标志设置为false,告诉ivy不要下载依赖项。
请改为尝试:
import django.shortcuts import render
def add_profile(request):
context = {}
if request.method == 'POST':
address_form = AddressForm(request.POST)
job_form = JobForm(request.POST)
user_picture_form = UserPictureForm(request.POST)
if address_form.is_valid() and job_form.is_valid() and user_picture_form.is_valid():
adress_form.save()
job_form.save()
user_picture_form.save()
else:
print adress_form.errors, job_form.errors, user_picture_form.errors
else:
context['address_form'] = AddressForm()
context['job_form'] = JobForm()
context['user_picture_form'] = UserPictureForm()
return render(request, 'profiles/add_profiles.html', context)
def edit_profile(request):
context = {}
user = request.user
adress = Adress.objects.get(user=user)
job = Job.objects.get(user=user)
picture = UserPicture.objects.get(user=user)
if request.method == 'POST':
address_form = AddressForm(request.POST, instance=adress)
job_form = JobForm(request.POST, instance=job)
user_picture_form = UserPictureForm(request.POST, instance=picture)
if address_form.is_valid() and job_form.is_valid() and user_picture_form.is_valid():
adress_form.save()
job_form.save()
user_picture_form.save()
else:
print adress_form.errors, job_form.errors, user_picture_form.errors
else:
context['address_form'] = AddressForm(instance=adress)
context['job_form'] = JobForm(instance=job)
context['user_picture_form'] = UserPictureForm(instance=picture)
return render(request, 'profiles/edit_profiles.html', context)
见相关答案: