Commudle
Commudle
CommunitiesEventsHacksBuildsExplore

Overview

1. Configure Static Files in settings.py

2. Configure Templates in settings.py

3. Create Static Files and Templates

4. Defining Project URLs & App URLs

5. Creating Views and Testing the App

6. Summary

Aniket Raj Singh

Aniket Raj Singh

@aniketrajsingh

Co-organiser@TFUG-Ghaziabad | Developer

Overview

1. Configure Static Files in settings.py

2. Configure Templates in settings.py

3. Create Static Files and Templates

4. Defining Project URLs & App URLs

5. Creating Views and Testing the App

6. Summary

Configure Templates in settings.py

Templates

Ensure the TEMPLATES configuration includes the template files directory:

  • Initially it is like this:

  • With a slight modification we can add the directory for the template where we are gonna keep the template files (HTML Files) like this:

Discussion

13

0
Commudle
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us