Dynamically updating field with JQuery

2014-05-23 Thread Jason S
Hi, I'm sure this has been discussed to death, however the examples i've seen involve 3rd party django apps or are very complicated and I haven't been able to find a clear example which.I can repurpose. I'm new to development so am building up a Django website to help grow my skills, but have a

Re: Why some static files work, but others don't?

2014-05-16 Thread Jason S
d the files were in an app's static directory and ran a python manage collectstatic and that did the trick. Thanks for the help! On Friday, 16 May 2014 20:23:17 UTC+12, Venkatraman.S. wrote: > > Naive Q: did you check if the js files exist there? > > > On Thu, May 15, 2014 at

Why some static files work, but others don't?

2014-05-15 Thread Jason S
Hi, I've just created a really basic django site, its got the tutorial polls and thats about it. I've added in the metro UI and added it to the static files directory under the appropriate app. I've also used the collectstatic command and it picks up the files. But both with Apache and using run

Re: Saving forms with ManyToMany relationships

2014-04-08 Thread Jason S
form = NewItemForm() > return render_to_response('testapp/create_item.html', {'form': > form}, context_instance=RequestContext(request)) > > > create_item.html: > > {% csrf_token %} > {{ form.as_p }} > > > > > > Regards, > Camilo

Re: Saving forms with ManyToMany relationships

2014-04-07 Thread Jason S
Thanks again for your time and help. On Monday, 7 April 2014 10:58:21 UTC+12, Camilo Torres wrote: > > On Saturday, April 5, 2014 10:12:36 PM UTC-4:30, Jason S wrote: >> >> I've seen quite a few examples showing various ways to create a form >> using manytomany rela

Saving forms with ManyToMany relationships

2014-04-05 Thread Jason S
Hi, I've seen quite a few examples showing various ways to create a form using manytomany relationships and save the data, but i'm still missing a key piece of the puzzle. I've created a form and it "works", meaning the form creates a new Item object and associates the user. However i'm not sure

Re: Issues saving a formset form with multiple forms.

2013-11-11 Thread Jason S
ue self user poll On Sunday, 10 November 2013 23:05:49 UTC-10, Jason S wrote: > > Hi, > The first form saves fine but the second still dosn't. > I can't seem to pass the poll object to the save method of the form > properly. > > Since i'm using nonrel

Re: Issues saving a formset form with multiple forms.

2013-11-11 Thread Jason S
just don't seem to be able to get it going. I've re-written the form quite a few times without any luck and have looked at a few similar examples but can't quite piece it together. Any chance you could show me how its done? On Thursday, 7 November 2013 23:02:48 UTC-10, Jason

Re: Issues saving a formset form with multiple forms.

2013-11-08 Thread Jason S
UTC-10, pnich...@gmail.com wrote: > > Hey Jason-- > > You defined the save method as needing the user parameter, but you don't > pass that in. Try that (assuming user should equal request.user). Good > luck! > > -Paul > > On Thursday, November 7, 2013 5:25:1

Re: Issues saving a formset form with multiple forms.

2013-11-07 Thread Jason S
ough I thought this was past of the request.POST data? Django Version:1.4.3Exception Type:TypeErrorException Value: save() takes at least 2 arguments (2 given) On Thursday, 7 November 2013 19:10:09 UTC-10, Jason S wrote: > > Hi, > Thanks for the tip, i tried adding the user as the ar

Re: Issues saving a formset form with multiple forms.

2013-11-07 Thread Jason S
ideas? Thanks, Jason On Thursday, 7 November 2013 10:52:16 UTC-10, Jason S wrote: > > Hi Paul, > Thanks, now you mention it and I look at it again it seems obvious, can't > see the wood for the trees moment. > Funnily enough I had that included at some point, but have mad

Re: Issues saving a formset form with multiple forms.

2013-11-07 Thread Jason S
aul > > On Thursday, November 7, 2013 5:25:18 AM UTC-5, Jason S wrote: >> >> Hi, >> Disclaimer - I'm new to django and python, so please bear with me. >> >> Note: My django instance uses a nosql database. >> >> I'm trying to create a for

Issues saving a formset form with multiple forms.

2013-11-07 Thread Jason S
Hi, Disclaimer - I'm new to django and python, so please bear with me. Note: My django instance uses a nosql database. I'm trying to create a formset which has multiple forms based on models. The formset will have one form "post", then 1-3 "comment" forms. Eventually i'd like to be able to add/

Re: Static files configuration

2013-09-28 Thread Jason S
em so will look at that next. On Saturday, 28 September 2013 13:58:15 UTC-10, Thomas wrote: > > > On 2013-09-28, at 4:21 PM, Jason S > wrote: > > Thanks Tom, > I had a pretty painful install experience over a few weeks and had sudo'd > a command I shouldn't ha

Re: Static files configuration

2013-09-28 Thread Jason S
base.css ./myapp/static/admin/admin/css/base.css ./myapp/static/admin/css/base.css ./myapp/static/css/base.css ./django-testapp/admin/admin/admin/css/base.css ./django-testapp/templates/admin/admin/css/base.css On Saturday, 28 September 2013 13:03:07 UTC-10, Thomas wrote: > > > On

Re: Static files configuration

2013-09-28 Thread Jason S
its permissions based as i'm running udo python manage.py runserver 0.0.0.0:8080 I think the dev server is only accessing files owned by root? It doesn't sound right though. On Saturday, 28 September 2013 11:29:07 UTC-10, Jason S wrote: > > Hi, > I'm new to django and we

Re: Basic query regarding admin CSS

2013-09-28 Thread Jason S
'django.contrib.auth.context_processors.auth', 49 'django.core.context_processors.request', 50 'django.core.context_processors.media', 51 'django.core.context_processors.static' 52 ) On Friday, 27 September 2013 19:54:21 UTC-10, Jason S wrote: > > H

Static files configuration

2013-09-28 Thread Jason S
Hi, I'm new to django and web development but have set up a project and run through a few python and django tuts. I've gotten stuck importing CSS (and other static content) using the static settings available in the settings.py file and have attempted to resolve the issue by referring to a sampl

Basic query regarding admin CSS

2013-09-28 Thread Jason S
Hi, I'm new to development and have just gone from some python and django tuts, on my way to developing my first app. I've created a model and can view it under the /admin page, however the page does not use any of the pretty CSS you see in the tutorials because it can't find the files: INFO:ro

Re: Validations and error messages

2008-07-12 Thread Jason S. Friedman
> Hi, > > This is my second hour with django. I have been working Rails but now > I am learnign some django too. > > I wonder how do you validate numeric, alphabetic, mix, special > characters data before calling save() ? > > And do you get any return after calling save()? I didnt get any on >