Problem when styling form fields with errors

2024-04-24 Thread Guido Luis Dalla Vecchia
Hello! I'm building my first website with Django and for the last 2 months have been stuck with a problem with my form. My webpage has a form with 3 fields that allow the user to input his first name, last name and email. I've defined "clean" methods for all three fields in "forms.py", in which

Re: Whats the best package for Django-admin styling

2020-04-22 Thread Andréas Kühne
Hi, I think grappelli does a great job regarding styling the admin pages - I use it all the time. It is also (currently) actively developed. However there are other solutions: https://djangopackages.org/grids/g/admin-interface/ The main thing I would look for is to make sure that the package I

Whats the best package for Django-admin styling

2020-04-21 Thread suman patel
Hi, We are having Django admin used extensively in our project. Any suggestions for adding more style and features to it. I searched Django- grappelli. Anyone using it. Any feedback and basic features you have used so far. Thx patel -- You received this message because you are subscribed to

Re: Blog styling

2019-12-26 Thread sagar podilapu
Good luck. Now what help do you need? On Thu, Dec 26, 2019 at 6:34 PM Anwar Ali wrote: > Hi guys, > > I am converting my site to A.I blog so I wanna know what styles of writing > and options I have for giving my blog a decent look like many WordPress > blogs have ... like s

Blog styling

2019-12-26 Thread Anwar Ali
Hi guys, I am converting my site to A.I blog so I wanna know what styles of writing and options I have for giving my blog a decent look like many WordPress blogs have ... like styling, writing options in comments and posts etc. Thanks in advance Annu -- You received this message because

Re: Styling in Django

2019-12-09 Thread Tafadzwa Marshal
hello. Can you send that Materialize tutorial On Wed, Dec 4, 2019 at 3:27 AM Akshay Deep wrote: > https://vacancyjobalert.com/”>VacancyJobAlert.Com > > On Tuesday, December 3, 2019 at 7:16:34 PM UTC+5:30, marshalx4 wrote: >> >> How can I use Materialize CSS with Django? Seems like bootstrap is

Re: Styling in Django

2019-12-04 Thread Akshay Deep
https://vacancyjobalert.com/”>VacancyJobAlert.Com On Tuesday, December 3, 2019 at 7:16:34 PM UTC+5:30, marshalx4 wrote: > > How can I use Materialize CSS with Django? Seems like bootstrap is the > only framework that works with little to no hassle at all. > -- You received this message because

Re: Styling in Django

2019-12-03 Thread Tafadzwa Marshal
thanks On Tue, Dec 3, 2019 at 6:40 AM Thiago Luiz Parolin wrote: > My last project materializecss uses materialize with great success and to > stylizing forms i am using django-materializecss-form > > Em ter., 3 de dez. de 2019 às 10:52, Alan Gómez > escreveu: > >> You can work with

Re: Styling in Django

2019-12-03 Thread Thiago Luiz Parolin
My last project materializecss uses materialize with great success and to stylizing forms i am using django-materializecss-form Em ter., 3 de dez. de 2019 às 10:52, Alan Gómez escreveu: > You can work with materializecss In django. You must configure the static > path and put the materializecss

Styling in Django

2019-12-03 Thread Alan Gómez
You can work with materializecss In django. You must configure the static path and put the materializecss files in these path. At night, I can send you an example. Regards. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Styling in Django

2019-12-03 Thread marshalx4
How can I use Materialize CSS with Django? Seems like bootstrap is the only framework that works with little to no hassle at all. -- 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,

Re: styling tables in django

2019-09-01 Thread Kean
Thanks Jani, I will look at the tutorial. Best, K On 1 Sep 2019, at 11:17, Jani Tiainen wrote: > Hi. > > Templates are just a text and very common thing is to render templates as > html. > > So there is no magic involved what comes to styling. It is just CSS which > w

Re: styling tables in django

2019-09-01 Thread Jani Tiainen
Hi. Templates are just a text and very common thing is to render templates as html. So there is no magic involved what comes to styling. It is just CSS which would make your tables styled. And that is beyond Django. If you want to use CSS file as included as a link in html header part

styling tables in django

2019-08-31 Thread Kean
Hi, New to Django, appreciate the guidance, I'm looking to style template so both header and data records are note wrapped. please see current setup. Please can anyone help with the template code, appreciate, it's not quite django, but more bootstrap4 django. Best, K -- You received

