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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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
'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
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
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
> 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
>
20 matches
Mail list logo