cssdjangodjango-admindjango-3.1

Django project does not work after being transferred from Windows to Mac


I'm using Django 3.1.7 on a MacBook Pro after transferring the Django project off of a Windows 10 machine. However, upon re-setting up the database and superuser and running the command pipenv sync to install all necessary modules, the server does run; but it doesn't serve any of my URLs or the CSS styles for the Admin page. I can reach the admin page at '/admin' but no other page that I've set up will display. All it gives me is my custom 404 page whenever I try to serve a page. Is there any way to fix this? Is something wrong? Where are the Admin CSS files?


Solution

  • python manage.py  runserver --insecure
    

    Use the --insecure option to force serving of static files with the staticfiles app even if the DEBUG setting is False. djangoproject