How to set up custom CSS in Mezzanine
How to setup Pycharm with a virtualenv
On the Mac,
Command + , or
Pycharm -> Preferences -> Project interpreter -> ~/path/to/.env/bin/python3.6
python manage.py runserver is run,
ManagementUtility#execute, which takes the subcommand
runserver. This subcommand is eventually passed to a dictionary that maps strings to callbacks. The
runserver subcommand is then called.
django.core.management.commands.runserver#run is called. This method leads to the start up of a WSGIServer.
When a request hits the server, a RegexURLResolver maps the request’s path to one of a list of URLs.
How does the Django development server know to reload a module?
Django monitors every file and checks if the mtime of the file matches its old mtime. If it doesn’t, then it reloads the file.
Django settings is essentially a more complicated Python dictionary.
Django templates and apps
For every installed app, Django will use its templates.
Django’s template loader will automatically discover templates and static resources in‐ side the installed apps.
python manage.py runserver first sets the environment variable,
DJANGO_SETTINGS_MODULE, to the settings module in the project directory.