Go to file
Samriddha Chattopadhyay Chattopadhyay cc1a7e5d4f
Requested changes made. (#35)
* Update admin.py

* Bump google-auth from 2.0.0 to 2.3.0

Bumps [google-auth](https://github.com/googleapis/google-auth-library-python) from 2.0.0 to 2.3.0.
- [Release notes](https://github.com/googleapis/google-auth-library-python/releases)
- [Changelog](https://github.com/googleapis/google-auth-library-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-auth-library-python/compare/v2.0.0...v2.3.0)

---
updated-dependencies:
- dependency-name: google-auth
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Create greetings.yml

* Bump astroid from 2.8.3 to 2.8.4

Bumps [astroid](https://github.com/PyCQA/astroid) from 2.8.3 to 2.8.4.
- [Release notes](https://github.com/PyCQA/astroid/releases)
- [Changelog](https://github.com/PyCQA/astroid/blob/main/ChangeLog)
- [Commits](https://github.com/PyCQA/astroid/compare/v2.8.3...v2.8.4)

---
updated-dependencies:
- dependency-name: astroid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump google-auth from 2.3.0 to 2.3.1

Bumps [google-auth](https://github.com/googleapis/google-auth-library-python) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/googleapis/google-auth-library-python/releases)
- [Changelog](https://github.com/googleapis/google-auth-library-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-auth-library-python/compare/v2.3.0...v2.3.1)

---
updated-dependencies:
- dependency-name: google-auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Email templates added

* Delete greetings.yml

* Delete greetings.yml

* Bump google-auth from 2.3.1 to 2.3.2

Bumps [google-auth](https://github.com/googleapis/google-auth-library-python) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/googleapis/google-auth-library-python/releases)
- [Changelog](https://github.com/googleapis/google-auth-library-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-auth-library-python/compare/v2.3.1...v2.3.2)

---
updated-dependencies:
- dependency-name: google-auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Requested Changes made

Changed the Message like this:
```Congratulations, You have been selected for the {designation} at {company_name}.```
and removed additional fields

* Requested Changes made

Change the message to this
```We regret to inform you that you have not been selected for {designation} role at {company_name}. CDC will keep bringing more such opportunities for you in the future.```
and removed additional optional fields.

Co-authored-by: CDC-IITDH <76999613+CDC-IITDH@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-30 11:43:49 +05:30
.github Delete codacy-analysis.yml 2021-10-22 21:15:55 +05:30
CDC_Backend Requested changes made. (#35) 2021-10-30 11:43:49 +05:30
.gitignore Initial Commit 2021-10-15 20:47:23 +05:30
README.md Initial Commit 2021-10-15 20:47:23 +05:30
requirements.txt Requested changes made. (#35) 2021-10-30 11:43:49 +05:30

README.md

CDC - Backend


Setup

  1. Download the Repository to your local machine
  2. Create a Virtual Environment in the CDC_Backend folder with this command below
    python -m venv venv
  3. Activate the environment with this command
    .\venv\Scripts\activate
  4. Install the dependencies
    pip install -r requirements.txt
  5. Ensure that you have the PostgreSQL installed on your machine and is running on PORT 5432
  6. Make sure to give the correct database credentials in settings.py

Running the Application

  1. Activate the environment with this command.
    .\venv\Scripts\activate
  2. Start the application by running this command (Run the command where manage.py is located)
    python manage.py runserver

Accessing the Admin Panel

  1. You can access the admin panel by running the server and opening http://localhost:8000/admin
  2. Run python manage.py createsuperuser to create a user to access the admin panel.
  3. Set up the Username and Password
  4. You can log in and change the database values anytime.

Deploying

  1. Add the hosted domain name in ALLOWED_HOSTS in settings.py
  2. Update the CORS_ORIGIN_WHITELIST list and CORS_ORIGIN_ALLOW_ALL variable

API Reference

Check here for Api Reference