Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
1fb4216
Add .gitignore
Mohammad-YN Feb 14, 2021
958b5af
Initialize the django project
Mohammad-YN Feb 14, 2021
68a175e
Add rest_framework to installed apps
Mohammad-YN Feb 14, 2021
2180739
Create users app
Mohammad-YN Feb 14, 2021
e0c435a
Add User model
Mohammad-YN Feb 14, 2021
7fad32b
Fix admin and user database dependencies
Mohammad-YN Feb 14, 2021
ff8ab4a
Add simplejwt to installed apps
Mohammad-YN Feb 14, 2021
0780c7c
Create authentication app
Mohammad-YN Feb 14, 2021
97d7b67
Add serializers for registration
Mohammad-YN Feb 14, 2021
346747e
Add a view for registrations
Mohammad-YN Feb 14, 2021
5c73ee5
Add authentication urls
Mohammad-YN Feb 14, 2021
99cee69
Add authentication urls to project urls
Mohammad-YN Feb 14, 2021
addfd8d
Fix a bug with data returned in Response
Mohammad-YN Feb 14, 2021
0582cee
Remove unwanted tabs in auth serializers
Mohammad-YN Feb 14, 2021
fdc9fb9
Add __str__ representation for user model
Mohammad-YN Feb 14, 2021
d2c6130
Customize admin panel for user control
Mohammad-YN Feb 16, 2021
0c32fac
Add a method to set user permissions for admins
Mohammad-YN Feb 16, 2021
c2d3704
Modify the register view so only superusers can create new staff members
Mohammad-YN Feb 16, 2021
306f41d
Add is_staff field to register serilaizer
Mohammad-YN Feb 16, 2021
4ccadb1
Fix a KeyError regarding is_staff field
Mohammad-YN Feb 16, 2021
7f5fe17
Modify register serializer to set permissions
Mohammad-YN Feb 16, 2021
3808207
Modify admin interface so that admins can't modify other admins
Mohammad-YN Feb 16, 2021
3beba34
Create an app for tasks
Mohammad-YN Feb 16, 2021
9452a85
Add task model
Mohammad-YN Feb 16, 2021
4b8530b
Add tasks app to installed apps
Mohammad-YN Feb 16, 2021
e3138ef
Migrate new task model
Mohammad-YN Feb 16, 2021
6664984
Add a serializer for task model
Mohammad-YN Feb 16, 2021
6d1b755
Remove member serializer from authentications serializer
Mohammad-YN Feb 16, 2021
24b051b
Add member serializer to users serializers
Mohammad-YN Feb 16, 2021
6c8e0af
Add an API for users and admin to get a list of tasks
Mohammad-YN Feb 16, 2021
ddb57ca
Add task APIs to task urls
Mohammad-YN Feb 16, 2021
3a93e36
Add tasks urls to base urls
Mohammad-YN Feb 16, 2021
bab50a2
Customize django admin for tasks
Mohammad-YN Feb 16, 2021
df78c15
Create a new interface for non-staff users
Mohammad-YN Feb 16, 2021
b6d11bf
Add the new interface urls to base urls
Mohammad-YN Feb 16, 2021
a0952b5
Add new permissions for users
Mohammad-YN Feb 16, 2021
3bb0e2d
Register task model in non-staff user interface
Mohammad-YN Feb 16, 2021
2140b91
Add a feature for admin interface to have a link to the owner of ever…
Mohammad-YN Feb 16, 2021
30a2c17
Add unit tests for authentication
Mohammad-YN Feb 16, 2021
0fa8fe6
Configure celery
Mohammad-YN Feb 16, 2021
5200a31
Add the email sender task
Mohammad-YN Feb 16, 2021
aed9889
Add email backend configs in settings and add schedule emails to djan…
Mohammad-YN Feb 17, 2021
01d8b6f
Modify user interface task creation
Mohammad-YN Feb 17, 2021
6944449
Modify task owner field for admin interface to filter staff members
Mohammad-YN Feb 17, 2021
807a675
Add requirements file
Mohammad-YN Feb 17, 2021
3e6192b
Add README file
Mohammad-YN Feb 17, 2021
98b3760
Modify README file
Mohammad-YN Feb 17, 2021
08ae5ef
Add postman documentation
Mohammad-YN Feb 17, 2021
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
370 changes: 370 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,370 @@

# Created by https://www.gitignore.io/api/python,django,pycharm,pycharm+all,pycharm+iml
# Edit at https://www.gitignore.io/?templates=python,django,pycharm,pycharm+all,pycharm+iml

### Django ###
*.log
*.pot
*.pyc
__pycache__/
local_settings.py
db.sqlite3
db.sqlite3-journal
media

# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
# in your Git repository. Update and uncomment the following line accordingly.
# <django-project-name>/staticfiles/

### Django.Python Stack ###
# Byte-compiled / optimized / DLL files
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

### PyCharm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.vscode/

.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### PyCharm Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
.idea/**/sonarlint/

# SonarQube Plugin
.idea/**/sonarIssues.xml

# Markdown Navigator plugin
.idea/**/markdown-navigator.xml
.idea/**/markdown-navigator/

### PyCharm+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff

# Generated files

# Sensitive or high-churn files

# Gradle

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake

# Mongo Explorer plugin

# File-based project format

# IntelliJ

# mpeltonen/sbt-idea plugin

# JIRA plugin

# Cursive Clojure plugin

# Crashlytics plugin (for Android Studio and IntelliJ)

# Editor-based Rest Client

# Android studio 3.1+ serialized cache file

### PyCharm+all Patch ###
# Ignores the whole .idea folder and all .iml files
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360

.idea/

# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023

*.iml
modules.xml
.idea/misc.xml
*.ipr

# Sonarlint plugin
.idea/sonarlint

### PyCharm+iml ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff

# Generated files

# Sensitive or high-churn files

# Gradle

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake

# Mongo Explorer plugin

# File-based project format

# IntelliJ

# mpeltonen/sbt-idea plugin

# JIRA plugin

# Cursive Clojure plugin

# Crashlytics plugin (for Android Studio and IntelliJ)

# Editor-based Rest Client

# Android studio 3.1+ serialized cache file

### PyCharm+iml Patch ###
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023


### Python ###
# Byte-compiled / optimized / DLL files

# C extensions

# Distribution / packaging

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.

# Installer logs

# Unit test / coverage reports

# Translations

# Scrapy stuff:

# Sphinx documentation

# PyBuilder

# pyenv

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.

# celery beat schedule file

# SageMath parsed files

# Spyder project settings

# Rope project settings

# Mr Developer

# mkdocs documentation

# mypy

# Pyre type checker

# End of https://www.gitignore.io/api/python,django,pycharm,pycharm+all,pycharm+iml
postgres/
venv/
env/
*/**/venv
*/**/env
*/**/screenlog.*

Loading