Re: Concatenate complex views

2016-01-13 Thread Aaron C. de Bruyn
I may be missing something, but couldn't you use a generic ListView and something like: {% for car in car_list %} Car Make: ...etc {% endfor %} Don't include a tag or a submit button and you should get something that looks like a form, but is read-only. Maybe even disable the input box so

Concatenate complex views

2016-01-13 Thread Arnab Banerji
Hi - I am trying to concatenate "read-only" form views of all objects pertaining to a given model in a single page (I already have a template for viewing the form for one object). Given that the forms are reasonably complex (in some cases involving formsets), a simple "inclusion tag" approach

Documentation for User.set_unusable_password() doesn't feel complete

2016-01-13 Thread Brice PARENT
When you set an usable password (using https://docs.djangoproject.com/en/dev/ref/contrib/auth/#django.contrib.auth.models.User.set_unusable_password), it is not really clear that to make the password usable again, one should use `set_password` and define a new one. The doc says that this

Re: how do I .............?

2016-01-13 Thread Tim Chase
On 2016-01-13 10:43, Steve Burrus wrote: > how do I connmect to the Django server on the command line? You can use a command-line browser: lynx http://localhost:8000 links http://localhost:8000 elinks http://localhost:8000 links2 http://localhost:8000 w3m http://localhost:8000

Re: apps.populate deadlock

2016-01-13 Thread Shai
Hi, On Wednesday, January 13, 2016 at 12:54:59 AM UTC+2, John Bazik wrote: > > Breaking it down: > >- Django.setup wants to load all apps, and calls apps.populate >- Django-cms plugins register themselves at load time >- Django-cms plugin registration involves loading templates > > I

Re: how do I .............?

2016-01-13 Thread Fred Stluka
python manage.py shell --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no

how do I .............?

2016-01-13 Thread Steve Burrus
how do I connmect to the Django server on the command line? -- 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 django-users+unsubscr...@googlegroups.com. To post

max_length in form not working

2016-01-13 Thread Ashutosh Singh
Hi, I am using django 1.8.7. I noticed that max_length for form is not working. The form validates even when the max_length is set and password length is more than 50 for following code. Though the min_length works fine. class AuthenticationForm(forms.Form) : email_mobile =

Re: excel file upload to MySQL database

2016-01-13 Thread François Schiettecatte
You can also use xlrd to open .xls files if needed: https://pypi.python.org/pypi/xlrd François > On Jan 13, 2016, at 10:48 AM, Larry Martell wrote: > > On Wed, Jan 13, 2016 at 9:26 AM, girija sameera > wrote: >> >> Hello, >> I am

Re: excel file upload to MySQL database

2016-01-13 Thread Larry Martell
On Wed, Jan 13, 2016 at 9:26 AM, girija sameera wrote: > > Hello, > I am a Django beginner working on a web application wherein I am required > to provide back-end support. I am expected to take an excel file uploaded by > the admin from the template , parse the file

Showing BooleanField checkbox on left

2016-01-13 Thread Sayse
I'm in the process of trying to minimize the amount of code I need to use to render a form with bootstrap styling with the hope of rendering with just {{ form }} but I haven't yet managed to find a way to render a BooleanField with the checkbox before the text. from django.forms import

excel file upload to MySQL database

2016-01-13 Thread girija sameera
Hello, I am a Django beginner working on a web application wherein I am required to provide back-end support. I am expected to take an excel file uploaded by the admin from the template , parse the file using available Django libraries and upload it to MySQL database . Also bulk upload of

Please help me on generating the ORM query for given SQL query.

2016-01-13 Thread Pramod Bisht
I am unable to generate ORM query for given SQL query. I have posted this question on stackoverflow at http://stackoverflow.com/questions/34745199/django-orm-for-given-group-by-sql-query-with-aggregation-method-sum-and-count Please help me on that. Thanks in advance. -- You received this