diff --git a/CDC_Backend/APIs/admin.py b/CDC_Backend/APIs/admin.py
index 0ea3511..08ac51b 100644
--- a/CDC_Backend/APIs/admin.py
+++ b/CDC_Backend/APIs/admin.py
@@ -79,6 +79,25 @@ class Student(StudentAdmin):
queryset.update(can_apply=True)
self.message_user(request, "Registered the users")
+class PlacementResources(resources.ModelResource):
+ class Meta:
+ model = Placement
+ exclude = ('id','changed_by', 'is_company_details_pdf', 'is_description_pdf',
+ 'is_compensation_details_pdf', 'is_selection_procedure_details_pdf')
+class AdminAdmin(ExportMixin, SimpleHistoryAdmin):
+ resource_class = PlacementResources
+
+
+class PlacementResources(resources.ModelResource):
+ class Meta:
+ model = Placement
+ exclude = ('id', 'changed_by', 'is_company_details_pdf', 'is_description_pdf',
+ 'is_compensation_details_pdf', 'is_selection_procedure_details_pdf')
+
+
+class AdminAdmin(ExportMixin, SimpleHistoryAdmin):
+ resource_class = PlacementResources
+
class PlacementResources(resources.ModelResource):
class Meta:
diff --git a/CDC_Backend/APIs/utils.py b/CDC_Backend/APIs/utils.py
index 244e63c..2ab023a 100644
--- a/CDC_Backend/APIs/utils.py
+++ b/CDC_Backend/APIs/utils.py
@@ -326,7 +326,7 @@ def send_opening_notifications(placement_id):
"company_name": placement.company_name,
"opening_type": 'Placement',
"designation": placement.designation,
- "deadline": placement.deadline_datetime.strftime("%Y-%m-%d %H:%M:%S"),
+ "deadline": placement.deadline_datetime.strftime("%A, %-d %B %Y, %-I:%M %p"),
"link": PLACEMENT_OPENING_URL.format(id=placement.id)
}
sendEmail(student_user.email, subject, data, NOTIFY_STUDENTS_OPENING_TEMPLATE)
diff --git a/README.md b/README.md
index a4495bb..bae49a2 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,8 @@ python# CDC - Backend
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`
+ `.\venv\Scripts\activate` (for WINDOWS)
+ `source ./venv/bin/activate` (for LINUX)
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**
@@ -17,7 +18,8 @@ python# CDC - Backend
### Running the Application
1. Activate the environment with this command.
- `.\venv\Scripts\activate`
+ `.\venv\Scripts\activate` (for WINDOWS)
+ `source ./venv/bin/activate` (for LINUX)
2. Start the application by running this command (_Run the command where [manage.py](./CDC_Backend/manage.py) is
located_)
` python manage.py runserver`
diff --git a/doc/setup/postgres.md b/doc/setup/postgres.md
new file mode 100644
index 0000000..d3dba5e
--- /dev/null
+++ b/doc/setup/postgres.md
@@ -0,0 +1,16 @@
+typical conf file for pg_hba.conf for dev work.
+
+
+# TYPE DATABASE USER ADDRESS METHOD
+
+# "local" is for Unix domain socket connections only
+local all all md5
+# IPv4 local connections:
+host all all 127.0.0.1/32 md5
+# IPv6 local connections:
+host all all ::1/128 md5
+# Allow replication connections from localhost, by a user with the
+# replication privilege.
+local replication all peer
+host replication all 127.0.0.1/32 ident
+host replication all ::1/128 ident
\ No newline at end of file