Question: Made a Flappy Bird type game. There are 2 pipes, 1 on top, 1 on bottom. I have applied a random function to change the height of the pipes. When the height changes, it changes from the bottom. So my code worked for the top pipe, but doesn't work for the bottom pipe because it goes into the ground, or above the ground. How to fix it? (PipeBottom and PipeTop are the pictureboxes)

```
            Bird.Top += gravity;
            PipeBottom.Left -= pipespeed;
            PipeTop.Left -= pipespeed;
            scoreBox.Text = "Score: " + score;

            Random r = new Random();
            int j = r.Next(-100, 100);

            if (PipeBottom.Left < -100)
            {
                PipeBottom.Left = 800;
                PipeTop.Height -= j;
                score++;
            }

            if (PipeTop.Left < -100)
            {
                PipeTop.Left = 800;
                PipeTop.Height += j;
                score++;
            }

```

Answer: 
In some cases when you make a circular import between two or more apps (could be on models, views, any place) the django can't import propely when startup and shows this error.

Try comment all the code from the views.py in api and restart the project to see if works.
This happened to me when I had created an application with name `t`. However, it resolved when I used configs for registering it inside installed apps.

I believe you have a typo in the config names. An extra dot `.` at the beginning.

Try this one.

```py
INSTALLED_APPS = [
    ...
    'api.apps.ApiConfig',
    'pizzas.apps.PizzasConfig',
]

```