17👍
manage.py
should live in the root project folder, so if you cd
into C:Users/arpchauh/PycharmProjects/post_blog
, you should be able to run the command.
4👍
Your manage.py
file should be located in the root directory of the project. You need to be in the directory that manage.py
is in.
- [Django]-Run custom admin command from view
- [Django]-The request's session was deleted before the request completed. The user may have logged out in a concurrent request, for example
- [Django]-How do you choose between Memcached, Redis and Varnish?
2👍
One error that might be leading to this is entering
django-admin startapp app_name
instead of
django-admin startproject project_name
- [Django]-Search functionality on multi-language django site
- [Django]-Django Admin – save_model method – How to detect if a field has changed?
- [Django]-How to set and get session in Django?
1👍
Once you start the django application
django-admin startporject my_project_name
you need to navigate inside the my_project_name folder and then launch
python manage.py runserver
If you are still getting some error, do check where is your python interpreter taking the django setup from
- [Django]-Django 3.x – which ASGI server (Uvicorn vs. Daphne)
- [Django]-Django Aggregation: Sum return value only?
- [Django]-Django REST Framework (DRF): Set current user id as field value
0👍
The manage.py
file must be available at the root of the project folder. If it is in any sub-directory, it’ll give you error.
If you are limited to keeping the file in the sub-directory, you can change the permission of folder, so the python cli can read it.
- [Django]-Django datetime issues (default=datetime.now())
- [Django]-Using subdomains in django
- [Django]-Django rest framework – how to add a static field value for a serializer
0👍
Your manage.py file should be located in the root directory of the project. You need to be in the directory that manage.py is in and then run the server
python manage.py runserver
- [Django]-Django inclusion tag with configurable template
- [Django]-Internal Server Error with Django and uWSGI
- [Django]-Django What is reverse relationship?
0👍
your "manage.py" file is in the "post_blog" folder and you are giving a command in the following directory
C:Users/arpchauh/PycharmProjects/post_blog/blogs>
if you focus there is no manage.py file in the blogs folder that why its creating an issue
Use this one, I hope it will resolve your issue
C:Users/arpchauh/PycharmProjects/post_blog> python manage.py runserver
- [Django]-How to remove white space from html source code
- [Django]-Use Django ORM as standalone
- [Django]-Connection reset by peer when using s3, boto, django-storage for static files
-1👍
It’s very simple. You are not inside the project root folder (you are in your blog app folder). make sure you change the directory to the project folder and run those commands.
use cd
command to change directory
cd C:Users/arpchauh/PycharmProjects/post_blog
// or move one step backword
cd ..
- [Django]-How to pass a variable from settings.py to a view?
- [Django]-Django Heroku Error "Your models have changes that are not yet reflected in a migration"
- [Django]-Session data corrupted in django
-2👍
Refer to my project path C:\Users\sharpfungs\Desktop\django\djangosite to match with yours.
Make sure your virtualenv is active as (myproject) C:> for windows.
Then run run the server in the root of project folder.
- [Django]-Django middleware difference between process_request and process_view
- [Django]-">", "<", ">=" and "<=" don't work with "filter()" in Django
- [Django]-What is the format in which Django passwords are stored in the database?