-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c6ccd8
commit 6509735
Showing
10 changed files
with
113 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% csrf_token %} | ||
{% for field in form %} | ||
<label >{{ field.label_tag }}</label> | ||
{{ field }} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% autoescape off %} | ||
Dear {{ username }}, | ||
|
||
Please follow the link to confirm your registration, | ||
http://{{ domain }}{% url 'activate' user_id=uid activation_token=token %} | ||
|
||
OR manually input the following token: {{ token }} | ||
{% endautoescape %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from django import forms | ||
from django.contrib.auth.forms import UserCreationForm | ||
from users.models import User | ||
|
||
|
||
class SignupForm(UserCreationForm): | ||
class Meta: | ||
model = User | ||
fields = ('username', 'email', 'password1', 'password2') | ||
|
||
|
||
class ActivationForm(forms.Form): | ||
|
||
token = forms.CharField(max_length=256, min_length=256) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,9 +81,9 @@ save_old_env(){ | |
} | ||
|
||
write_env(){ | ||
local SUPER_PW="embark" | ||
local SUPER_EMAIL="[email protected]" | ||
local SUPER_USER="superuser" | ||
local SUPER_PW="$(openssl rand -base64 8)" | ||
local SUPER_EMAIL="[email protected]" | ||
local SUPER_USER="admin" | ||
local RANDOM_PW="" | ||
local DJANGO_SECRET_KEY="" | ||
local ENV_FILES=() | ||
|