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

alumni-body updated #115

Open
wants to merge 2 commits into
base: master
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
59 changes: 29 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/<your-github-username>/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/<your-github-username>/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 :)
8 changes: 3 additions & 5 deletions applications/events_news/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down
2 changes: 2 additions & 0 deletions applications/members/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
Binary file added static/AlumniConnect/img/people/Akash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/AlumniConnect/img/people/BroteenDas.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/AlumniConnect/img/people/Mayuk.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/AlumniConnect/img/people/Spandan.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading