diff --git a/README.md b/README.md index 9b2192a..45ff81f 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,37 @@ -# IIITDM Alumni Connect +# IIITDM Alumni Connect + This web-application aims to facilitate the Alumni Affairs of IIITDM Jabalpur. Please read contributing guidelines before starting. ## Requirements - * Python: 3.7/3.8 - * Django: 2.2.20 - * And additional requirements are in [**requirements.txt**](./requirements.txt). These will automatically be installed with below steps. - +* Python: 3.7/3.8 +* Django: 2.2.20 +* And additional requirements are in [**requirements.txt**](./requirements.txt). These will automatically be installed with below steps. ## How to run it? - * Fork the repository. - * Clone the repository to your local machine `$ git clone https://github.com//alumni.git` - * Change directory to alumni `$ cd alumni` - * Add a reference to the original repository `$ git remote add upstream https://github.com/Student-Alumni-Connect/alumni.git` - * Install virtualenv `$ pip3 install virtualenv` - * Create a virtual environment `$ virtualenv env -p python3` - * Activate the env: `$ source env/bin/activate` (for linux) `> ./env/Scripts/activate` (for Windows PowerShell) - * Install the requirements: `$ pip install -r requirements.txt` - **Note:** If some requirement causes some error, remove the version from that requirement (ex. convert `anyjson==0.3.3` to `anyjson`) and run the above command again. - * Make migrations `$ python manage.py makemigrations` - * Migrate the changes to the database `$ python manage.py migrate` - * Run the server `$ python manage.py runserver` - * Create admin `$ python manage.py createsuperuser` - * Create tables `$ python manage.py migrate --run-syncdb` +* Fork the repository. +* Clone the repository to your local machine `$ git clone https://github.com//alumni.git` +* Change directory to alumni `$ cd alumni` +* Add a reference to the original repository `$ git remote add upstream https://github.com/Student-Alumni-Connect/alumni.git` +* Install virtualenv `$ pip3 install virtualenv` +* Create a virtual environment `$ virtualenv env -p python3` +* Activate the env: `$ source env/bin/activate` (for linux) `> ./env/Scripts/activate` (for Windows PowerShell) +* Install the requirements: `$ pip install -r requirements.txt`**Note:** If some requirement causes some error, remove the version from that requirement (ex. convert `anyjson==0.3.3` to `anyjson`) and run the above command again. +* Make migrations `$ python manage.py makemigrations` +* Migrate the changes to the database `$ python manage.py migrate` +* Run the server `$ python manage.py runserver` +* Create admin `$ python manage.py createsuperuser` +* Create tables `$ python manage.py migrate --run-syncdb` + +## Contributing -## Contributing - * Create a new branch with a related name of the motive. Branch name should follow these conventions. - - `feature/*` if you're implementing a new feature or adding some new functionality. - - `refactor/*` if you're refactoring code or upgrading anything. - - `bug/*` if you've fixed a bug that's not deployed onto Production yet. - - `hotfix/*` if you've fixed a bug that is deployed and/or causing problems in Production. - - Note: DON'T push to `master` or `release` branch. - * Use an IDE linter, like **SonarLint**, to fix common bugs/code quality issues. - * Update your task's status in the provided spreadsheet. - * Send a pull request anytime :) - +* Create a new branch with a related name of the motive. Branch name should follow these conventions. + - `feature/*` if you're implementing a new feature or adding some new functionality. + - `refactor/*` if you're refactoring code or upgrading anything. + - `bug/*` if you've fixed a bug that's not deployed onto Production yet. + - `hotfix/*` if you've fixed a bug that is deployed and/or causing problems in Production. + - Note: DON'T push to `master` or `release` branch. +* Use an IDE linter, like **SonarLint**, to fix common bugs/code quality issues. +* Update your task's status in the provided spreadsheet. +* Send a pull request anytime :) diff --git a/applications/events_news/views.py b/applications/events_news/views.py index c0089de..dce9872 100644 --- a/applications/events_news/views.py +++ b/applications/events_news/views.py @@ -9,15 +9,13 @@ from itertools import chain -# Create your views here. +# Create your views here........ def events(request): now = timezone.now() events = Event.objects.filter(start_date__gte=now).order_by('start_date').annotate(Count('attendees__user_id')) # events_current = Event.objects.filter(start_date__lt=now).filter(end_date__gte=now).order_by('start_date') - events_completed = Event.objects.filter(end_date__lt=now).order_by('-start_date').annotate( - Count('attendees__user_id')) - events_ongoing = Event.objects.filter(start_date__lte=now, end_date__gte=now).order_by('start_date').annotate( - Count('attendees__user_id')) + events_completed = Event.objects.filter(end_date__lt=now).order_by('-start_date').annotate( Count('attendees__user_id')) + events_ongoing = Event.objects.filter(start_date__lte=now, end_date__gte=now).order_by('start_date').annotate( Count('attendees__user_id')) events_to_display = list(chain(events_ongoing, events, events_completed)) return render(request, "events_news/index.html", {'events': events_to_display}) diff --git a/applications/members/views.py b/applications/members/views.py index 9547a27..9e726db 100644 --- a/applications/members/views.py +++ b/applications/members/views.py @@ -51,6 +51,8 @@ def branch(request, programme, year, branch): # def sacbody(request): # return redirect('members:alumnibody') + +# this is the function which returns all the alumni body member details statically ..... def alumnibody(request): return render(request, "members/alumnibody.html") diff --git a/static/AlumniConnect/img/people/Akash.jpg b/static/AlumniConnect/img/people/Akash.jpg new file mode 100644 index 0000000..6123697 Binary files /dev/null and b/static/AlumniConnect/img/people/Akash.jpg differ diff --git a/static/AlumniConnect/img/people/BroteenDas.jpg b/static/AlumniConnect/img/people/BroteenDas.jpg new file mode 100644 index 0000000..449af4f Binary files /dev/null and b/static/AlumniConnect/img/people/BroteenDas.jpg differ diff --git a/static/AlumniConnect/img/people/Mayuk.jpg b/static/AlumniConnect/img/people/Mayuk.jpg new file mode 100644 index 0000000..77d36d5 Binary files /dev/null and b/static/AlumniConnect/img/people/Mayuk.jpg differ diff --git a/static/AlumniConnect/img/people/Spandan.jpg b/static/AlumniConnect/img/people/Spandan.jpg new file mode 100644 index 0000000..d9d20c8 Binary files /dev/null and b/static/AlumniConnect/img/people/Spandan.jpg differ diff --git a/templates/members/alumnibody.html b/templates/members/alumnibody.html index 6332528..9283aee 100644 --- a/templates/members/alumnibody.html +++ b/templates/members/alumnibody.html @@ -1,575 +1,642 @@ {% extends 'globals/base.html' %} {% load static %} -{% block title %} - Alumni Connect +{% block title %} +Alumni Connect {% endblock %} {% block css %} - + {% endblock %} {% block body %} - - {% include 'globals/navbar.html' %} -
+ +{% include 'globals/navbar.html' %} +
-
-
+
+
-
-

