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
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
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
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
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
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
.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:
>
>
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)
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
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
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
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
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 :
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
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
15 matches
Mail list logo