From 64ab50bb06eb01b4364bfcdaf45ae926b6670612 Mon Sep 17 00:00:00 2001
From: Sashi20
Date: Fri, 14 Sep 2018 15:17:21 +0530
Subject: Enabled registration and login interface, activation emails, paper
submission interface
---
logs/emailconfig.yaml | 20 ++
nccps2018/urls.py | 2 +-
requirements.txt | 3 +-
static/website/templates/activation.html | 48 +++
static/website/templates/cfp.html | 65 +++-
static/website/templates/comment-abstract.html | 11 +-
static/website/templates/login.html | 32 ++
static/website/templates/navbar.html | 19 +-
static/website/templates/proposal.html | 122 ++-----
static/website/templates/submit-cfp.html | 29 +-
static/website/templates/user-register.html | 167 ++++++++--
static/website/templates/view-profile.html | 59 ++++
static/website/templates/view-proposals.html | 1 +
website/forms.py | 199 ++++++++++-
website/models.py | 62 +++-
website/send_mails.py | 435 +++++++++++++++++++++++++
website/urls.py | 7 +-
website/views.py | 264 +++++++++------
18 files changed, 1270 insertions(+), 275 deletions(-)
create mode 100755 logs/emailconfig.yaml
create mode 100644 static/website/templates/activation.html
create mode 100644 static/website/templates/login.html
create mode 100644 static/website/templates/view-profile.html
create mode 100644 website/send_mails.py
diff --git a/logs/emailconfig.yaml b/logs/emailconfig.yaml
new file mode 100755
index 0000000..ab0fa3f
--- /dev/null
+++ b/logs/emailconfig.yaml
@@ -0,0 +1,20 @@
+version: 1
+disable_existing_loggers: False
+
+formatters:
+ detailed:
+ format: '%(asctime)s - %(levelname)s - Function: %(funcName)s() - Line: %(lineno)d - %(message)s'
+
+handlers:
+ emaillogfile:
+ level: INFO
+ class: logging.handlers.RotatingFileHandler
+ maxBytes: 10000000 #10MB
+ backupCount: 9
+ formatter: detailed
+ filename: path/to/emailfile.log
+
+root:
+ level: INFO
+ handlers:
+ - emaillogfile
diff --git a/nccps2018/urls.py b/nccps2018/urls.py
index 21733fd..b234d88 100644
--- a/nccps2018/urls.py
+++ b/nccps2018/urls.py
@@ -1,4 +1,4 @@
-"""Scipy2018 URL Configuration
+"""NCCPS2018 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
diff --git a/requirements.txt b/requirements.txt
index fd6c4e3..3ced17a 100755
--- a/requirements.txt
+++ b/requirements.txt
@@ -6,7 +6,6 @@ django-recaptcha==1.4.0
idna==2.7
mysqlclient==1.3.13
oauthlib==2.1.0
-pkg-resources==0.0.0
PyJWT==1.6.4
python-social-auth==0.3.6
python3-openid==3.1.0
@@ -17,4 +16,6 @@ six==1.11.0
social-auth-app-django==2.1.0
social-auth-core==1.7.0
urllib3==1.23
+django-widget-tweaks
+pyyaml
diff --git a/static/website/templates/activation.html b/static/website/templates/activation.html
new file mode 100644
index 0000000..b5d8052
--- /dev/null
+++ b/static/website/templates/activation.html
@@ -0,0 +1,48 @@
+{% extends "base.html" %}
+{% load static %}
+{% load widget_tweaks %}
+
+{% csrf_token %}
+{% block content %}
+ {% if status == '2' %}
+
+
+
Your email is already verified, Please view your profile here
+
+
+
+ {% elif status == '1' %}
+
+
+
+
Your activation has expired please register again
+
+
+ {% elif status == '0' %}
+
+
+
Your account has been activated. Please view your profile here
+
+
+
+ {% else %}
+
+
+
+
+
Activation Awaiting
+
The Activation Link has been sent to your email. The link expires in 24hours from the date of registration. You will be logged out automatically.
+
+
+ {% endif %}
+{% endblock %}
diff --git a/static/website/templates/cfp.html b/static/website/templates/cfp.html
index 52bf3a5..33535be 100755
--- a/static/website/templates/cfp.html
+++ b/static/website/templates/cfp.html
@@ -1,3 +1,4 @@
+{% extends "base.html" %}
{% load static %}
@@ -164,8 +165,66 @@
{% endif %}
+{% block content %}
+
+
+
+
Call for Papers
+
+
+
+
We invite papers on Chemical Process Modelling, Simulation and Optimization. Time duration for oral presentation will be 15 minutes. Accepted papers will be published in conference proceedings. Award will be given to best paper and best poster.
+
Paper submission starts on September 15 2018.
+
+
+
+
+
+ General guidelines for paper submission:
+
+
+ - Papers are invited on chemical process, modelling, simulation, and optimization.
+ - Use of open source software such as DWSIM and OpenModelica will be preferred.
+ - Authors must submit the manuscript up to 6 pages of length including tables, figures and references in the required 2-column format as described in the template below.
+ - Multiple submissions from one author is allowed.
+ - Maximum 3 authors for one paper are allowed, in that case only one author should submit a paper on behalf of everyone. All authors should register and book a ticket for the conference.
+
+ - Submissions will be judged on originality, significance, interest, clarity, relevance, and presentation.
+ - Authors should ensure that their work doesn’t contain plagiarized content and not under copyright elsewhere.
+ - Please download the appropriate file for structure of the paper. We encourage use of LaTeX for creating paper.
+ - Click the following links for templates
+
+
+
+
+
+
+ Suggested Contents of a paper
+
+
+
+ - Selection of a topic
+ - Importance of a topic
+ - Any difficulties while solving with open source software.
+ - The methodology followed to overcome these difficulties(any assumptions, data regression, custom modelling, etc.)
+ - Validation of the results with published papers/experimentation/commercial simulators like CHEMCAD, Aspen Plus, UniSim etc.
+ - Sensitivity studies, adjust, some tricks used for faster calculation etc done to optimize results and reduce simulation time.
+
+
+
+
+
+
+
+
{% endblock %}
- {% include 'footer.html' %}
-
-
diff --git a/static/website/templates/comment-abstract.html b/static/website/templates/comment-abstract.html
index b6dd3a2..f77eb3f 100755
--- a/static/website/templates/comment-abstract.html
+++ b/static/website/templates/comment-abstract.html
@@ -15,10 +15,11 @@
{{ proposal.user.first_name }} {{ proposal.user.last_name }}
- Title: {{ proposal.title }}
- About Me: {{ proposal.about_me |linebreaks }}
- {% if proposal.proposal_type == "ABSTRACT"%}
- Abstract:
+
Title of the paper: {{ proposal.title }}
+ Name of the author(s): {{proposal.name_of_authors}}
+ About the Author(s): {{ proposal.about_the_authors |linebreaks }}
+
Duration: {{ proposal.duration }} {% if proposal.proposal_type == "ABSTRACT"%} Mins {% else %}Hours {%endif%}
{% if proposal.proposal_type == "ABSTRACT"%}
Tags: {{ proposal.tags }}
diff --git a/static/website/templates/login.html b/static/website/templates/login.html
new file mode 100644
index 0000000..65da512
--- /dev/null
+++ b/static/website/templates/login.html
@@ -0,0 +1,32 @@
+{% extends "base.html" %}
+{% load static %}
+{% block content %}
+
+
+
+
+
+
Login
+
Login/Register to Submit a paper
+ {% if invalid %}
+
* Invalid Username/Password
+ {% endif %}
+
+
+
+
+
+
+
+{% endblock %}
+
diff --git a/static/website/templates/navbar.html b/static/website/templates/navbar.html
index ce70dcc..001fce8 100644
--- a/static/website/templates/navbar.html
+++ b/static/website/templates/navbar.html
@@ -39,12 +39,23 @@
Venue
Organiser
Contact Us
+ cfp
{% if user.is_authenticated %}
-
- {{ user.username }}!
- logout
+
+
+
+ {{ user.username }}!
+
+
+
+
{% else %}
- cfp
+
+ Login
{% endif %}
diff --git a/static/website/templates/proposal.html b/static/website/templates/proposal.html
index c6b51c3..1f7d4a0 100644
--- a/static/website/templates/proposal.html
+++ b/static/website/templates/proposal.html
@@ -6,7 +6,7 @@
{% if user and not user.is_anonymous %}
- Submit Proposal
+ Submit paper
{% else %}
Login
{% endif %}
@@ -32,113 +32,33 @@
{% endif %} {% if user and not user.is_anonymous and not login_required %}
- We invite you to submit proposals for talks or workshops to be presented at SciPy 2018 The time duration for talks is 15 or 30 minutes and for workshops is 2 to 4 hours. There will be two parallel tracks for the workshops this year. One track
- is meant for beginners and the other is for advanced users.
-
+ We invite papers on Chemical Process Modelling, Simulation and Optimization. Time duration for oral presentation will be 15 minutes. Accepted papers will be published in conference proceedings. Award will be given to best paper and best poster.
Important Dates
- - Call for proposals opens:
- 15th Sept. 2018
-
- - Last date for submission of proposals:
- 10th Nov. 2018
-
- - Announcement of selected proposals:
- 15th Nov. 2018
-
+ - Last date for paper submission: 28/09/2018
+ - Notification of acceptance: 22/10/2018
+ - Last date for final paper submission: 02/11/2018
-
{% if user.is_superuser %}
-
- View Proposals
- Submit Proposal
- Submit Workshop
-
- {% else %}
-
- View Proposals
-
- {% endif %} {% else %}
-
-
-
-
-
-
- Login
-
-
-
Login/Register to Submit a Proposal
- {% if invalid %}
-
* Invalid Username/Password
- {% endif %}
-
-
-
-
Or Sign in with:
-
-
-
-
-
-
-
-
-
-
- Important Dates
-
-
- - Call for proposals opens:
- 15th Sept. 2017
-
- - Last date for submission of proposals:
- 10th Nov. 2018
-
- - Announcement of selected proposals:
- 15th Nov. 2018
-
-
-
-
-
-
-
-
- Guidelines for a Proposal
-
-
- - The project should be an actual implementation rather than just an idea.
- - Besides implementation, the submission can also be about experiences and usage of Python, Python-based tools and libraries for research or teaching.
- - Abstract should be of 300 to 700 words describing the topic, including its relevance to scientific computing or the use of Python in education.
- - All selected proposals must be presented at the conference by atleast one author.
-
-
-
-
-
- Guidelines for a Workshop
-
-
-
- - There are two parallel tracks, one for beginners and one for advanced users.
- - The workshops should be hands-on with plenty of exercises for the users.
- - It is advisable to pick particular problem(s) and orient your workshop around how to solve those using the package you plan to talk about.
- - Provide us with links to any resources you have already prepared for the workshop.
-
-
-
-
+
+ {% if user.is_superuser %}
+
+ View Proposals
+ Submit paper
+
+
+ {% else %}
+
+ View Proposals
+ Submit paper
+
+
+ {% endif %}
+ {% else %}
+
diff --git a/static/website/templates/submit-cfp.html b/static/website/templates/submit-cfp.html
index b3aa2ee..b31658d 100755
--- a/static/website/templates/submit-cfp.html
+++ b/static/website/templates/submit-cfp.html
@@ -6,23 +6,24 @@
{% if proposals_a >= 1 %} You have exceeded the abstract submission limit. You may view your submitted proposals by clicking
here
- {% else %}
+ {% else %}
- Submit Proposal
+ Submit paper
-
Proposal Guidelines
-
- - The project you are willing to present should be an actual implementation rather than just an idea.
- - Submissions need not necessarily be about an implementation, they could also be about experiences and usage of Python and Python-based tools and libraries for research or teaching.
- - Abstract should be of 300 to 700 words describing the topic, including its relevance to scientific computing or the use of Python in education.
- - Proposals with an aim to promote a commercial product or service will be rejected.
- - In your abstract mention the various tools/libraries used for development.
- - Notification for selection/rejection of your proposal will be given through email.
- - All selected proposals must be presented at the conference by at least one author.
-
+
+ General guidelines for paper submission:
+
+
+ - Papers are invited on chemical process, modelling, simulation, and optimization.
+ - Use of open source software such as DWSIM and OpenModelica will be preferred.
+ - Authors must submit the manuscript up to 6 pages of length including tables, figures and references in the required 2-column format as described in the template below.
+ - Submissions will be judged on originality, significance, interest, clarity, relevance, and presentation.
+ - Authors should ensure that their work doesn’t contain plagiarized content and not under copyright elsewhere.
+ - Please download the appropriate file for structure of the paper. We encourage use of LaTeX for creating paper.
+ - Click for LaTeX/ Word template
+