3

its just a sample app,

app name:wiki

#models.py

from django.db import models

class Page(models.Model):
name = models.CharField(max_length=20, primary_key=True)
content = models.TextField(blank=True)

#settings.py

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'wiki.apps.WikiConfig',
'wikicamp.wiki',
'wiki',
]

(i tried all the possible links/address of the app i.e wiki, and even individually too)

and it still show the following error on running: python3 manage.py makemigrations wiki

Error: App 'wiki' could not be found. Is it in INSTALLED_APPS?

Swarup Rajbhandari
  • 466
  • 1
  • 6
  • 14

2 Answers2

0

You are missing a __init__.py right under wiki

pbhowmick
  • 1,093
  • 11
  • 26
0

In my case, that was a virtual env issue. I restart my virtual environment and run python migrate. I had several packages that were missing in the virtualenv, some not related to the initial message.

Pierrre
  • 1
  • 1