Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit bb48d3e

Browse files
committed
Init
0 parents  commit bb48d3e

File tree

101 files changed

+43569
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+43569
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.idea/
2+
.vscode/
3+
4+
__pycache__/
5+
6+
source/content/media/
7+
source/content/static/
8+
9+
env/
10+
tmp/
11+
12+
db.sqlite3

CHANGELOG.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# Change log
2+
3+
## v2.19
4+
5+
- Updated Django to 2.2.27
6+
7+
## v2.18
8+
9+
- Added French translation by @tidji31
10+
11+
## v2.17
12+
13+
- Updated Django to 2.2.20
14+
15+
## v2.16
16+
17+
- Updated Django to 2.2.12
18+
- Fixed a bug with decoding UID on the restore password page (#71)
19+
20+
## v2.15
21+
22+
- Updated Django to 2.2.11
23+
24+
## v2.14
25+
26+
- Updated Django, django-bootstrap4, Bootstrap, popper.js, and jQuery to their latest versions
27+
28+
## v2.13
29+
30+
- Updated Django to 2.1.2 version (this version has a vulnerability fix)
31+
32+
## v2.11
33+
34+
- Added the "remember me" checkbox to the log in page
35+
- Added the username recovering
36+
- Code improvements
37+
38+
## v2.10
39+
40+
- Removed i18n_patterns from urls.py
41+
- Added the GuestOnlyView for checks on pages like SignInView, SignUpView, etc
42+
- Removed gunicorn from dependencies
43+
- Updated Django to 2.0.5
44+
- Updated Bootstrap to 4.1.1, jQuery to 3.3.1, PopperJS to 1.14.3
45+
46+
## v2.9
47+
48+
- Updated Bootstrap to 4.1.0 version
49+
50+
## v2.8
51+
52+
- Updated Django to 2.0.4 version
53+
- Added the support to serve media files in debug mode
54+
55+
## v2.7
56+
57+
- Added the pipenv & cleaned up the readme
58+
59+
## v2.6
60+
61+
- Updated Django to 2.0.3 version
62+
- Fixed a bug with the incorrect query in forms. Thanks [karanrajpal14][3] ([#33][4])
63+
64+
## v2.5
65+
66+
- Updated Bootstrap to 4.0.0 version & updated django-bootstrap4 dependency
67+
- Updated Django to 2.0.2 version
68+
- Renamed zh_Hans to zh_hans locale
69+
70+
## v2.4
71+
72+
- Added the Simplified Chinese translation by [hanwentao][1] ([#27][2])
73+
74+
## v2.3
75+
76+
- Added translations for Ukrainian, Russian, Spanish, French, and German languages
77+
78+
## v2.2
79+
80+
- Changed straight call of User's model
81+
- Added the profile editing
82+
- Added email changing
83+
- Changed validation handles
84+
- Improve sign in view
85+
- Renamed SignInViaEmailOrForm to SignInViaEmailOrUsernameForm
86+
87+
## v2.1
88+
89+
- Revised the readme
90+
- Fixed some bugs and added a few improvements
91+
92+
## v2.0
93+
94+
- Add password reset by a username
95+
- Add authentication by email
96+
- Add check for unique email on sign up step
97+
- Add a profile activation
98+
- Update Bootstrap to the v4.0.0-beta.2 version
99+
- Replace mysql database to sqlite
100+
- Many other improvements
101+
102+
## v1.0
103+
104+
Initial version.
105+
106+
107+
[1]: https://github.com/hanwentao
108+
[2]: https://github.com/egorsmkv/simple-django-login-and-register/pull/27
109+
[3]: https://github.com/karanrajpal14
110+
[4]: https://github.com/egorsmkv/simple-django-login-and-register/issues/33

LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2017-present Yehor Smoliakov. All rights reserved.
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright notice, this
7+
list of conditions and the following disclaimer.
8+
9+
* Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation
11+
and/or other materials provided with the distribution.
12+
13+
* Neither the name of mail nor the names of its
14+
contributors may be used to endorse or promote products derived from
15+
this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27+

Pipfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[[source]]
2+
url = "https://pypi.python.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
Django = "==4.1.3"
8+
"django-bootstrap4" = "==22.2"

Pipfile.lock

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Simple Django Login and Registration (dynamic language)
2+
3+
An example of Django project with basic user functionality.
4+
5+
## Dynamic language
6+
7+
One difference of this project from https://github.com/egorsmkv/simple-django-login-and-register is that URLs have an attached language code everywhere.
8+
9+
## Screenshots
10+
11+
| Log In | Create an account | Authorized page |
12+
| -------|--------------|-----------------|
13+
| <img src="./screenshots/login.png" width="200"> | <img src="./screenshots/create_an_account.png" width="200"> | <img src="./screenshots/authorized_page.png" width="200"> |
14+
15+
| Password reset | Set new password | Password change |
16+
| ---------------|------------------|-----------------|
17+
| <img src="./screenshots/password_reset.png" width="200"> | <img src="./screenshots/set_new_password.png" width="200"> | <img src="./screenshots/password_change.png" width="200"> |
18+
19+
## Functionality
20+
21+
- Log in
22+
- via username & password
23+
- via email & password
24+
- via email or username & password
25+
- with a remember me checkbox (optional)
26+
- Create an account
27+
- Log out
28+
- Profile activation via email
29+
- Reset password
30+
- Remind a username
31+
- Resend an activation code
32+
- Change password
33+
- Change email
34+
- Change profile
35+
- Multilingual: English, French, Russian, Simplified Chinese and Spanish
36+
37+
## Installing
38+
39+
### Clone the project
40+
41+
```
42+
git clone https://github.com/egorsmkv/simple-django-login-and-register
43+
cd simple-django-login-and-register
44+
```
45+
46+
### Install dependencies & activate virtualenv
47+
48+
```
49+
pip install pipenv
50+
51+
pipenv install
52+
pipenv shell
53+
```
54+
55+
### Configure the settings (connection to the database, connection to an SMTP server, and other options)
56+
57+
1. Edit `source/app/conf/development/settings.py` if you want to develop the project.
58+
59+
2. Edit `source/app/conf/production/settings.py` if you want to run the project in production.
60+
61+
### Apply migrations
62+
63+
```
64+
python source/manage.py migrate
65+
```
66+
67+
### Collect static files (only on a production server)
68+
69+
```
70+
python source/manage.py collectstatic
71+
```
72+
73+
### Running
74+
75+
#### A development server
76+
77+
Just run this command:
78+
79+
```
80+
python source/manage.py runserver
81+
```

screenshots/authorized_page.png

7.11 KB
Loading

screenshots/create_an_account.png

40.9 KB
Loading

screenshots/login.png

16.6 KB
Loading

screenshots/password_change.png

29.2 KB
Loading

0 commit comments

Comments
 (0)