From d94aa71ffdae29fd5f1f3f43141d34f831787089 Mon Sep 17 00:00:00 2001
From: Reyhan Vivaldi Adrian <reyhanvivaldi@reyv-2.local>
Date: Sat, 24 Feb 2024 14:10:48 +0700
Subject: [PATCH] Configure app settings

---
 .idea/.gitignore                                |  3 +++
 .idea/a4-logistik.iml                           | 17 +++++++++++++++++
 .idea/inspectionProfiles/Project_Default.xml    | 14 ++++++++++++++
 .idea/inspectionProfiles/profiles_settings.xml  |  6 ++++++
 .idea/misc.xml                                  |  6 ++++++
 .idea/modules.xml                               |  8 ++++++++
 .idea/vcs.xml                                   |  6 ++++++
 project_a4_logistik/settings.py                 |  3 +++
 project_a4_logistik/urls.py                     |  1 +
 purchase_requisition/templates/hello_world.html |  3 +++
 purchase_requisition/urls.py                    |  8 ++++++++
 purchase_requisition/views.py                   |  2 ++
 12 files changed, 77 insertions(+)
 create mode 100644 .idea/.gitignore
 create mode 100644 .idea/a4-logistik.iml
 create mode 100644 .idea/inspectionProfiles/Project_Default.xml
 create mode 100644 .idea/inspectionProfiles/profiles_settings.xml
 create mode 100644 .idea/misc.xml
 create mode 100644 .idea/modules.xml
 create mode 100644 .idea/vcs.xml
 create mode 100644 purchase_requisition/templates/hello_world.html
 create mode 100644 purchase_requisition/urls.py

diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 00000000..26d33521
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/a4-logistik.iml b/.idea/a4-logistik.iml
new file mode 100644
index 00000000..5c18fafa
--- /dev/null
+++ b/.idea/a4-logistik.iml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="PYTHON_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$">
+      <excludeFolder url="file://$MODULE_DIR$/env" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+  <component name="PyDocumentationSettings">
+    <option name="format" value="PLAIN" />
+    <option name="myDocStringFormat" value="Plain" />
+  </component>
+  <component name="TestRunnerService">
+    <option name="PROJECT_TEST_RUNNER" value="py.test" />
+  </component>
+</module>
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 00000000..8984fe84
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,14 @@
+<component name="InspectionProjectProfileManager">
+  <profile version="1.0">
+    <option name="myName" value="Project Default" />
+    <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
+      <option name="ignoredPackages">
+        <value>
+          <list size="1">
+            <item index="0" class="java.lang.String" itemvalue="psycopg2-binary" />
+          </list>
+        </value>
+      </option>
+    </inspection_tool>
+  </profile>
+</component>
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 00000000..105ce2da
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+<component name="InspectionProjectProfileManager">
+  <settings>
+    <option name="USE_PROJECT_PROFILE" value="false" />
+    <version value="1.0" />
+  </settings>
+</component>
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 00000000..39251827
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="PyCharmProfessionalAdvertiser">
+    <option name="shown" value="true" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 00000000..fff0f802
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/a4-logistik.iml" filepath="$PROJECT_DIR$/.idea/a4-logistik.iml" />
+    </modules>
+  </component>
+</project>
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 00000000..35eb1ddf
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/project_a4_logistik/settings.py b/project_a4_logistik/settings.py
index d46baa8d..7d6220df 100644
--- a/project_a4_logistik/settings.py
+++ b/project_a4_logistik/settings.py
@@ -27,6 +27,8 @@ DEBUG = True
 
 ALLOWED_HOSTS = [
     'a4-logistik.up.railway.app',
+    'localhost',
+    '127.0.0.1',
     # Add any other allowed hosts here if needed
 ]
 
@@ -42,6 +44,7 @@ INSTALLED_APPS = [
     'django.contrib.staticfiles',
     'landing_page',
     'example_app',
+    'purchase_requisition',
 ]
 
 MIDDLEWARE = [
diff --git a/project_a4_logistik/urls.py b/project_a4_logistik/urls.py
index cecdf719..703657ec 100644
--- a/project_a4_logistik/urls.py
+++ b/project_a4_logistik/urls.py
@@ -20,4 +20,5 @@ urlpatterns = [
     path('', include('example_app.urls')),
     path('admin/', admin.site.urls),
     path('example_app/', include('example_app.urls')),
+    path('pr/', include('purchase_requisition.urls'))
 ]
diff --git a/purchase_requisition/templates/hello_world.html b/purchase_requisition/templates/hello_world.html
new file mode 100644
index 00000000..bf83c51f
--- /dev/null
+++ b/purchase_requisition/templates/hello_world.html
@@ -0,0 +1,3 @@
+<h1>
+    Hello world!
+</h1>
\ No newline at end of file
diff --git a/purchase_requisition/urls.py b/purchase_requisition/urls.py
new file mode 100644
index 00000000..05896329
--- /dev/null
+++ b/purchase_requisition/urls.py
@@ -0,0 +1,8 @@
+from django.urls import path
+from purchase_requisition.views import *
+
+app_name = 'purchase_requisiton'
+
+urlpatterns = [
+    path('', hello_world, name='hello_world'),
+]
\ No newline at end of file
diff --git a/purchase_requisition/views.py b/purchase_requisition/views.py
index 91ea44a2..fe4542eb 100644
--- a/purchase_requisition/views.py
+++ b/purchase_requisition/views.py
@@ -1,3 +1,5 @@
 from django.shortcuts import render
 
 # Create your views here.
+def hello_world(request):
+    return render(request, "hello_world.html")
\ No newline at end of file
-- 
GitLab