Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Go to the project folder (e.g. /opt/ece_li_scheduling/ece_li_scheduling) where the settings.py file is stored.

  • Add In the settings.py file, add the name of the new app to the INSTALLED_APPS list:

    Code Block
    INSTALLED_APPS = [
        'django.contrib.admin',
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.messages',
        'django.contrib.staticfiles',
        '<app name>',
    ]
  • In the urls.py file, direct all traffic for the new app to its .urls file.

    Code Block
    urlpatterns = [
        path('admin/', admin.site.urls),
        path('<app name>/', include('<app name>.urls'))
    ]