User accounts
With the database setup out of the way, let's start creating our application. If you remember, the first thing on our list of features is to allow users to register accounts on our site. As I've mentioned before, we'll be using the auth package from the Django contrib packages to provide user account features.
In order to use the auth package, we'll need to add it our INSTALLED_APPS
list in the settings file (found at $PROJECT_ROOT/src/blueblog/settings.py
). In the settings file, find the line defining INSTALLED_APPS
and make sure that the string django.contrib.auth
is part of the list. It should be by default, but for some reason if it's not there, add it manually.
You'll see that Django has included the auth package and couple of ...
Get Django Project Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.