Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 73967b81 authored by Rikza Kurnia Almujtaba Lubis's avatar Rikza Kurnia Almujtaba Lubis
Browse files
parents 377baf82 53860ddc
No related branches found
No related tags found
No related merge requests found
Showing
with 95 additions and 0 deletions
# Default ignored files
/shelf/
/workspace.xml
<?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
<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
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?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
<?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
<?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
...@@ -27,6 +27,8 @@ DEBUG = True ...@@ -27,6 +27,8 @@ DEBUG = True
ALLOWED_HOSTS = [ ALLOWED_HOSTS = [
'a4-logistik.up.railway.app', 'a4-logistik.up.railway.app',
'localhost',
'127.0.0.1',
# Add any other allowed hosts here if needed # Add any other allowed hosts here if needed
] ]
...@@ -42,6 +44,7 @@ INSTALLED_APPS = [ ...@@ -42,6 +44,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'landing_page', 'landing_page',
'example_app', 'example_app',
'purchase_requisition',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -20,4 +20,5 @@ urlpatterns = [ ...@@ -20,4 +20,5 @@ urlpatterns = [
path('', include('example_app.urls')), path('', include('example_app.urls')),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('example_app/', include('example_app.urls')), path('example_app/', include('example_app.urls')),
path('pr/', include('purchase_requisition.urls'))
] ]
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class PurchaseRequisitionConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'purchase_requisition'
from django.db import models
# Create your models here.
<h1>
Hello world!
</h1>
\ No newline at end of file
from django.test import TestCase
# Create your tests here.
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
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment