Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure User Registration #2

Open
nmagerko opened this issue Jan 4, 2015 · 1 comment
Open

Configure User Registration #2

nmagerko opened this issue Jan 4, 2015 · 1 comment

Comments

@nmagerko
Copy link
Member

nmagerko commented Jan 4, 2015

Prerequisite: all team members should have a working MySQL server on their development machine. The project settings module should be configured to work with MySQL and environmental variables by this point.

Django provides us with a lot, but it won't give us everything that we need for managing our users. Specifically, creating non-administrators is a bit tough out-of-the-box. Luckily, there are several packages that help us to take care of these features pretty quickly.

I'd like to use the django-registration module for this project. You'll add it to the requirements.txt that will exist in your virtualenv, and then add it to the INSTALLED_APPS in this project's settings.py.

There will also be some variables that you'll have to set in the settings file, which you can look up in the documentation. These should be things like whether or not we want to force unique email addresses for each user, how long the signup tokens should last, etc. Please ask below if you're not sure what the values for each setting should be!

@nmagerko
Copy link
Member Author

nmagerko commented Jan 4, 2015

You might also need to migrate the changes to the datastore once you get everything set up. Check out the Django documentation for that, and talk to me if you need help. It should just be python manage.py makemigrations followed by python manage.py migrate from the root of the project directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant