On Tue, Sep 6, 2011 at 10:54 PM, Tomas Neme <lacrymol...@gmail.com> wrote:
> this looks awful to me. Can't you stick that into a .js file and include
> that?

Doh, yah... If my django-fu skills were better, then maybe I could! :)

I should have posted the original code:

<http://djangosnippets.org/snippets/2106/>

I am modifying to include a crosshair on the map by adding a simple JS
(non-dynamic) function.

Hrmm, now you got me thinking.

Maybe I could put the non-dynamic JS in an external file and then link
to it using "class Media:" (js), and from there, all I would need to
do is link to the image using a relative path (all within my apps'
static folder)? I will have to give this a whirl. :)

> With that over, you can use djangodocs-Form Widget Media and you can define
> a js-script somewhere inside your app/static/js/ directory. I think
> ..<snip>...
> I'm pulling this up pretty straight out of my.. the blue, and it's really
> too late, but I think this or something along this lines would work

Hehe!

Well, even if you are pulling things out of the "blue", you still ROCK!!! :D

Those are awesome tips/ideas/snippets! Thank you so much for helping
me out, I really appreciate it.

Thanks for giving me a huge kick in the right direction!

Have an awesome night.

Cheers,
Micky

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to