hi everyone,
I am tring to do makemigration Myapp, after creating a project 'Sonam' and 
app 'Myapp' but output shows 
No installed app with label 'Myapp'
Here is the Directories Structure 
(.venv) PS C:\Users\dell\p3\Sonam> py manage.py makemigrations Myapp No 
installed app with label 'Myapp'. (.venv) PS C:\Users\dell\p3\Sonam> dir 
Directory: C:\Users\dell\p3\Sonam Mode LastWriteTime Length Name ---- 
------------- ------ ---- d----- 1/4/2024 12:09 AM .venv d----- 1/4/2024 
12:07 AM Myapp d----- 1/4/2024 12:07 AM Sonam -a---- 1/4/2024 12:02 AM 683 
manage.py

And here are sttings.py 
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 
'django.contrib.contenttypes', 'django.contrib.sessions', 
'django.contrib.messages', 'django.contrib.staticfiles', 'Myapp', ]

Here is the detail of python and django
(.venv) PS C:\Users\dell\p3\Sonam> python --version >> Python 3.10.10 
(.venv) PS C:\Users\dell\p3\Sonam> pip show django Name: Django Version: 
5.0.1 Summary: A high-level Python web framework that encourages rapid 
development and clean, pragmatic design. Home-page: 
https://www.djangoproject.com/ Author: Django Software Foundation 
Author-email: foundat...@djangoproject.com License: BSD-3-Clause Location: 
c:\users\dell\p3\sonam\.venv\lib\site-packages Requires: asgiref, sqlparse, 
tzdata Required-by: (.venv) PS C:\Users\dell\p3\Sonam> py manage.py 
makemigrations >> No changes detected (.venv) PS C:\Users\dell\p3\Sonam>
And
(.venv) PS C:\Users\dell\p3\Sonam> py manage.py makemigrations Myapp No 
installed app with label 'Myapp'. (.venv) PS C:\Users\dell\p3\Sonam> py 
manage.py makemigrations No changes detected (.venv) PS 
C:\Users\dell\p3\Sonam> from django.db import models 

Here is the models.py code
# Create your models here. class Task(models.Model): name 
=models.CharField(max_length=64), surname =models.CharField(max_length=64),
Rurserver command is working
(.venv) PS C:\Users\dell\p3\Sonam> python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 18 unapplied migration(s). Your project may not work properly 
until you apply the migrations for app(s): admin, auth, contenttypes, 
sessions.
Run 'python manage.py migrate' to apply them.
January 04, 2024 - 01:04:43
Django version 5.0.1, using settings 'Sonam.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

Please help. 


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/32f81368-a455-46e1-b17a-615b9c9bf18cn%40googlegroups.com.

Reply via email to