March 2019
Beginner
490 pages
12h 40m
English
Once we have the base and file structure, we can create our application. To create an application, we need to execute the following command in the console:
$ python manage.py startapp djangoApp
With this command, a new djangoApp directory has been created with the following structure:

After creating an application, we also need to tell Django to use it. This is done in the djangoApplication/settings.py file, where we have to find the INSTALLED_APPS array in the Application definition section and add a line that contains the name of our djangoApp application:
# Application definitionINSTALLED_APPS = [ 'django.contrib.admin', ...
Read now
Unlock full access