Quantcast
Channel: Packaging javascript and css files in a django app for reuse, install via pip? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Packaging javascript and css files in a django app for reuse, install via pip?

$
0
0

I'm building a django app that requires a javascript file for some ajaxy bits. I would like to package this app so that it can be installed by via easy_install or pip with as little fuss as possible.

But I'm not sure what where to put the static media, particularly the javascript file. On my machine, I have the static media in an external directory, not served by django. All the internal references in my template point to MEDIA_URL.

Is there a standard for where to package/include/attach static media for reusable django apps? Is there a way to package the app so that others can just use it without messing with moving all the javascript/css files, or some way to automate that during the install process?

I'm using django 1.2 -- haven't upgraded the server to 1.3.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images