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

task5 zahraa basheer #18

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions account/authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ def get_tokens_for_user(user):
'access': str(token),
}


17 changes: 17 additions & 0 deletions account/migrations/0002_alter_user_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 3.2.9 on 2021-11-04 13:03

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('account', '0001_initial'),
]

operations = [
migrations.AlterModelOptions(
name='user',
options={'verbose_name': 'user', 'verbose_name_plural': 'users'},
),
]
3 changes: 3 additions & 0 deletions account/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.shortcuts import render

# Create your views here.
6 changes: 6 additions & 0 deletions commerce/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import string, random



def gen_ref_code(length=4):
return ''.join(random.choice(string.ascii_letters+string.digits) for _ in range(length))
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
asgiref==3.4.1
Django==3.2.8
django-ninja==0.16.1
dnspython==2.1.0
ecdsa==0.17.0
email-validator==1.1.3
idna==3.3
Pillow==8.4.0
pyasn1==0.4.8
pydantic==1.8.2
python-jose==3.3.0
pytz==2021.3
rsa==4.7.2
six==1.16.0
sqlparse==0.4.2
typing-extensions==3.10.0.2