-
Notifications
You must be signed in to change notification settings - Fork 228
Issuing Digital Certificate #761
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
Open
WISE-ELITE-2K18
wants to merge
90
commits into
FOSSEE:master
Choose a base branch
from
WISE-ELITE-2K18:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 16 commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
d59cc55
Added smtp values
WISE-ELITE-2K18 a094f02
Created yaksh.tex for certificate
WISE-ELITE-2K18 d50168b
Rename .sampleenv to .env
WISE-ELITE-2K18 2f648b7
Update .env
WISE-ELITE-2K18 25aa575
Created mail_certificate()
WISE-ELITE-2K18 023f7cc
Added image certificate backgroung
WISE-ELITE-2K18 c6dff10
Added Fossee logo
WISE-ELITE-2K18 42ff715
Update yaksh.tex
WISE-ELITE-2K18 0efbede
Update yaksh.tex
WISE-ELITE-2K18 9e001a9
Updated Coursestatus in views
WISE-ELITE-2K18 57dcf54
Updated view_module in views
WISE-ELITE-2K18 06e7949
Created column certificate in courseStatus Table
WISE-ELITE-2K18 9cb5d28
Update course_modules.html
WISE-ELITE-2K18 08f4485
Update quizzes_user.html
WISE-ELITE-2K18 25cacf6
Update models.py
WISE-ELITE-2K18 b00c260
Update send_emails.py
WISE-ELITE-2K18 2fb4947
removed whitespace
WISE-ELITE-2K18 fe67a3d
Changed smtp_backend, host user and password
WISE-ELITE-2K18 815dd60
Update and rename .env to .sampleenv
WISE-ELITE-2K18 0ecdc45
removed extralines and print statements
WISE-ELITE-2K18 d18190c
Added if condition
WISE-ELITE-2K18 a22c3db
Removed extra lines
WISE-ELITE-2K18 08db834
Update settings.py
WISE-ELITE-2K18 4df24c8
used models.BooleanField to certificate
WISE-ELITE-2K18 e98e238
changed get_certificateStatus() typr to bool
WISE-ELITE-2K18 c7befbb
Changed certificate Status to bool
WISE-ELITE-2K18 d523d6c
Included pdflatex in requirements
WISE-ELITE-2K18 e77af6e
Added jinja2 to requirements
WISE-ELITE-2K18 e1981e2
removed spaces
WISE-ELITE-2K18 a7ffdde
removed spaces in send_emails
WISE-ELITE-2K18 c2d86e6
Update send_emails.py
WISE-ELITE-2K18 fe0bad3
Update quizzes_user.html
WISE-ELITE-2K18 117cbe2
Update views.py
WISE-ELITE-2K18 64ccd78
Update views.py
WISE-ELITE-2K18 7650834
Update views.py
WISE-ELITE-2K18 96b7db1
Update views.py
WISE-ELITE-2K18 d475062
Update views.py
WISE-ELITE-2K18 4739f5a
Update views.py
WISE-ELITE-2K18 e792016
Update views.py
WISE-ELITE-2K18 1bf1f2e
Update send_emails.py
WISE-ELITE-2K18 42937b3
Update tests.py
WISE-ELITE-2K18 e2054a4
Update tests.py
WISE-ELITE-2K18 f91bcb5
Update tests.py
WISE-ELITE-2K18 771a975
Update tests.py
WISE-ELITE-2K18 fc51cdb
Update tests.py
WISE-ELITE-2K18 b26dd09
Update views.py
WISE-ELITE-2K18 6d11f5f
Update tests.py
WISE-ELITE-2K18 968fca4
Changed test.py to previous one
WISE-ELITE-2K18 d5ff608
Update tests.py
WISE-ELITE-2K18 ba7509d
Update tests.py
WISE-ELITE-2K18 56fe9bd
Added pylatex in requirements
WISE-ELITE-2K18 ba4a538
Update tests.py
WISE-ELITE-2K18 6225fbe
Update tests.py
WISE-ELITE-2K18 fb59470
removed pylatex
WISE-ELITE-2K18 744e0e7
Update quizzes_user.html
WISE-ELITE-2K18 e6763cc
Update quizzes_user.html
WISE-ELITE-2K18 0751a07
Added test completed condition
WISE-ELITE-2K18 75e9902
Applied Indentation in course_modules
WISE-ELITE-2K18 f016f3b
removed else
WISE-ELITE-2K18 268eec0
Change email_host,email_port
WISE-ELITE-2K18 769b894
Update settings.py
WISE-ELITE-2K18 86edba6
Update .sampleenv
WISE-ELITE-2K18 b61cce6
removed bool in set_certificateStatus
WISE-ELITE-2K18 c6d8498
Update models.py
WISE-ELITE-2K18 fe31580
Update tests.py
WISE-ELITE-2K18 70a1be9
Update models.py
WISE-ELITE-2K18 df3bd08
Update tests.py
WISE-ELITE-2K18 1151b20
Update tests.py
WISE-ELITE-2K18 7153c81
Update models.py
WISE-ELITE-2K18 6283e93
Update models.py
WISE-ELITE-2K18 89717f6
Update tests.py
WISE-ELITE-2K18 5ccd32f
removed loader in views
WISE-ELITE-2K18 bf166e0
removed special_start()
WISE-ELITE-2K18 249ed36
Update views.py
WISE-ELITE-2K18 509f3a6
removed trailing white spaces
WISE-ELITE-2K18 091113e
Added loader in views
WISE-ELITE-2K18 a6b297d
images moved to certificate_images
WISE-ELITE-2K18 524201a
certificates moved to folder certificate_images
WISE-ELITE-2K18 1f1adba
Added path to images in tex file
WISE-ELITE-2K18 40a5b11
Updated username in views
WISE-ELITE-2K18 6d8c8ba
added pymysql and new column
WISE-ELITE-2K18 bb94d37
added PyMySQL
WISE-ELITE-2K18 4f40b28
removed last migration
WISE-ELITE-2K18 96b69ee
pymysql
WISE-ELITE-2K18 f6b09d0
Update models.py
WISE-ELITE-2K18 3d20c06
Update models.py
WISE-ELITE-2K18 43169f1
Update models.py
WISE-ELITE-2K18 1a9be04
Update tests.py
WISE-ELITE-2K18 2c975fa
Update tests.py
WISE-ELITE-2K18 83d1c7d
Update tests.py
WISE-ELITE-2K18 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,13 @@ | ||
| # Django settings | ||
| SECRET_KEY=dUmMy_s3cR3t_k3y | ||
| DB_ENGINE=mysql | ||
| DB_NAME=yaksh | ||
| DB_USER=yaksh_user | ||
| DB_PASSWORD=mysecretpassword | ||
| #DB_HOST=yaksh-db | ||
| DB_PORT=3306 | ||
| # Yaksh settings | ||
| N_CODE_SERVERS=5 | ||
| SERVER_POOL_PORT=53579 | ||
| SERVER_HOST_NAME=http://yaksh-codeserver | ||
| #SERVER_TIMEOUT=4 | ||
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -84,11 +84,11 @@ | |
| default=os.path.join(BASE_DIR, 'db.sqlite3') | ||
| ), | ||
| # The following settings are not used with sqlite3: | ||
| 'USER': config('DB_USER', default=''), | ||
| 'PASSWORD': config('DB_PASSWORD', default=''), | ||
| 'USER': config('DB_USER', default='yaksh_user'), | ||
| 'PASSWORD': config('DB_PASSWORD', default='mysecretpassword'), | ||
| # Empty for localhost through domain sockets or '1$ | ||
| 'HOST': config('DB_HOST', default='localhost'), | ||
| 'PORT': config('DB_PORT', default=''), | ||
| 'PORT': config('DB_PORT', default='3306'), | ||
| }, | ||
| } | ||
|
|
||
|
|
@@ -122,20 +122,25 @@ | |
|
|
||
| STATIC_ROOT = 'yaksh/static/' | ||
|
|
||
|
|
||
|
|
||
|
|
||
| # Set this varable to <True> if smtp-server is not allowing to send email. | ||
| EMAIL_USE_TLS = False | ||
| EMAIL_USE_TLS = True | ||
|
|
||
| EMAIL_HOST = 'smtp.gmail.com' | ||
|
|
||
| EMAIL_HOST = 'your_email_host' | ||
| EMAIL_PORT = '587' | ||
|
|
||
| EMAIL_PORT = 'your_email_port' | ||
| EMAIL_HOST_USER = '[email protected]' | ||
|
|
||
| EMAIL_HOST_USER = 'email_host_user' | ||
| EMAIL_HOST_PASSWORD = 'elite2019' | ||
|
|
||
| EMAIL_HOST_PASSWORD = 'email_host_password' | ||
WISE-ELITE-2K18 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| EMAIL_USE_SSL = False | ||
|
|
||
| # Set EMAIL_BACKEND to 'django.core.mail.backends.smtp.EmailBackend' | ||
| # in production | ||
| EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend' | ||
| EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' | ||
WISE-ELITE-2K18 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # SENDER_EMAIL, REPLY_EMAIL, PRODUCTION_URL, IS_DEVELOPMENT are used in email | ||
| # verification. Set the variables accordingly to avoid errors in production | ||
|
|
||
This file contains hidden or 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,105 @@ | ||
|
|
||
|
|
||
| \documentclass[20pt, a4paper]{extarticle} | ||
|
|
||
| \usepackage{extsizes} | ||
|
|
||
| \usepackage[T1]{fontenc} | ||
|
|
||
| \usepackage{amsmath} | ||
|
|
||
| \usepackage{graphicx} | ||
|
|
||
| \usepackage[margin=17mm,landscape]{geometry} | ||
|
|
||
| \usepackage{times} | ||
|
|
||
| \usepackage[onehalfspacing]{setspace} | ||
|
|
||
| \usepackage{eso-pic} | ||
|
|
||
| \usepackage{ragged2e} | ||
|
|
||
| \setlength{\parindent}{0pt} | ||
|
|
||
|
|
||
|
|
||
| \begin{document} | ||
|
|
||
| \pagestyle{empty} | ||
|
|
||
| \AddToShipoutPictureBG*{\includegraphics[width=\paperwidth, height=\paperheight]{certificate_bg.jpg}} | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| \begin{minipage}{\linewidth} | ||
|
|
||
|
|
||
|
|
||
| \hspace{18 cm} | ||
|
|
||
| \includegraphics[scale = 0.7]{fossee_logo.png} | ||
|
|
||
| \centering \large \bfseries | ||
|
|
||
| {\Huge | ||
|
|
||
| \vskip2cm \color{blue!50!black} \hspace{2cm} $\boldsymbol{\mathrm { Certificate \ Of\ Completion}}$ } | ||
|
|
||
| \end{minipage} | ||
|
|
||
|
|
||
|
|
||
| \vskip2.5cm | ||
|
|
||
| \doublespacing | ||
|
|
||
| \RaggedRight | ||
|
|
||
| { \normalsize | ||
|
|
||
| \fontfamily{qcs}\selectfont | ||
|
|
||
|
|
||
|
|
||
| \normalsize \emph{{\hspace{4cm} This is to certify that {\color {blue!50!black} \VAR{name} }has successfully completed a course on { \color{blue!50!black} \VAR{course}}. This course was offered by the {\color{red!50!black} FOSSEE Project, IIT Bombay,} funded by National Mission on Education through ICT, MHRD, Govt.of India. | ||
|
|
||
| }}} | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| \singlespacing | ||
|
|
||
| \small | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| \hspace{3 cm} | ||
|
|
||
| \vskip1cm | ||
|
|
||
| \begin{minipage}{0.2\linewidth} | ||
|
|
||
| \centering | ||
|
|
||
| \rule{5cm}{1pt}\\ | ||
|
|
||
| Dr. XXXXX\\ | ||
|
|
||
| \end{minipage}\hfill | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| \end{document} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.