I have added... It's been running successfully in port 5000 but some css issues on port 8000
The issue you're encountering might be related to the way Django serves static files in development mode.
When you run python manage.py runserver, Django's development server is started, and it serves static files (like CSS, JavaScript, and images) in development mode using a built-in static file server. By default, Django uses a different port (8000) when you don't specify a port number explicitly.
When you run your Django application on port 4000, it works fine because Django's static file server correctly serves the CSS file along with your HTML. However, when you run it on port 8000, you may encounter issues because the static file server might not be configured properly or might not be running.
To resolve this issue, make sure you have properly configured Django to serve static files in your development environment. You need to ensure that the STATIC_URL and STATIC_ROOT settings are correctly configured in your Django settings file (settings.py). Additionally, make sure you have run python manage.py collectstatic to collect static files into the directory specified by STATIC_ROOT.
After ensuring that the static files are properly configured and collected, try running your Django application on port 8000 again, and the CSS errors should be resolved.