Thank you James and Branko.
Yes, it was the relevant part of the docs that, actually I had read,
but didn't understand at the time.
I appreciate your patience in pointing it out to me.
Cheers,
Tim
On Mon, Mar 25, 2013 at 6:57 PM, Branko Majic wrote:
> On Mon, 25 Mar 2013 18:12:44 -0300
> Tim Co
On Mon, 25 Mar 2013 18:12:44 -0300
Tim Cook wrote:
> The Apache error.log has these types of entries:
> "GET /static/admin/css/base.css HTTP/1.1" 404
> "GET /static/admin/css/dashboard.css HTTP/1.1" 404
> "GET /static/admin/js/actions.js HTTP/1.1" 404
Did you follow-through the "Serving the admi
This is probably a STATIC_URL issue. Check to make sure it is set correctly
and that you've run manage.py collectatatic and that apache, etc. is set to
serve those files directly. The dev server does some funny magic behind the
scenes to get these files served up.
-James
On Mar 25, 2013 2:12 PM, "
Hi All,
I have a Django app running behind Apache according to the WSGI instructions:
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/
I modified my project IAW Two Scoops of Django instructions so that I
have separate settings files and different directories. (see layout
bel
On Fri, Jun 29, 2012 at 2:45 PM, Larry Martell wrote:
> I have a django template that has some javascript/jQuery code in it
> that defines some keyup event handers. If a user goes to the URL
> directly the javascript is executed, and the event handers all work
> fine. There is also a field that th
On Sat, Jun 30, 2012 at 11:54 AM, Psamathos wrote:
> If your web server is in fact serving the content with the incorrect
> Content-Type header (You can verify this by inspecting the response in the
> Net tab of Firebug or Chrome) jQuery can convert the response regardless of
> the content-type if
curl (or its windows equivalents) will tell you exactly what django sent, as
would poking around from a suitably placed pdb.set_trace()
On Fri, Jun 29, 2012 at 8:42 PM, Larry Martell wrote:
> On Fri, Jun 29, 2012 at 4:54 PM, Jani Tiainen wrote:
>> I meant that if for some reason Django sends inc
If your web server is in fact serving the content with the incorrect
Content-Type header (You can verify this by inspecting the response in the
Net tab of Firebug or Chrome) jQuery can convert the response regardless of
the content-type if you specify a two space-separated values in your
dataTy
On Fri, Jun 29, 2012 at 4:54 PM, Jani Tiainen wrote:
> I meant that if for some reason Django sends incorrect content type from a
> view or something like that your javascript framework might guess
> incorrectly your ajax request content type and not parse script tags.
Is there a way I can test t
On Fri, Jun 29, 2012 at 4:51 PM, Jani Tiainen wrote:
> It's known limitation of your ajax request and has nothing to do with Django
> nor templates. Or well it might do.
Not really sure what you mean here. Are you saying this is a known
problem, and I should not expect it to work?
> Most of the
I meant that if for some reason Django sends incorrect content type from a
view or something like that your javascript framework might guess
incorrectly your ajax request content type and not parse script tags.
On Sat, Jun 30, 2012 at 1:51 AM, Jani Tiainen wrote:
> It's known limitation of your
It's known limitation of your ajax request and has nothing to do with
Django nor templates. Or well it might do.
Most of the javascript frameworks can extract script and inject it
correctly to current DOM. Since you mention jquery I guess that you're
using that for ajax queries so make sure that y
I have a django template that has some javascript/jQuery code in it
that defines some keyup event handers. If a user goes to the URL
directly the javascript is executed, and the event handers all work
fine. There is also a field that they can type in that triggers the
same URL request to be sent vi
It should be very useful to filter a select field in django admin when
selecting another field.
Somethin like:
fieldA = foreignKey(Country)
fieldB = foreignKey(State)
when user selects fieldA it should be shown only its states and not
all countries' states.
Is it possible? Someone wrote some sim
Dnia Fri, Mar 28, 2008 at 09:00:26AM -0700, [EMAIL PROTECTED] napisaĆ:
> So if it was called "color" in your model, the field name would be
> "id_foo"
A mistype above, it would be:
color -> id_color
Przemek
--
AIKIDO TANREN DOJO - Poland - Warsaw - Mokotow - Ursynow - Natolin
info: http:/
What David said. In jquery it would be $("#field_id"). That's not a
django thing at all.
You can always view source to see what the field id is, but by default
django appends id_ to the field name in the model. So if it was called
"color" in your model, the field name would be "id_foo"
--~--~-
ango
>
> - Original Message
> From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> To: Django users
> Sent: Friday, March 28, 2008 7:45:57 AM
> Subject: Re: javascript in django
>
>
> A custom widget would work, but you don't need to do that. Just have
>
hi baxter, how can JS get the texfield by ID.. is there any documentation or
example? sorry i'm still new in django
- Original Message
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: Django users
Sent: Friday, March 28, 2008 7:45:57 AM
Subject: Re: javascript
A custom widget would work, but you don't need to do that. Just have
your JS get the textfield by ID. Done.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
te shows a color picker
> (using javascript) in the templete, so user can pick the color.
> --
> View this message in
> context:http://www.nabble.com/javascript-in-django-tp16343806p16343806.html
> Sent from the django-users mailing list archive at Nabble.com.
--~--~-~--~~
anyone know how to put javascript into django templete? let's say i have a
field "color" in the models.py, i want django templete shows a color picker
(using javascript) in the templete, so user can pick the color.
--
View this message in context:
http://www.nabble.com/javas
um does not like this additional code.
> And I think others want to use javascript too and maybe contribute this code
> to django.
Our policy so far has been not to favour any particular Javascript
library. There is very minimal use of Javascript in Django at the moment
-- basically only in the
Hi everybody
I just filled ticke 4467 for a CategorizedModelChoiceField wich includes some
ajax functionality with javascript and some free glue code (http.request)
from openjspan.org.
Ubernostrum does not like this additional code.
And I think others want to use javascript too and maybe con
23 matches
Mail list logo