- ALUMNI CONNECT -

-
+
+

+ ALUMNI CONNECT +

+
-
-
- -
-
-
-
- +
+
+
+
+

card image

+

Prof. Bhartendu K Singh

+

Director

- --> -

Patrons


-
- -
-
-
-
-

card image

-

Prof. Bhartendu K Singh

-

Director

-
-
-
+
+
+ + + +
+
+
+
+

card image

+

Prof. Puneet Tandon

+

Prof. In-Charge, Alumni Cell

+
- - - -
-
-
-
-

card image

-

Prof. Puneet Tandon

-

Prof. In-Charge, Alumni Cell

-
+
+
+ + + +
+
+
+
+

card image

+

Mr. Omvir Singh Bhadauria

+

Assistant Registrar

-
+
- - - -
-
-
-
-

card image

-

Mr. Omvir Singh Bhadauria

-

Assistant Registrar

-
+
+ + + +
+
+
+
+

card image

+

Mr. Anil Kumar

+

Junior Superintendent
Office of Alumni Affairs

-
+
- - - -
-
-
-
-

card image

-

Mr. Anil Kumar

-

Junior Superintendent
Office of Alumni Affairs

-
+
+
+ +

Team


+
+ + + + + +
+
+
+
+

card image

+

Mihir Solanki

+

Head - Web Team

+

B.Tech (CSE)
Batch of 2024

+

+

+ + + +

+

-
+
+ -

Team


-
- - -
-
-
-
-

card image

-

Tushar Maheshwari

-

Head - Web Team

-

B.Tech (CSE)
Batch of 2023

-

-

- - - -

-

-
+ + +
+
+
+
+

card image

+

Srijan Singh

+

Web Team(Design)

+

B.Tech (ME)
Batch of 2024

+

+

+ + + +

+

-
+
- - - -
-
-
-
-

card image

-

Chirag Sharma

-

Web Team

-

B.Tech (CSE)
Batch of 2023

-

