diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..26d33521af10bcc7fd8cea344038eaaeb78d0ef5 --- /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 0000000000000000000000000000000000000000..5c18fafae7122e5b86b6f122a5466b30c32298d2 --- /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 0000000000000000000000000000000000000000..8984fe84114390055404b8bfa05910d23ef7ea9c --- /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 0000000000000000000000000000000000000000..105ce2da2d6447d11dfe32bfb846c3d5b199fc99 --- /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 0000000000000000000000000000000000000000..39251827efd731c49929d29b8dab652a3924f3c0 --- /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 0000000000000000000000000000000000000000..fff0f802a10cf946f08c9bbbfe5c070d8deb68ca --- /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 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53 --- /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 d46baa8d043667a57e40abc1cbb157813fb876fb..7d6220dff41b425b38d45581dd26e2de8a8497cb 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 cecdf7196bdf67e185c170e09ef3b6a20d06e00f..703657ec63c803463b7fea4933aed169d86c7e67 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 0000000000000000000000000000000000000000..bf83c51fb28aa2559312e8590930b6ece5b0bfb0 --- /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 0000000000000000000000000000000000000000..05896329f73d194c49537e8dba91777e77a02773 --- /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 91ea44a218fbd2f408430959283f0419c921093e..fe4542eb838528dc7aac8ac6612d256cc89dfc2e 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