1. #1
    Ext JS Premium Member
    Join Date
    Apr 2010
    Posts
    63
    Vote Rating
    1
    nmcbride is on a distinguished road

      1  

    Default 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

  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,911
    Vote Rating
    63
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    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

    Code:
    {
        "Ext":".",
        "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
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

Thread Participants: 1