-

- - - -

-

-
+
+ + + + +
+
+
+
+

card image

+

Mayuk Sarkar

+

Web Team

+

B.Tech (CSE)
Batch of 2025

+

+

+ + + +

+

+
- - - - -
-
-
-
-

card image

-

Samay Sagar

-

Web Team

-

B.Tech (CSE)
Batch of 2024

-

-

- - - -

-

-
+ + + +
+
+
+
+

card image

+

Akash Kumar Sah

+

Web Team

+

B.Tech (CSE)
Batch of 2026

+

+

+ + + +

+

-
+
- - - - -
-
-
-
-

card image

-

Saksham Yadav

-

Web Team

-

B.Tech (CSE)
Batch of 2024

-

-

- - - -

-

-
+
+ + + +
+
+
+
+

card image

+

Spandan Ghosh

+

Web Team

+

B.Tech (CSE)
Batch of 2026

+

+

+ + + +

+

-
+
- - - - -
-
-
-
-

card image

-

Mohit Chouhan

-

Web Team

-

B.Tech (CSE)
Batch of 2024

-

-

- - - -

-

-
+
+ + + +
+
+
+
+

card image

+

Broteen Das

+

Web Team

+

B.Tech (SM)
Batch of 2026

+

+

+ + + +

+

-
+
- - - -
-
-
-
-

card image

-

Srijan Singh

-

Web Team(Design)

-

B.Tech (ME)
Batch of 2024

-

-

- - - -

-

-
+
+ + + + + + +
+

Previous Team


+
+ + +
+
+
+
+

card image

+

Shivansh Dhiman

+

Web Team

+

B.Tech (CSE)
Batch of 2021

+

+

+ + + +

+

+
+ + - - -
-
-
-
-

card image

-

Mihir Solanki

-

Web Team

-

B.Tech (CSE)
Batch of 2024

-

-

- - - -

-

-
+ +
+
+
+
+

card image

+

Meru Patel

+

Web Team

+

B.Tech (CSE)
Batch of 2021

+

+

+ + + +

+

+
- - -
-
-
-
-

card image

-

Divyansh Khetan

-

Web Team

-

B.Tech (CSE)
Batch of 2024

-

-

- - - -

-

-
+ + +
+
+
+
+

card image

+

Priyansh Garg

+

Web Team

+

B.Tech (CSE)
Batch of 2022

+

+

+ + + + +

+

+
- + + +
+
+
+
+

card image

+

Animesh Kumar

+

Web Team

+

B.Tech (CSE)
Batch of 2023

+

+

+ + + +

+

+
+
+
+
- - + + +
+
+
+
+

card image

+

Tushar Maheshwari

+

Web Team

+

B.Tech (CSE)
Batch of 2023

+

+

+ + + +

+

+
+
+
-

Previous Team


-
- - -
-
-
-
-

card image

-

Priyansh Garg

-

Web Team

-

B.Tech (CSE)
Batch of 2022

-

-

- - - - -

-

-
+ + + +
+
+
+
+

card image

+

Chirag Sharma

+

Web Team

+

B.Tech (CSE)
Batch of 2023

+

+

+ + + +

+

+
- - - -
-
-
-
-

card image

-

Animesh Kumar

-

Web Team

-

B.Tech (CSE)
Batch of 2023

-

-

- - - -

-

-
+ + +
+
+
+
+

card image

+

Samay Sagar

+

Web Team

+

B.Tech (CSE)
Batch of 2024

+

+

+ + + +

+

+
- - -
-
-
-
-

card image

-

Shivansh Dhiman

-

Web Team

-

B.Tech (CSE)
Batch of 2021

-

-

- - - -

-

-
+ + + +
+
+
+
+

card image

+

Saksham Yadav

+

Web Team

+

B.Tech (CSE)
Batch of 2024

+

+

+ + + +

+

+
+ + - - - -
-
-
-
-

card image

-

Meru Patel

-

Web Team

-

B.Tech (CSE)
Batch of 2021

-

-

- - - -

-

-
+ +
+
+
+
+

card image

+

Mohit Chouhan

+

Web Team

+

B.Tech (CSE)
Batch of 2024

+

+

+ + + +

+

+
+ + + + +
+
+
+
+

card image

+

Divyansh Khetan

+

Web Team

+

B.Tech (CSE)
Batch of 2024

+

+

+ + + +

+

+
+
+
+
- +
-
- {% include 'globals/footer.html' %} -{% endblock %} + +{% include 'globals/footer.html' %} +{% endblock %} \ No newline at end of file