# Omnife Project Submodule

Project Zero uses Django as the web framework. Some of the Python codes and Django-related codes required for the system to work are located in the **omnife\_project** submodule and some are in the **omnife\_base** directory. This submodule is necessary for the project to work correctly.

## <mark style="color:red;">omnife\_project​</mark> <a href="#omnife_project" id="omnife_project"></a>

Most of the settings, view and url files required for the project are located under the omnife\_project/omnife directory. These files are grouped according to the features as follows.

<figure><img src="https://2911598027-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlQinVPnOffBiOp126ldR%2Fuploads%2Fgit-blob-0c9dcad51185fe6572e73b15bd1f473367c5356b%2Fimage%20(2).png?alt=media" alt=""><figcaption></figcaption></figure>

### <mark style="color:red;">Views</mark>​ <a href="#views" id="views"></a>

A Django project works with views, and in Project Zero, these views are defined in views.py files under the **omnife\_project/omnife directory**. For example, views created for addresses are in the omnife\_project/omnife/address/views.py file.

### <mark style="color:red;">Urls</mark>​ <a href="#urls" id="urls"></a>

In Django projects, urls are located in the urls.py file. In Project Zero, similar to views, all urls are located in the urls.py file in the respective directory. As an example, urls for addresses are defined in the omnife\_project/omnife/address/urls.py file.

### <mark style="color:red;">Services</mark>​ <a href="#services" id="services"></a>

Project Zero communicates with the backend through services. Each service file is located in its own directory, similar to views and urls. For example, the service file for addresses is the omnife\_project/omnife/address/service.py file. Each of these services is extended from the Service class in the omnife\_project/omnife/core/service.py file and uses the methods of this base class.

### <mark style="color:red;">Settings</mark>​ <a href="#settings" id="settings"></a>

Since Project Zero was created with the Django infrastructure, all project settings are defined in the settings.py file. Most of the settings are in the **omnife\_project/omnife/settings.py** file.
