Re: ModelForm not creating datepicker

2013-04-02 Thread carlos
yes that is correct maybe you want to use a datepicker http://jqueryui.com/datepicker/ Cheers On Tue, Apr 2, 2013 at 5:14 PM, Nick D wrote: > Hi all, > > I've created a ModelForm and am attempting to use it, but all of my date > fields are coming up with type "text" instead of a datepicker. C

Re: How to create a form list for a Model Form dynamically?

2013-04-02 Thread Nick D
(r'^(?P\d+)', QuizWizard.as_view(get_form_list)), the function get_form_list has no length Here you're not calling get_form_list as a function, so you're treating it as a variable. (r'^(?P\d+)', QuizWizard.as_view(get_form_list(quiz_id))), Quiz_id is unknown. Here you have corrected

ModelForm not creating datepicker

2013-04-02 Thread Nick D
Hi all, I've created a ModelForm and am attempting to use it, but all of my date fields are coming up with type "text" instead of a datepicker. Can anybody tell me what's going on? MODEL: class GIS_WO(models.Model): WON = models.CharField(max_length=7, blank=True, null=True) status

Re: Webfaction vs DigitalOcean

2013-04-02 Thread Venkatraman S
Well, a problem with DO is the inability to add disk space without changing plans. On Wed, Apr 3, 2013 at 1:20 AM, Carlos Daniel Ruvalcaba Valenzuela < clsdan...@gmail.com> wrote: > As a user of both, I got to say they are a bit different, webfaction > brings the easy of deploying of the classica

Re: General Apache Deploy Strategy

2013-04-02 Thread Mike Dewhirst
On 3/04/2013 1:04am, Sells, Fred wrote: We use django for intranet applications. There is minimal coupling between applications and we generally dedicate a virtual server for each application. Perhaps not the most efficient, but it works for our environment. In django 1.3 I just copied the “si

Re: Is there a way to see manage.py sql output of "managed=False" models?

2013-04-02 Thread Serdar Dalgic
On Wed, Apr 3, 2013 at 12:02 AM, Bill Freeman wrote: > > Yes. I must confess that I like your solution better. But some folks are > loth to edit the stuff that isn't their code. > Thanks. Yeah, there is such behavior among folks. > Maybe create a patch adding a command line flag that says you

Re: Is there a way to see manage.py sql output of "managed=False" models?

2013-04-02 Thread Bill Freeman
On Tue, Apr 2, 2013 at 4:57 PM, Serdar Dalgic wrote: > On Tue, Apr 2, 2013 at 11:48 PM, Bill Freeman wrote: > > Perhaps take the site down (or clone it), set managed = True, ask > manage.py > > for sql for that app, and put everything back? > > > > Sure, that's a way to do it. But I'm looking fo

Re: Is there a way to see manage.py sql output of "managed=False" models?

2013-04-02 Thread Serdar Dalgic
On Tue, Apr 2, 2013 at 11:48 PM, Bill Freeman wrote: > Perhaps take the site down (or clone it), set managed = True, ask manage.py > for sql for that app, and put everything back? > Sure, that's a way to do it. But I'm looking for a practical way to do it. Otherwise, commenting out the managed=Tr

Re: Is there a way to see manage.py sql output of "managed=False" models?

2013-04-02 Thread Bill Freeman
Perhaps take the site down (or clone it), set managed = True, ask manage.py for sql for that app, and put everything back? On Tue, Apr 2, 2013 at 3:46 PM, Serdar Dalgic wrote: > Hi; > > In my project, we are using django 1.3.2, and we're on the verge of > migrating to 1.4. > I wrote a standalon

Is there a way to see manage.py sql output of "managed=False" models?

