Python - Django
https://www.djangoproject.com/
URL configure get 404
First, the URL file will be loaded by setting in project_dir/project/settings.py
1 | ROOT_URLCONF = 'project.urls' |
Assumed that you already have an app named myapp
Include the URL config file from your app
Edit project_dir/project/urls.py
1 | ... |
Reference:
Get COOKIE
1 | request.COOKIES.get('key', 'default') |
Reference:
Model date comparison
1 | from datetime import date |