5.7 URL Configuration Internals: Adhering to App Encapsulation

We currently have two function views, now masterfully shortened, and two URL patterns, creating two webpages. However, our URL configuration is in direct violation of app encapsulation in Django. The URL patterns that direct users to the two webpages generated by the organizer app exist in a file that is for the project: the URLs are in a file under suorganizer/, as opposed to a file within the organizer/ directory.

The practical goal of this section is to refactor our URL configuration so that our Django website adheres to the app encapsulation standard. However, to do so, we must learn much more about the URL configuration. The instructional goal of this section is to teach you ...

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.