Re: Django-Autocomplete-light Styling Input Box

2018-07-10 Thread Melvyn Sopacua
S created by > the framework and change some styling attribute like width, of height ? Yes you can: - Override html[1] - Pass options to Select2[2] P.S. Excellently formulated question. -- Melvyn Sopacua [1] http://django-autocomplete-light.readthedocs.io/en/master/tutorial.html#displa

Django-Autocomplete-light Styling Input Box

2018-07-10 Thread umarcja
and change some styling attribute like width, of height ? I've add 2 pictures of what my app is rendering, and I just want the first input box (Created by autocomplete model) to look like the second one create by my own input box and css styling sheets. Thanks a lot Have a great day everyone

Re: no styling

2018-04-09 Thread James Farris
Hi Paul, Have you read this part of the docs? https://docs.djangoproject.com/en/2.0/howto/static-files/ You will need a static files directory and will need to tell Django where it is In settings.py Sent from my mobile device > On Apr 9, 2018, at 5:04 AM, Paul Baforh

no styling

2018-04-09 Thread Paul Baforh
Please, my django development page is without css. How do I go about it. Thanks -- 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

Re: Form help_text and error list styling

2018-01-11 Thread SHAILESH NEGI
Try django message framework On Jan 12, 2018 10:38, "Ruchit Bhatt" wrote: > Hi > I have made form for signup using Django 2.0 as below > > {% csrf_token %} > {% for non_field_error in form.non_field.errors %} > {{

Form help_text and error list styling

2018-01-11 Thread Ruchit Bhatt
Hi I have made form for signup using Django 2.0 as below {% csrf_token %} {% for non_field_error in form.non_field.errors %} {{ non_field_error }} {% endfor %} {% for field in form %} {{

Help with styling: form for a many-to-many inline admin

2017-06-27 Thread Derek
I am trying to improve the appearance of the inline editing appearance for a many-to-many field in the Django (1.10) admin . The parent model contains the link: class Sample(models.Model): id = models.AutoField(primary_key=True) # ... objectives = models.ManyToManyField(

Re: strange upload mechanism clashing with crispy forms styling

2016-02-25 Thread James Schneider
object calls at the class level without an assignment to a class variable. You have two options: 1. Add the styling directly to the Django form widget ( https://docs.djangoproject.com/es/1.9/ref/forms/widgets/#django.forms.Widget.attrs ) 2. Create a custom Layout() object using Crispy Form

strange upload mechanism clashing with crispy forms styling

2016-02-25 Thread clarksonchris81
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

Re: crispy form styling of unconventional upload mechanism

2016-02-22 Thread James Schneider
> > I just need to know how I centre the text in the middle of my page... I > can't believe that it could be this complicated > Another idea you can try is wrapping your ButtonHolder inside of a Div() like Div(ButtonHolder(...), css_class='text-center') to center the whole group, or just

Re: crispy form styling of unconventional upload mechanism

2016-02-22 Thread James Schneider
ust add an HTML() element to your Layout object instead using Submit() that contains the desirable tag (basically render the button yourself manually). The HTML() object is detailed on this page: http://django-crispy-forms.readthedocs.org/en/latest/layouts.html#universal-layout-objects You can

crispy form styling of unconventional upload mechanism

2016-02-22 Thread clarksonchris81
I have made an upload form button, that I need to be able to refers to tin my css code such that I can centre it on the web page. However the upload button is not constituted by any bootstrap like "btn" syntax, which is prevalent in example code. Instead is constituted by the following code:

Re: No styling in Chapter 6 in djangobook

2013-05-21 Thread djingo django
Thanks, Mike, for your reply. This turned to be a very common problem... Following your suggestion, I checked the page source (I am running Safari browser on OSX 10.8) and indeed saw the references to the CSS stylesheets: Site administration | Django site admin That, as well as your

Re: No styling in Chapter 6 in djangobook

2013-05-20 Thread Mike Dewhirst
On 21/05/2013 11:07am, djingo django wrote: I'm starting to learn Django and have been reading through the djangobook.com. I am able to get the code running when I come to Chapter 6: The Django Admin Site, but it looks nothing like the well-formed and well-styled screenshots in the

Re: site styling works with development server but not apache

2011-02-17 Thread Ashish Agarwal
Progress!! I had to add Alias /adminmedia "/usr/lib/pymodules/python2.6/django/contrib/admin/media" and set ADMIN_MEDIA_PREFIX to the same url /adminmedia/ I don't understand everything yet, and will probably have more problems soon. But at least I got this far. Thanks for all the help!! On

Re: site styling works with development server but not apache

2011-02-17 Thread Mike Ramirez
On Thursday, February 17, 2011 09:23:47 am you wrote: > I'm still having trouble. My directory structure is: > > /usr/local/www/static > > +- contrib/admin/media -- symlink to django/contrib/admin/media > > +- media/admin/base_site.html -- modified version of base_site.html > > I've tried

Re: site styling works with development server but not apache

2011-02-17 Thread Ashish Agarwal
gt; >> On Thu, Feb 17, 2011 at 10:30 AM, Mike Ramirez <gufym...@gmail.com>wrote: >> >>> On Thursday, February 17, 2011 07:14:16 am ashish wrote: >>> >>> > Hi all. I followed the tutorial to setup a basic django site and run >>> >>&g

Re: site styling works with development server but not apache

2011-02-17 Thread Marcos Moyano
AM, Mike Ramirez <gufym...@gmail.com> wrote: > >> On Thursday, February 17, 2011 07:14:16 am ashish wrote: >> >> > Hi all. I followed the tutorial to setup a basic django site and run >> >> > it with the development server. Everything looks fine. The

Re: site styling works with development server but not apache

2011-02-17 Thread Ashish Agarwal
elopment server. Everything looks fine. Then, I > > > configured to use apache. Everything seems to work except the styling. > > > The login and admin pages have no formatting. On IRC I was told the > > > issue is that the development server automatically serves the > >

Re: site styling works with development server but not apache

2011-02-17 Thread Mike Ramirez
On Thursday, February 17, 2011 07:14:16 am ashish wrote: > Hi all. I followed the tutorial to setup a basic django site and run > it with the development server. Everything looks fine. Then, I > configured to use apache. Everything seems to work except the styling. > The login and admi

Re: site styling works with development server but not apache

2011-02-17 Thread Tom Evans
On Thu, Feb 17, 2011 at 3:14 PM, ashish <agarwal1...@gmail.com> wrote: > Hi all. I followed the tutorial to setup a basic django site and run > it with the development server. Everything looks fine. Then, I > configured to use apache. Everything seems to work except the styli

site styling works with development server but not apache

2011-02-17 Thread ashish
Hi all. I followed the tutorial to setup a basic django site and run it with the development server. Everything looks fine. Then, I configured to use apache. Everything seems to work except the styling. The login and admin pages have no formatting. On IRC I was told the issue

Re: Styling help_text

2011-02-01 Thread shacker
Thanks for the info, and for the doc patch Preston. Back to manual mode for now :) ./s On Feb 1, 6:59 am, Preston Timmons wrote: > Hi Scot, > > Unfortunately, the patch to that ticket was committed after 1.2 was > released. That feature isn't available until 1.3 or in

Re: Styling help_text

2011-02-01 Thread Preston Timmons
Hi Scot, Unfortunately, the patch to that ticket was committed after 1.2 was released. That feature isn't available until 1.3 or in trunk. What you see in the docs is an error. The original patch didn't include an update there. I created a ticket to have the docs corrected.

Styling help_text

2011-01-31 Thread Scot Hacker
This ticket http://code.djangoproject.com/ticket/8426 says that, as of six months ago, model field help_text rendered in forms by {{form.as_p}} gets wrapped in a style-able span. But in Django 1.2.4, {{form.as_p}} still generates unspanned help_text. It also doesn't show up spanned in the docs:

Re: Django-autocomplete - styling?

2010-10-22 Thread derek
': '{{ app_label }}', 'model_name': '{{ model_name }}' }, with: inputClass: "vForeignKeyTextAdminField", You can use any name, of course - but the same name should be used in your .css file. I found that a styling of width:85% gave a suitably large display f

Django-autocomplete - styling?

2010-10-21 Thread Derek
A quick question for anyone using the django-autocomplete ... where/how do I style the display box used for displaying the "static" text? Thanks! Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: styling with django templates

2010-06-08 Thread Venkatraman S
On Wed, Jun 9, 2010 at 3:57 AM, Nick wrote: > Boy, that just flew right past me. Ridiculous. Thanks everyone. > > On Jun 8, 1:06 pm, Dejan Noveski wrote: > > http://docs.djangoproject.com/en/dev/ref/templates/builtins/#for > > > > scroll a bit down to see

Re: styling with django templates

2010-06-08 Thread Nick
Boy, that just flew right past me. Ridiculous. Thanks everyone. On Jun 8, 1:06 pm, Dejan Noveski wrote: > http://docs.djangoproject.com/en/dev/ref/templates/builtins/#for > > scroll a bit down to see the forloop object and its properties. > > > > On Tue, Jun 8, 2010 at 8:05

styling with django templates

2010-06-08 Thread Nick
I am looking for a way to identify the first item returned in a loop and display it differently than the others: basically it would go like: {% for item in items %} {% if is_first_item %} This is what will show {% else %} this is what will show {% endfor %} Am I overlooking

Re: Styling widgets with django.forms

2009-12-08 Thread Daniel Roseman
On Dec 8, 9:28 am, playfire wrote: > I am using django.forms for my forms and I want to style my > tags using css. I know I can customize the form template, but how do i > customize the widget itself? Normally I would do > and then put the style in my css file but all I have

Styling widgets with django.forms

2009-12-08 Thread playfire
I am using django.forms for my forms and I want to style my tags using css. I know I can customize the form template, but how do i customize the widget itself? Normally I would do and then put the style in my css file but all I have is {{ form.fieldname }} to create the widget. -- You received

Re: Date/time field styling?

2009-08-11 Thread mhulse
Hi! > Look at the SplitDateTimeWidget in django.forms.widgets. I am sorry to be a complete noob here, but I am not sure how I can use SplitDateTimeWidget to break-up the two dat/time fields? I am actually using django-schedule: Looks

Styling a formset

2009-08-10 Thread olivergeorge
Hello I'm trying to add some css styling to fields in a formset but there aren't an good classes to work with. Each field has a id which could be used for styling but it has it's index embedded in it. For example: id="id_educationequipment_set-0-id" That's not very helpful for CSS..

Re: Date/time field styling?

2009-08-04 Thread mhulse
For those interested, I found this link via browsing the django-html git source: Django Developers: Proposal: Form rendering with filters Looks interesting. Unfortunately, I am still a noob, so I probably won't be able to cross that bridge for a while. :) Thanks

Re: Date/time field styling?

2009-08-04 Thread mhulse
Thanks Alex and Malcolm! I really appreciate the help. :) Have a great day/night. Cheers, Micky --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Date/time field styling?

2009-08-03 Thread Alex Gaynor
On Mon, Aug 3, 2009 at 6:18 PM, Malcolm Tredinnick wrote: > > On Mon, 2009-08-03 at 11:29 -0700, mhulse wrote: >> Hello, >> >> {{ form.start }} >> >> For example, outputs this: >> >> > > >> >> I have tried: >> >> {{ form.start_0 }} and {{ form.start_1 }}, but that

Re: Date/time field styling?

2009-08-03 Thread Malcolm Tredinnick
On Mon, 2009-08-03 at 11:29 -0700, mhulse wrote: > Hello, > > {{ form.start }} > > For example, outputs this: > > > > > I have tried: > > {{ form.start_0 }} and {{ form.start_1 }}, but that outputs absolutely > nothing. :) > > Is it possible to split up the two fields so I can handle them

Date/time field styling?

2009-08-03 Thread mhulse
Hello, {{ form.start }} For example, outputs this: I have tried: {{ form.start_0 }} and {{ form.start_1 }}, but that outputs absolutely nothing. :) Is it possible to split up the two fields so I can handle them individually? Also, is it possible to control the XHTML output? I prefer use a

Re: django on apache looses all styling

2008-10-16 Thread Dj Gilcrease
gt; serve django with mod_python installed in apache. I can now browse to >> localhost/myapp/admin but the admin page has lost all styling. Any comments >> or suggestions are very much appreciated. Sorry for such an elementary >> question, but I am stuck and can't find anything on

Re: django on apache looses all styling

2008-10-16 Thread William Purcell
d in apache. I can now browse to > localhost/myapp/admin but the admin page has lost all styling. Any comments > or suggestions are very much appreciated. Sorry for such an elementary > question, but I am stuck and can't find anything on google. > Thanks, > Bill > > Windows XP >

django on apache looses all styling

2008-10-16 Thread William Purcell
to localhost/myapp/admin but the admin page has lost all styling. Any comments or suggestions are very much appreciated. Sorry for such an elementary question, but I am stuck and can't find anything on google. Thanks, Bill Windows XP Apache 2.0.63 mod_python 3.3.1 Python 2.5 django 1.1

Re: Django on mod_python... Admin interface, no styling...

2008-05-03 Thread Abdallah El Guindy
Thanks... that solved it! On May 3, 6:22 pm, jonknee <[EMAIL PROTECTED]> wrote: > > I tried deploying my django project on apache+modpython as the > > tutorial described... Everything works fine except that the admin > > website displays unformatted ... (could not manage to find the > >

Re: Django on mod_python... Admin interface, no styling...

2008-05-03 Thread jonknee
> I tried deploying my django project on apache+modpython as the > tutorial described... Everything works fine except that the admin > website displays unformatted ... (could not manage to find the > stylesheet somehow), can anyone tell me what went wrong? See "Serving the admin files" in the

Django on mod_python... Admin interface, no styling...

2008-05-03 Thread Abdallah El Guindy
Hey all I tried deploying my django project on apache+modpython as the tutorial described... Everything works fine except that the admin website displays unformatted ... (could not manage to find the stylesheet somehow), can anyone tell me what went wrong? Thanks

Re: A naive question re: text styling tags

2008-01-29 Thread Rajesh Dhawan
d to style some of the text in the > content field, e.g., italicize a word, display a string of words in > boldface, etc. > > Does the person entering the text have to know how to insert the html > styling tags? Or is there some other method  for handling text styling > within a content block?

Re: A naive question re: text styling tags

2008-01-29 Thread code_berzerker
I'd integrate javascript WYSIWYG editor like FCKEditor or TinyMCE to edit TextField type fields. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

A naive question re: text styling tags

2008-01-29 Thread LRP
in boldface, etc. Does the person entering the text have to know how to insert the html styling tags? Or is there some other method for handling text styling within a content block? How do they do it at lawrence.com? Many thanks, Lloyd --~--~-~--~~~---~--~~ You

Re: url styling

2007-08-10 Thread Filipe Correia
>From a REST perspective, I think the best would be to make the action part of the query string. However, I also know not everyone agrees with this, so don't take my word for it. -- Filipe On Aug 10, 6:21 am, james_027 <[EMAIL PROTECTED]> wrote: > hi, > > is there any advantage or disadvantage

Re: url styling

2007-08-10 Thread Nicola Larosa
[RESTafarian zealotry follows: you have been warned. ;-) ] james_027 wrote: > is there any advantage or disadvantage or best practices in forming > urls? Yes, there is. By following web architecture principles, as formalized in the REST (REpresentational State Transfer) methodology, you gain

Re: url styling

2007-08-10 Thread Sean Perry
On Aug 9, 2007, at 10:21 PM, james_027 wrote: > > hi, > > is there any advantage or disadvantage or best practices in forming > urls? like which set are much better? > > domain/employee/1 > domain/edit_employee/1 > domain/inactive_employee/1 > > or > > domain/employee/1 > domain/employee/1/edit/

Re: url styling

2007-08-10 Thread Lucky B
I think the second is better because you're being consistent in your hierarchy order. IE you're going from least specific to most specific: domain -> object -> instance ->action Instead, in the first one you're going: domain -> action -> object -> instance Then again, it's purely preference.

url styling

2007-08-09 Thread james_027
hi, is there any advantage or disadvantage or best practices in forming urls? like which set are much better? domain/employee/1 domain/edit_employee/1 domain/inactive_employee/1 or domain/employee/1 domain/employee/1/edit/ domain/employee/1/inactive/ thanks james

Car Tuning - Styling

2007-08-09 Thread knjaz milos
Cool cars, tuning & styling, modified cars, many upgrades... http://tuning-styling.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Tuning - Styling

2007-08-08 Thread knjaz milos
Cool cars, tuning & styling, here you can find many tuned cars with tons of pictures!!! http://tuning-styling.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"