About the Django structure

It’s important to understand how the Django project structure works before moving on.

In the last chapter, you created a Django Project, which holds everything related to your application. However, Django separates the project into apps. Think about apps as a separation of concerns. You will have two apps, one for Users and one for the Links.

Another essential decision is about the database. Django works out of the box with SQLite – a file based database – which you will use. On production systems, you should have a more robust database, such as PostgreSQL.

Creating the Links app

It will create the links app and some default files inside it.

With an app in place, you need to define a Model – the layer between Django and the database.

Unlock the next chapter
In GraphQL, what type of method returns the value of a field?