I want to contribute to this issue and I am making changes to the file contrib/admin/static/admin/css/base.css. I created a django project with a local copy of django (as instructed here) but I don’t see the changes in my django repo reflected in my project. For example, if I make the background red in base.css in my django repository, I don’t see the change reflected in my django project.
Can you check the output of the runserver command when it first starts up?
Last login: Mon Nov 7 10:58:53 on ttys000
carlton@Carltons-MacBook-Pro ~ % workon django
(django) django % cd ~/Desktop
(django) Desktop % django-admin startproject example
(django) Desktop % cd example
(django) example % ./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.
November 07, 2022 - 18:07:42
Django version 4.1.4.dev20221102165031, using settings 'example.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
So workon django is ≈ the same as your source djangodev/bin/activate. (I use virtualenvwrapper)
Then I cd to my Desktop folder and create a new project. I then cd to the project folder and start the development server. See this line:
Django version 4.1.4.dev20221102165031, using settings 'example.settings'
That tells me I’m using the development version. (The pip instal -e . you did…)
See also my prompt has (django) at the beginning, which says my virtual env is activated. Does your prompt have that?
Open django/__init__.py and add a assert False in there. Does that error show when you try to start runserver? (If so you know it’s loading that code.)
Finally, can you clear your browser cache? (Type “<your browser name> clear cache” into google for steps.)
I just checked this. The auto reloader detects changes in your installed Django, so if you add an assert False it will try and reload and fail. Remove it and you can restart.