django-rosetta icon indicating copy to clipboard operation
django-rosetta copied to clipboard

Can I host required js locally?

Open maltebeckmann opened this issue 8 years ago • 3 comments

Couldn't find a setting that lets me host the requires js locally. I cannot make Google API calls in my project.

Any easy way I can do this without forking the app?

https://github.com/mbi/django-rosetta/search?utf8=%E2%9C%93&q=jsapi

maltebeckmann avatar Mar 05 '16 16:03 maltebeckmann

I just overwrote the template. But would be cool if there was a setting for that.

maltebeckmann avatar Mar 07 '16 11:03 maltebeckmann

Hey,

Apologies for pushing another issue on here. I really need Rosetta to work without Google API calls. Like mentioned above, in the absence of a setting, I overwrote the template. But with the new version of 0.79, it appears there now is a reference to something Google related which now means that a simple overwrite of base.html is not sufficient anymore:

https://github.com/mbi/django-rosetta/blob/65fa6f1b71576b8acd945f51f4a268bb388cdc63/rosetta/templates/rosetta/js/rosetta.js#L3

maltebeckmann avatar Mar 08 '16 13:03 maltebeckmann

I think you can safely ignore that line, it's really not required to use Rosetta.

mbi avatar Mar 08 '16 13:03 mbi