Results 1 to 2 of 2

Thread: Can I prefix the relative path?

  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2010
    Vote Rating

    Default 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,


  2. #2
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Olney, MD
    Vote Rating


    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

        "MyApp": "static/app"
    If you've change your application name (recommended) then change MyApp to whatever that is.

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts