Re: Diplay database column headers on HTML programmatically

2015-04-11 Thread Mike Dewhirst
On 12/04/2015 3:38 PM, Kishan Mehta wrote: Hey Friends, There is a model.py and i want to add its column headers in drop down list in HTML. Any way to pass them through views.py ? Dont want to hardcode at HTML because too many columns . You probably want https://docs.djangoproject.com/en/1.8/

Diplay database column headers on HTML programmatically

2015-04-11 Thread Kishan Mehta
Hey Friends, There is a model.py and i want to add its column headers in drop down list in HTML. Any way to pass them through views.py ? Dont want to hardcode at HTML because too many columns . Thanks for the help. Regards, Kishan -- You received this message because you are subscribed to the G

Re: Django & Zinnia installation: where's the zinnia app folder?

2015-04-11 Thread Megalo Whale
On Thursday, April 10, 2014 at 1:09:15 AM UTC-4, Jared Nielsen wrote: > > Hi, > Noob here. I'm building my first Django project and wanted to integrate a > pre-existing blog app. I got zinnia set up and accessible through admin, > but the process didn't create a zinnia folder in my project. Wh

Re: Possible bug with django site frameworks swapping between 2 sites every request

2015-04-11 Thread Stephen J. Butler
What happens if you disable all caching (try setting it to the dummy cache). Also, you really shouldn't put your python code in your server's DocumentRoot. There's absolutely no reason to do it that way. You're just asking to have your settings.py file exposed by a misconfigured apache instance.

Django ProgrammingError: no relation exists when using ManyToManyfield

2015-04-11 Thread Chase Cooley
I can post code and errors here, but have already posted on stackoverflow.com and so I figured it might be useful to see some of the comments users on that site have suggested. If this is not acceptable let me know and i'll post everything here. Thanks! http://stackoverflow.com/questions/291901

Possible bug with django site frameworks swapping between 2 sites every request

2015-04-11 Thread Joe
I am using django's sites framework with dajngo 1.7. I am calling the site name through a context processor like below. The problem is that every time the page loads, it switches between site1 and site2: def site_info(request): Site.objects.clear_cache()# i tried with and without this

Re: Question on Extending the existing User model documentation

2015-04-11 Thread Larry Martell
On Sat, Apr 11, 2015 at 9:27 AM, Mike Dewhirst wrote: > On 10/04/2015 11:06 PM, Larry Martell wrote: >> >> Reading this: >> https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#extending-the-existing-user-model >> >> I see this: >> >> These profile models are not special in any way - the

Re: Question on Extending the existing User model documentation

2015-04-11 Thread Mike Dewhirst
On 10/04/2015 11:06 PM, Larry Martell wrote: Reading this: https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#extending-the-existing-user-model I see this: These profile models are not special in any way - they are just Django models that happen to have a one-to-one link with a Use

Re: Custom password validation

2015-04-11 Thread Larry Martell
On Friday, April 10, 2015, Helton Alves wrote: > hey man, how are you ? > > I don't know if I understand very well, but you can try make a custom user > and in forms file you can do the validation that you need. :D > > if that's right, you can follow this example: > > http://www.lasolution.be/blo