2.2 Creating and Integrating a New App

For the sake of time, we reuse our suorganizer project. For the sake of repetition, we create (and then destroy) a new app.

As seen in Chapter 1, interacting with Django via the shell always starts with an invocation to manage.py. We start by creating a new app, helloworld, using the startapp command shown in Example 2.1.

Example 2.1: Shell Code

$ ./manage.py startapp helloworld

The file directory is exactly the same as for organizer and blog, as discussed in Chapter 1, Section 1.7.3. Just as before, we must now connect or integrate our app to our project. We append the name of our app to a list of installed apps in the project settings file. Open /suorganizer/settings.py ...

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.