Re: Django forms validation

2016-05-06 Thread Babatunde Akinyanmi
Good morning Lekan. My response is inline... On May 6, 2016 4:21 AM, "Lekan Wahab" wrote: > > Hello Babatunde, > Thank you for answering my question. > I have actually done that. > But Django throws and error whenever I I instantiate form/for_class to ContactForm(request. POST). > It says it's exp

Re: Connecting to an established MS SQL database

2016-05-06 Thread Larry Martell
On Thu, May 5, 2016 at 3:26 PM, David McDonald wrote: > Hello, I am very new to Django and have an idea for an application at work. > > We have an already established MS SQL database, that I have a read only user > for. > > Is there any way I can connect to this database and retrieve data from it,

Re: Fixtures won't load twice in same testcase

2016-05-06 Thread Alasdair Nicol
Hi Rich, Regarding a couple of things you mentioned on Django-developers: On Thursday, 5 May 2016 19:20:16 UTC+1, Rich Rauenzahn wrote: > > > Thanks, Tim. > > Unfortunately I can't move past Django 1.7 yet -- dependencies. I've been > marching my way up one revision at a time hopefully up to 1.

Re: Ubuntu 16.04 Django 1.9.6 & MySql

2016-05-06 Thread Tim Graham
It helps if you tell us the actual errors you encountered. Maybe http://stackoverflow.com/questions/36796167/upgraded-to-ubuntu-16-04-now-mysql-python-dependencies-are-broken helps? On Thursday, May 5, 2016 at 2:21:50 PM UTC-4, Mauro Miotello wrote: > > I cannot install mysqlclient on this env

python - handling HTTP requests asynchronously

2016-05-06 Thread luke lukes
Hi everyone, I need to generate a PDF report for each entry of a django queryset. There'll be between between 30k and 40k entries. The PDF is generated through an external API. Since currently is generated on demand, this is handled synchronously via an HTTP request/response. That will be dif

Re: How to access selected options from a select list to show them in a table ?

2016-05-06 Thread Ricardo Daniel Quiroga
Hello, What you must do is to use Javascript and AJAX, to have the desired behavior, I guess would be for onchange event. By the way it is therefore desirable to handle the tables in the following format regards 2016-05-03 8:06 GMT-03:00 : > So i have a select list an

Django Models

2016-05-06 Thread Omar
Gretting, I have in my DataBase (Directorios) two row, Departamento and Telefonos with the method Directorios.objects.all() I can get all objects in my DB but I need just get all Departamento in a variable, I don't know how get it separated. -- Este mensaje le ha llegado mediante el servicio de

Re: Django Models

2016-05-06 Thread Sergiy Khohlov
simplest way is using filter() against all() Take a look at https://docs.djangoproject.com/en/1.9/ref/models/querysets/ Many thanks, Serge +380 636150445 skype: skhohlov On Fri, May 6, 2016 at 5:27 PM, Omar wrote: > Gretting, I have in my DataBase (Directorios) two row, Departamento and >

multiple INSERT with django form

2016-05-06 Thread tholtorff
Hi I'm trying to create a django form based on the model. The model contains fields: username, date, shift, department, team. Team and Department are defined in different app and are extending the user through UserProfile. I would like to have a table that is generated automatically based on th

Re: Passing hidden foreign key to form as initial value

2016-05-06 Thread Michel Z. Santello
Can somebody explain why did occurs with widget=forms.HiddenInput ? Thank's. Em quarta-feira, 31 de março de 2010 10:20:48 UTC-3, Phoebe Bright escreveu: > > Displayed fields resolve as expected, hidden fields cause errors. > > This works: > > in the model > CourseBook has a foreign key to Cou

django rest framework-haystack-elasticsearch

2016-05-06 Thread keba . diedhiou
Hello i have a problem with django rest framework-haystack-elasticsearch.when i execute http://example.com/api/v1/location/search/?city=Oslo i have a problem: "The model None is not registered" -- You received this message because you are subscribed to the Google Groups "Django users" group.

Having a problem loading images and other content for some reason..

2016-05-06 Thread Yakir Gabay
Hello I'm very new to Django and very confused I have basic familiarity with HTML. Hosted a website on my localhost, the CSS loads like I wanted however the images refuse to load and the menu doesn't respond to anything like it should.. Very lost and appreciate any help.. {% load stati

Storing images in a database using Django.

2016-05-06 Thread Mlati Mudan
Hi guys, I'm a TOTAL noob when it comes to django and web development for that matter. I have an idea for a web app and I do have a basic understanding of programming. I've gone through a few Django tutorials and I'm confident I can do it, I just need help along the way :) So, my "brilliant"

Re: Storing images in a database using Django.

2016-05-06 Thread André Machado
NEVER store images in DB, store its path so you can use it in a img tag later. =) Em sexta-feira, 6 de maio de 2016 16:06:08 UTC-3, Mlati Mudan escreveu: > > > Hi guys, I'm a TOTAL noob when it comes to django and web development for > that matter. I have an idea for a web app and I do have a ba

Django-Dashing

2016-05-06 Thread Foridur Kayes Shawon
I am trying to work with django-dashing but some thing is going wrong. Please give me some direction that would actually work. -- 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, sen

Re: Django-Dashing

2016-05-06 Thread Aaron C. de Bruyn
Can you provide us with a little more detail? What isn't working? What error messages are you getting? I haven't touched it in about a year. You might also consider getting support by going here: https://github.com/talpor/django-dashing/issues/new -A On Fri, May 6, 2016 at 12:51 PM, Foridur K

Re: Storing images in a database using Django.

2016-05-06 Thread Alex Heyden
There's an ImageField for use in models, but to really understand it, start with FileField https://docs.djangoproject.com/en/1.9/topics/files/ https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.FileField The general idea is that you have a directory configured by Django's s

Re: Django formset security and injecting PKs in formset hidden id fields

2016-05-06 Thread Carl Meyer
Hi Rob, On 05/03/2016 12:23 PM, Rob Ladd wrote: > I've noticed something troubling in Django formsets: > > Each formset.form has a hidden field with the id of the model being edited. > > All one would need to do is change this id and submit, and the default > formset |clean()| or |save()| metho

Re: Django formset hidden id field

2016-05-06 Thread Carl Meyer
Hi Rob, On 05/03/2016 12:13 PM, Rob Ladd wrote: > Carl Meyer said: > > "Whatever queryset you pass to the model formset limits the > available rows for editing. The end user can edit the PK to refer to any > item in that queryset, but not any item in the table. " > > That's not true, based on

Re: Storing images in a database using Django.

2016-05-06 Thread Adam Stein
You can take a look at django-db-file-storage https://readthedocs.org/projects/django-db-file-storage/ In my case, I was making something for myself and the hosting server doesn't allow me access to any kind of file system, so I found this. On Fri, 2016-05-06 at 15:42 -0500, Alex Heyden wrote: > Th

Re: Storing images in a database using Django.

2016-05-06 Thread m1chael
Storing images in a database will be loads of headache later. Like someone else said: store only the paths! Use FileField/imagefield On May 6, 2016 7:26 PM, "Adam Stein" wrote: > You can take a look at django-db-file-storage > > https://readthedocs.org/projects/django-db-file-storage/ > > In my c

Re: Storing images in a database using Django.

2016-05-06 Thread Gabriel Marcondes
If you can't store upload files on your file system (for example, if you deploy to Heroku), you can use something like django-storages [0] to upload them to a S3 bucket. S3 is cheap (you can start with a free trial, and after that you'll pay like 1 or 2 cents/month for small projects) and reliable.