From the course: Building Angular and Django Apps
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Serving Angular Code Through Django static files
From the course: Building Angular and Django Apps
Serving Angular Code Through Django static files
- [Instructor] Now that we have the compiled version of our Angular app, we need to add a setting to the Django backend called front end root which will point to the path where it can be found. In the URLs configuration of Django, we add a new regular expression URL. It will point all URLs to the front end directory that we defined in the settings file. Now we run the Django web server, and let's go to local host at port 8000 index.html and we can see that the compiled angular app has loaded up.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.