Skip to main content
se eliminaron 17 caracteres en el cuerpo
Origen Enlace
user22539
user22539

como insertar css a un formulario de django?


¿como insertar css a un formulario de django?

VIEWS.PY

def contacto(request):
    if request.method =="POST":
        form = ContactoForm(request.POST)
        if form.is_valid():
            contacto = form.save(commit=False)
            contacto.save()
            return redirect('contacto')
    else:
        form = ContactoForm()
    return render(request,'Contacto.html',{'form': form})

FORMS.PY

from django import forms
from .models import Contacto

class ContactoForm(forms.ModelForm):

    class Meta:
    
        model = Contacto
    
        fields = '__all__'

como insertar css a un formulario de django?


VIEWS.PY

def contacto(request):
    if request.method =="POST":
        form = ContactoForm(request.POST)
        if form.is_valid():
            contacto = form.save(commit=False)
            contacto.save()
            return redirect('contacto')
    else:
        form = ContactoForm()
    return render(request,'Contacto.html',{'form': form})

FORMS.PY

from django import forms
from .models import Contacto

class ContactoForm(forms.ModelForm):

    class Meta:
    
        model = Contacto
    
        fields = '__all__'

¿como insertar css a un formulario de django?

VIEWS.PY

def contacto(request):
    if request.method =="POST":
        form = ContactoForm(request.POST)
        if form.is_valid():
            contacto = form.save(commit=False)
            contacto.save()
            return redirect('contacto')
    else:
        form = ContactoForm()
    return render(request,'Contacto.html',{'form': form})

FORMS.PY

from django import forms
from .models import Contacto

class ContactoForm(forms.ModelForm):

    class Meta:
    
        model = Contacto
    
        fields = '__all__'

como insertar css a un formulario de django?


VIEWS.PY

def contacto(request):
    if request.method =="POST":
        form = ContactoForm(request.POST)
        if form.is_valid():
            contacto = form.save(commit=False)
            contacto.save()
            return redirect('contacto')
    else:
        form = ContactoForm()
    return render(request,'Contacto.html',{'form': form})

FORMS.PY

from django import forms

from .models import Contacto

class ContactoForm(forms.ModelForm):

from .models import Contacto

class ContactoForm(forms.ModelForm):

    class Meta:
    
        model = Contacto
    
        fields = '__all__'

como insertar css a un formulario de django?


VIEWS.PY

def contacto(request):
if request.method =="POST":
    form = ContactoForm(request.POST)
    if form.is_valid():
            contacto = form.save(commit=False)
            contacto.save()
            return redirect('contacto')
else:
    form = ContactoForm()
return render(request,'Contacto.html',{'form': form})

FORMS.PY

from django import forms

from .models import Contacto

class ContactoForm(forms.ModelForm):

class Meta:
    
    model = Contacto
    
    fields = '__all__'

como insertar css a un formulario de django?


VIEWS.PY

def contacto(request):
    if request.method =="POST":
        form = ContactoForm(request.POST)
        if form.is_valid():
            contacto = form.save(commit=False)
            contacto.save()
            return redirect('contacto')
    else:
        form = ContactoForm()
    return render(request,'Contacto.html',{'form': form})

FORMS.PY

from django import forms
from .models import Contacto

class ContactoForm(forms.ModelForm):

    class Meta:
    
        model = Contacto
    
        fields = '__all__'
Origen Enlace

como insertar css a un formulario de django?


como insertar css a un formulario de django?


VIEWS.PY

def contacto(request):
if request.method =="POST":
    form = ContactoForm(request.POST)
    if form.is_valid():
            contacto = form.save(commit=False)
            contacto.save()
            return redirect('contacto')
else:
    form = ContactoForm()
return render(request,'Contacto.html',{'form': form})

FORMS.PY

from django import forms

from .models import Contacto

class ContactoForm(forms.ModelForm):

class Meta:
    
    model = Contacto
    
    fields = '__all__'