-
4 Jan 2013 7:23 AM #1
Can I prefix the relative path?
Can I prefix the relative path?
I am just using a default project with one window for testing but I am trying to use ExtJS with a python micro framework for a simple app. However you have to put your static files in /static and your templates in /templates.
So when I deploy my project from Sencha Architect the html is loading the project via /app.js. That's not a big deal I can manually change that to /static/app.js. However then all of the other JS files need to load and their paths are all missing the /static prefix which I need to add.
Is this possible to set?
Thank you,
Nathan
-
4 Jan 2013 1:21 PM #2
In development this sort of thing comes up all the time.
You can try changing the loader paths config
add a Loader to your Application
edit the paths config
If you've change your application name (recommended) then change MyApp to whatever that is.Code:{ "Ext":".", "MyApp": "static/app" }
Please note that when deploying to staging or anything beyond dev environment we recommend using Sencha Cmd to build your source into a single file.Phil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team


Reply With Quote