# Change Aurelia base url

**URL:** <https://discourse.aurelia.io/t/change-aurelia-base-url/986>\
**Category:** Help Requests\
**Created:** [March 26, 2018, 6:35pm UTC](https://discourse.aurelia.io/t/change-aurelia-base-url/986 "2018-03-26T18:35:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sapocockas](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@sapocockas](https://discourse.aurelia.io/u/sapocockas)\
**Post date:** [March 26, 2018, 6:35pm UTC](https://discourse.aurelia.io/t/change-aurelia-base-url/986/1 "2018-03-26T18:35:58Z")

</div>

Hey there, I’m completely new to Aurelia, and I’m trying to make it work with Django, but i’m having some trouble getting Aurelia configs right.

in Django setttings.py I’ve defined a static url and static files dir :

```
STATIC_URL = '/webapp/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'webapp')]

```

I generated my aurelia app with au new (default), then in index.html changed the vendor-bundle.js link to accommodate my static\_url. I then do au build and run the server. It loads the index.html, and the vendor-bundle.js, but then the app-bundle.js it tries to load without the static\_url and fails. I’ve tried to put the “baseUrl”: \<static\_url\> in the aurelia.json, but still no success. I would like to know how to change the base path in aurelia. Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 26, 2018, 10:37pm UTC](https://discourse.aurelia.io/t/change-aurelia-base-url/986/2 "2018-03-26T22:37:06Z")

</div>

You’ll have to modify aurelia\_project.json as well to accomodate for baseUrl

check out the docs  
[http://aurelia.io/docs/build-systems/aurelia-cli#configuring-the-loader](http://aurelia.io/docs/build-systems/aurelia-cli#configuring-the-loader)

---

<div class="post-metadata">

**Author:** ![sapocockas](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@sapocockas](https://discourse.aurelia.io/u/sapocockas)\
**Post date:** [March 27, 2018, 11:12am UTC](https://discourse.aurelia.io/t/change-aurelia-base-url/986/3 "2018-03-27T11:12:51Z")

</div>

Thanks I think I got it, however it feels kind of weird because I’m pointing at the scripts folder and not a the actual base path of the project, that is what I was doing wrong the last time.  
“baseUrl”: “webapp/basePath”  
instead of:  
“baseUrl”: “webapp/basePath/scripts”

Anyway, it seems to be working fine now. Thanks for the help 😉
