I am preparing a DJ ango app for which some Ajax bits require a Javascript file. I would like to package this app so that it can be installed through easy_conversion or possibly as small as possible.
But I'm not sure where to place static media, especially the javascript file. On my machine, I have a static media in an external directory, which was not done by the Django. All internal references at my template point at MEDIA_URL
Is there a standard for package / add / attach static media to the reusable agency app? Is there a way to package the app so that others can use it to automate any JavaScript / CSS files without using it, or during installation?
I am using the DJAga 1.2 - did not upgrade the server to 1.3.
I think that's what you are looking for, unfortunately, in this new Django 1.3 Are you able to upgrade?
From Docs:
django.contrib.staticfiles collects static files from each of your apps (and any other locations you specify ) Which can be easily served in production.
Edit: According to Vogan's comment, if you do not want to upgrade, then you can use 1.3. It was basically what was created in Django's staticfiles app.
Comments
Post a Comment