Re: Template problem

2012-07-17 Thread Eli_West
why I posted this question, i dont know plz help lol -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/m68NaOa1yXoJ. To post to this group, send email to

Re: serve media and static separately for development

2012-07-17 Thread Eli_West
Example / recommended procedure for devel edit url.conf like this: (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': '/home/blah/media'}), And have all media and static files in there. I want to be able to serve multiple locations and avoid having to replace

serve media and static separately for development

2012-07-17 Thread Eli_West
I like the recent move using collect static and splitting up static files (css js ect) and media files. But for development they still have everything clumped into site_media, the docs don't recommend splitting this up (why). I want to have my code ready to go when I switch to prod so I'm

Re: Working Hello World Ajax example via django pleeeease

2012-04-13 Thread Eli_West
making-ajax-calls-in-django-u... > > > It's using Dojo, but the same principle applies with jQuery (just make > > sure where the tutorial calls a URL, you're passing the URL as an argument > > to load(). > > > -- > > Joey Espinosa > > Software Engineer > &g

Re: Working Hello World Ajax example via django pleeeease

2012-04-13 Thread Eli_West
hopes - and I am considering trying 'djaxice' On Apr 13, 3:39 am, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Friday, 13 April 2012 08:08:19 UTC+1, Eli_West wrote: > > > I've been attempting the most basic ajax call (.load()  )  through > > django for over a mont

Working Hello World Ajax example via django pleeeease

2012-04-13 Thread Eli_West
I've been attempting the most basic ajax call (.load() ) through django for over a month now - each time trying a different method or tutorial none with success. Can someone post a working paradigm for whatever django csrf, firefox, ect. workaround they use? I can get jquery .load() to load

Re: Ajax/jquery .load() unresponsive via django html templating, or FF/chrome

2012-03-20 Thread Eli_West
.load() is still coming from localhost so I can't see how it would blocked. thx On Mar 20, 4:26 am, Tom Evans <tevans...@googlemail.com> wrote: > On Mon, Mar 19, 2012 at 6:52 AM, Eli_West <e...@trakdrop.com> wrote: > > 2 potential issues I've been trying solve: > >

Ajax/jquery .load() unresponsive via django html templating, or FF/chrome

2012-03-19 Thread Eli_West
2 potential issues I've been trying solve: 1) Django csrf or other mechanism is blocking ajax and jquery .load() This following simple ajax interaction works by opening directly in a browser, but not through a django view: ( assume content to load from namesinfo.htm is available)

Re: Jquery .load() function not responding with django

2012-03-15 Thread Eli_West
Found that jquery ajax does not load correctly in my firefox install. Stock jquery example wasnt working either so I ran it in a Windows IE install. On Mar 14, 8:59 pm, Eli_West <e...@trakdrop.com> wrote: > I just updated the jquery library so I shouldn't be that. > > Ive

Re: Jquery .load() function not responding with django

2012-03-14 Thread Eli_West
I just updated the jquery library so I shouldn't be that. Ive got to be doing something wrong.. theres no way .load() simply doesn't work with django. On Mar 14, 8:39 pm, Eli_West <e...@trakdrop.com> wrote: > Thanks for the reply. It is loaded as an external script/file. That

Re: Jquery .load() function not responding with django

2012-03-14 Thread Eli_West
testload(request): return render_to_response('tdcreative/testcontent.htm') // in url conf (r'^tdcreative/testload/$', 'tdcreative.views.testload'), On Mar 14, 12:02 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Wednesday, 14 March 2012 09:21:29 UTC-7, Eli_W

Jquery .load() function not responding with django

2012-03-14 Thread Eli_West
I've ran into in issue where jquery .load() will load extra content by directly opening html file in a browser but if served through Django devel server the jquery load() is ignored. Have no idea what could be happening but I've seen someone use a django url in the .load() call instead of pointing

Issue with relational /absolute {{url}} call

2012-02-24 Thread Eli_West
Ive ran into an issue calling: {{ modelxx.objectyy.url }} Before some recent edits, that call gave a relative path and I used: /site_media/{{ modelxx.objectyy.url }} to get a full file path. After some site changes the .url gives a full path and a double prefix of :

Site Urls and site_media random config change

2012-02-23 Thread Eli_West
Static media under the development server worked without a problem for me for a few months, and still does but calling: {{ modelxx.objectyy.url }} to get a file url seemed to add full path out of nowhere instead of relative path. Now /site_media/{{ modelxx.objectyy.url }} gives double prefix

models.FileField versus forms.FileField

2011-11-07 Thread Eli_West
Hello, When creating a working with the models and views to upload files what is the difference between models.FileField and forms.FileField? Just a practical usage explanation would be good at this point. i can't find any comparison of the two but django directions and examples use one or the