-
65 | {% for message in messages %}
66 |
67 | {% endfor %}
68 |
├── images ├── __init__.py ├── migrations │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-38.pyc │ │ └── 0001_initial.cpython-38.pyc │ └── 0001_initial.py ├── tests.py ├── views.py ├── __pycache__ │ ├── apps.cpython-38.pyc │ ├── admin.cpython-38.pyc │ ├── models.cpython-38.pyc │ └── __init__.cpython-38.pyc ├── apps.py ├── admin.py ├── forms.py └── models.py ├── account ├── __init__.py ├── migrations │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-38.pyc │ │ ├── 0001_initial.cpython-38.pyc │ │ └── 0002_auto_20220610_0854.cpython-38.pyc │ ├── 0001_initial.py │ └── 0002_auto_20220610_0854.py ├── tests.py ├── __pycache__ │ ├── admin.cpython-38.pyc │ ├── apps.cpython-38.pyc │ ├── forms.cpython-38.pyc │ ├── models.cpython-38.pyc │ ├── urls.cpython-38.pyc │ ├── views.cpython-38.pyc │ ├── __init__.cpython-38.pyc │ └── authentication.cpython-38.pyc ├── apps.py ├── admin.py ├── authentication.py ├── models.py ├── forms.py ├── urls.py ├── views.py └── posts ├── bookmarks ├── __init__.py ├── __pycache__ │ ├── urls.cpython-38.pyc │ ├── wsgi.cpython-38.pyc │ ├── __init__.cpython-38.pyc │ └── settings.cpython-38.pyc ├── asgi.py ├── wsgi.py ├── urls.py └── settings.py ├── db.sqlite3 ├── media ├── cool.png └── users │ └── 2022 │ └── 06 │ ├── 10 │ ├── party.png │ ├── smile.png │ └── laughing.png │ └── 09 │ └── cool.png ├── .vscode └── extensions.json ├── staticfiles ├── src │ └── hacking.png └── css │ └── style.css ├── templates ├── registration │ ├── password_reset_email.html │ ├── password_reset_complete.html │ ├── logout.html │ ├── password_reset_done.html │ ├── password_change_done.html │ ├── password_reset_form.html │ ├── password_change_form.html │ ├── password_reset_confirm.html │ └── login.html ├── account │ ├── register_done.html │ ├── register.html │ ├── edit.html │ ├── dashboard.html │ └── profile.html └── base.html └── manage.py /images/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /account/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bookmarks/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /account/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/db.sqlite3 -------------------------------------------------------------------------------- /account/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /images/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /media/cool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/media/cool.png -------------------------------------------------------------------------------- /images/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "bibhasdn.django-html" 4 | ] 5 | } -------------------------------------------------------------------------------- /staticfiles/src/hacking.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/staticfiles/src/hacking.png -------------------------------------------------------------------------------- /media/users/2022/06/09/cool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/media/users/2022/06/09/cool.png -------------------------------------------------------------------------------- /media/users/2022/06/10/party.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/media/users/2022/06/10/party.png -------------------------------------------------------------------------------- /media/users/2022/06/10/smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/media/users/2022/06/10/smile.png -------------------------------------------------------------------------------- /media/users/2022/06/10/laughing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/media/users/2022/06/10/laughing.png -------------------------------------------------------------------------------- /images/__pycache__/apps.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/images/__pycache__/apps.cpython-38.pyc -------------------------------------------------------------------------------- /account/__pycache__/admin.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/__pycache__/admin.cpython-38.pyc -------------------------------------------------------------------------------- /account/__pycache__/apps.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/__pycache__/apps.cpython-38.pyc -------------------------------------------------------------------------------- /account/__pycache__/forms.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/__pycache__/forms.cpython-38.pyc -------------------------------------------------------------------------------- /account/__pycache__/models.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/__pycache__/models.cpython-38.pyc -------------------------------------------------------------------------------- /account/__pycache__/urls.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/__pycache__/urls.cpython-38.pyc -------------------------------------------------------------------------------- /account/__pycache__/views.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/__pycache__/views.cpython-38.pyc -------------------------------------------------------------------------------- /bookmarks/__pycache__/urls.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/bookmarks/__pycache__/urls.cpython-38.pyc -------------------------------------------------------------------------------- /bookmarks/__pycache__/wsgi.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/bookmarks/__pycache__/wsgi.cpython-38.pyc -------------------------------------------------------------------------------- /images/__pycache__/admin.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/images/__pycache__/admin.cpython-38.pyc -------------------------------------------------------------------------------- /images/__pycache__/models.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/images/__pycache__/models.cpython-38.pyc -------------------------------------------------------------------------------- /account/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /images/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/images/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /bookmarks/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/bookmarks/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /bookmarks/__pycache__/settings.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/bookmarks/__pycache__/settings.cpython-38.pyc -------------------------------------------------------------------------------- /account/__pycache__/authentication.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/__pycache__/authentication.cpython-38.pyc -------------------------------------------------------------------------------- /images/migrations/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/images/migrations/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /account/migrations/__pycache__/__init__.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/migrations/__pycache__/__init__.cpython-38.pyc -------------------------------------------------------------------------------- /account/migrations/__pycache__/0001_initial.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/migrations/__pycache__/0001_initial.cpython-38.pyc -------------------------------------------------------------------------------- /images/migrations/__pycache__/0001_initial.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/images/migrations/__pycache__/0001_initial.cpython-38.pyc -------------------------------------------------------------------------------- /images/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class ImagesConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'images' 7 | -------------------------------------------------------------------------------- /account/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class AccountConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'account' 7 | -------------------------------------------------------------------------------- /account/migrations/__pycache__/0002_auto_20220610_0854.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rashidov21/bookmarks/HEAD/account/migrations/__pycache__/0002_auto_20220610_0854.cpython-38.pyc -------------------------------------------------------------------------------- /templates/registration/password_reset_email.html: -------------------------------------------------------------------------------- 1 | Someone asked for password reset for email {{ email }}. Follow the link below: {{ protocol }}://{{ domain }}{% url "account:password_reset_confirm" uidb64=uid token=token %} Your username, in case you've forgotten: {{ user.get_username }} -------------------------------------------------------------------------------- /templates/registration/password_reset_complete.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} {% block title %}Password reset{% endblock %} {% block content %} 2 |
Your password has been set. You can 4 | log in now
5 | {% endblock %} -------------------------------------------------------------------------------- /images/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import Image 3 | # Register your models here. 4 | 5 | 6 | @admin.register(Image) 7 | class ImageAdmin(admin.ModelAdmin): 8 | list_display = ['title', 'slug', 'image', 'created'] 9 | list_filter = ['created'] 10 | -------------------------------------------------------------------------------- /account/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import Profile, Followers 3 | 4 | # Register your models here. 5 | 6 | 7 | @admin.register(Profile) 8 | class ProfileAdmin(admin.ModelAdmin): 9 | list_display = ['user', 'date_of_birth', 'photo'] 10 | 11 | 12 | admin.site.register(Followers) 13 | -------------------------------------------------------------------------------- /templates/account/register_done.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} {% block title %}Welcome{% endblock %} {% block content %} 2 |Your account has been successfully created. Now you can log in.
5 |
5 | You have been successfully logged out. You can
6 | log-in again
7 |
We've emailed you instructions for setting your password.
5 |If you don't receive an email, please make sure you've entered the address you registered with.
6 |Please, sign up using the following form:
5 | 10 |Enter your e-mail address to obtain a new password.
5 | 10 |Use the form below to change your password.
5 | 11 |You can edit your account using the following form:
5 | 10 |Please enter your new password twice:
6 | 10 | {% else %} 11 |The password reset link was invalid, possibly because it has already been used. Please request a new password reset.
12 | {% endif %} 13 |Welcome to your dashboard.
5 |Welcome to your dashboard. You can edit 6 | your profile or change your 7 | password.
8 |6 | Your username and password didn't match. Please try again. 7 |
8 | {% else %} 9 |Please, use the following form to log-in:
10 | {% endif %} 11 |You have not an account ? 20 | Register now. 21 |
22 |23 | Forgotten your password ?Reset password 24 |
25 |