The following is a part (the rest being in models an views) of an 
upload-file mechanism in my forms.py:

from crispy_forms.layout import Divclass DocumentForm(forms.Form):
   docfile = forms.FileField(label='Select a BAM file')
   Div('docfile', style="background: black;", css_class="col-sm-6 col-md-9 
col-lg-9")

HTML

  {% crispy form %} # this way the file, naturally, does not upload well

I'm aware that there is a lot more elaborate ways of doing this but really 
I just want the upload to be functional which it is and from there I'd like 
to control the CSS/bootstrap...

Help Please!!!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/30dc988f-0def-4497-9ca7-9cc514adc5e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to