https://github.com/pybites/django-registration
#python #django
https://github.com/pybites/django-registration
Last synced: 2 months ago
JSON representation
#python #django
- Host: GitHub
- URL: https://github.com/pybites/django-registration
- Owner: pybites
- Created: 2017-07-31T09:16:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-05T09:37:57.000Z (over 6 years ago)
- Last Synced: 2025-03-22T17:13:13.086Z (3 months ago)
- Language: CSS
- Homepage: http://pybites-notifier.herokuapp.com/
- Size: 22.5 KB
- Stars: 4
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Registration App
## Intro
Submission for [Code Challenge 29 - Create a Simple Django App](https://pybit.es/codechallenge29.html) and reusable template to start your app from scratch with proper registration / login using the existing Django User model. It uses the [django-registration](https://django-registration.readthedocs.io/en/2.2/index.html) plugin, gmail and has all the necessary settings to deploy to Heroku.I will further detail here and write an article on it, stay tuned ...
In the meanwhile, you can now [subscribe here](http://pybites-notifier.herokuapp.com/) to receive an email notification when we release a new code challenge. I want to further build this out to allow for more types of notifications (articles, news, project updates).
### Required env variables
export SECRET_KEY=xyz
export DJANGO_ENV='local' # app defaults to productionexport GMAIL_SMTP_USER=your_email_user
export GMAIL_SMTP_PASSWORD=your_email_pwexport DB_NAME='pybites_notifications'
export DB_USER=a_user
export DB_PW=xyzConfiguring the DB is even simpler in production using `dj_database_url`:
[settings.py]if DJANGO_ENV == 'production':
import dj_database_url
db_from_env = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(db_from_env)