Running a single version of my Django app but with two databases: one for dev and one for prod

2018-09-24 Thread jim_rain
Hi, I'm developing a Django app, it's hosted on an EC2 instance so I'm using wsgi, even in development. I would like to create a production and a development version where really the only things that are different are the two databases. I want the code to be the same on both. I figured I could

Re: SplitDateTimeField in model form won't pre-populate

2011-04-10 Thread jim_rain
, >         context_instance=RequestContext(request)) > > Hope it helps. > > -- > Gladyshttp://bixly.com > > On Apr 11, 12:34 am, jim_rain wrote: > > > > > Hi - > > > I'm using Django 1.3 and I have a model defined with a DateTimeField > >

SplitDateTimeField in model form won't pre-populate

2011-04-10 Thread jim_rain
Hi - I'm using Django 1.3 and I have a model defined with a DateTimeField and a corresponding form that uses a SpliteDateTimeField to format the date and time the way I want it to look. The definition looks like this: # --- Code snippet _# class Test(models.Mod

Re: Another problem with django static files

2011-03-22 Thread jim_rain
d my template to {{ form.media }} then I don't see anything (neither field) . Also when I do that the out put from runserver changed to: "GET /myApp/ jtest/ HTTP/1.1" 200 283 Any other suggestions or ideas are very welcome as I'm pretty stumped. Jim On Mar

Another problem with django static files

2011-03-22 Thread jim_rain
I'm running Django 1.2.5 on a linux (Centos 5.5) server and I'm trying to use a datepicker widget written by Aaron Williamson (http:// copiesofcopies.org/webl/2010/04/26/a-better-datetime-widget-for- django/) I followed all the steps in his write up but when I try to access the form with the datep