2013-04-02 Thread Serdar Dalgic
Hi; In my project, we are using django 1.3.2, and we're on the verge of migrating to 1.4. I wrote a standalone app, in which I've created some models with class Meta: managed = False setting in every model class. (The reason why I did like this is, I prefer to use a different DB than

Re: Webfaction vs DigitalOcean

2013-04-02 Thread Carlos Daniel Ruvalcaba Valenzuela
As a user of both, I got to say they are a bit different, webfaction brings the easy of deploying of the classical web hosting to django, while digital ocean is more like "cloud based vps". With webfaction you don't have to setup much, if all you use is mysql/postgresql it is very nice, DO you hav

Re: Extracting json data for parsing from HTTP GET

2013-04-02 Thread Eduardo Gonzalo Espinoza Carreon
I had the same problem. This worked for me, just wrting this because I couldn't find an answer in stackoverflow or other sites. +1 Thanks On Thursday, September 2, 2010 8:19:37 AM UTC-3, irum wrote: > > Thank you so much, it worked:)...Now I just have to play with parsing > json that I think

Webfaction vs DigitalOcean

2013-04-02 Thread Venkatraman S
I know Webfaction has been a favourite for many of us, but was wondering if anyone moved to DO from Webfaction and has any praises to sing. Any feedback? -Venkat -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-02 Thread Alan Johnson
It's tough to know what the deal is without any info on your code or database, but two things come to mind. One is some of the new caching in Django 1.5 for related models (https://docs.djangoproject.com/en/dev/releases/1.5/#caching-of-related-model-instances), and the other is database isolat

Re: Data Structure - Orders and multiple items

2013-04-02 Thread Tom Evans
On Tue, Apr 2, 2013 at 4:59 PM, bobhaugen wrote: > There's a reason ERP systems have an order detail table. > > It might look something like: > > class OrderDetail(models.Model): > order = models.ForeignKey(Order) > item = models.ForeignKey('Item') > quantity = models.DecimalField(max_

Re: Data Structure - Orders and multiple items

2013-04-02 Thread bobhaugen
There's a reason ERP systems have an order detail table. It might look something like: class OrderDetail(models.Model): order = models.ForeignKey(Order) item = models.ForeignKey('Item') quantity = models.DecimalField(max_digits=8, decimal_places=2) etc. (That's just to explain

Re: How to manage django settings.py for Github, local, production

2013-04-02 Thread Josh Cartmell
You could set up a fabric file that handles the pushing. In our local repo create a file called live_settings.py (which is ignored by git). When fabric pushes to the production server tell it to copy live_settings.py to local_settings.py on the production server. On Mar 29, 1:11 am, surya wrote:

Re: my project is not working in virtualenv in ubuntu?

2013-04-02 Thread Josh Cartmell
It looks to me like your wsgi script is name index.py (which is fine) but you are referencing index.wsgi in your apache conf which probably doesn't exist. Have a look through your error logs and you might see the same. On Mar 31, 12:20 am, Avnesh Shakya wrote: > hi, >    please tell me,what is i

General Apache Deploy Strategy

2013-04-02 Thread Sells, Fred
We use django for intranet applications. There is minimal coupling between applications and we generally dedicate a virtual server for each application. Perhaps not the most efficient, but it works for our environment. In django 1.3 I just copied the "site" directory to the deploy location and

First ever DjangoCon AU - precedes Pycon-au in Hobart in early July

2013-04-02 Thread Mike Dewhirst
All Just forwarding the Pycon-au notice for obvious reasons ... "This year we're welcoming the Python on OpenStack day, and the first ever DjangoCon AU. These will happen on Friday July 5, just before the CodeWars Tournament, where we'll pit teams of developers against each other on the big s

django module of mail

2013-04-02 Thread elevenqiao0611
Now I use django to send a email with attachments. but the attachment's name is renamed by such as gmail/sina,like noname... and some css styles could not be loaded correctly -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

Re: Admin Site appending letter "s" to end of each model\table name

2013-04-02 Thread Daniel Reyes
Thank a lot for the solution, i'm a spanish user and that do the trick too. Very very thanks! Long Life to Django!! El lunes, 12 de septiembre de 2011 07:26:24 UTC-6, Casey escribió: > > I did not realize that my email client had not grabbed new mail from > today and this was 2 days old. Sorry