Re: One Way to Install Django on IIS

2013-04-12 Thread Nick D
Just what I'm going to need when I'm done with development. Thanks! On Friday, April 12, 2013 6:02:49 AM UTC-7, Mark Lybrand wrote: > My buddy and I were working last night on getting Django running on IIS7. > We are not quite done as we are still working out issues surrounding > static file

Re: django-admin.py startproject mysite

2013-04-12 Thread Nick D
It looks like the path to django-admin.py is not in your system path. You can try using the absolute path. ie: /usr/lb/python2.7/dist-packages/django/bin/django-admin.py startproject mysite The tutorial also gives the following advice: “command not found: django-admin.py” *django-admin.py*

Re: Reset Demo Database Data (with Dates)

2013-04-12 Thread Nick D
Joe, I'm new to Django but I do have some SQL experience. Couldn't you just run a statement similar to the following? update mytable set date1 = DATE_ADD(date1, INTERVAL 1 DAY) The pinch point here is the fact that you would have to update the interval based on how old the application is. T

Building table headers based on instance of model

2013-04-12 Thread Nick D
Hi again! I'm looking to create a table based on a model. I'm trying to make it simple and reusable. I want to build the table headers () based on the fields in the model. Given a specific model, is there a way to dynamically build the headers in the template? Thanks! -- You received this

Re: Newbie using reverse() function

2013-04-11 Thread Nick D
;p" variable won't be available to your index view > on a redirect, so I'm just working on the assumption that you just posted a > small code snippet and you're actually doing something with it beforehand. > > -- > Joey Espinosa > Python Developer >

Re: Newbie using reverse() function

2013-04-11 Thread Nick D
I got it, thanks Joe! url(r'^$', 'index', name='gis_wo_index'), return HttpResponseRedirect(reverse('gis_wo_index')) On Thursday, April 11, 2013 4:31:26 PM UTC-7, Nick D wrote: > I'm trying to use the reverse() function to get back

Re: Newbie using reverse() function

2013-04-11 Thread Nick D
uments '{}' not found. On Thursday, April 11, 2013 4:31:26 PM UTC-7, Nick D wrote: > I'm trying to use the reverse() function to get back to my index, but I'm > not sure if my view are compatible. My index funtion takes a request ( def > index(request)). I can'

Newbie using reverse() function

2013-04-11 Thread Nick D
I'm trying to use the reverse() function to get back to my index, but I'm not sure if my view are compatible. My index funtion takes a request ( def index(request)). I can't seem to call the reverse function with the request object in the args, but if I call the reverse function without any args

Re: ModelForm not creating datepicker

2013-04-03 Thread Nick D
I see. The difference between the form item and a widget was confusing me. Thanks Tom! -Nick On Wednesday, April 3, 2013 8:54:40 AM UTC-7, Tom Evans wrote: > On Wed, Apr 3, 2013 at 12:14 AM, Nick D > > wrote: > > Hi all, > > > > I've created a ModelForm

Re: ModelForm not creating datepicker

2013-04-03 Thread Nick D
: > 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

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

2013-04-03 Thread Nick D
I see; I didn't understand the flow at first. Is this line wrong "quiz = Quiz.objects.get(id=quiz_id)"? I don't think Django names the pk "id" by default. Maybe it should be: quiz = Quiz.objects.get(pk=quiz_id) On Monday, April 1, 2013 7:17:13 AM UTC-7, Cody Scott wrote: > I am trying to ma

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