Skip to content

Commit 068e53e

Browse files
fixed urls.py
1 parent 7fde0be commit 068e53e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

codeGen/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818

1919
urlpatterns = [
2020
path('admin/', admin.site.urls),
21-
path('optimizer/', include(('optimizer.urls', 'optimizer'), namespace='optimizer')),
21+
path('', include(('optimizer.urls', 'optimizer'), namespace='optimizer')),
2222
]

optimizer/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def writeOutputNormal(self):
1111
if self.in_code is not None:
1212
with open("input.c", "w") as f:
1313
f.write(self.in_code)
14-
subprocess.check_output(["./a.out", "input.c"])
14+
# TODO : UNCOMMENT FOLLOWING LINE
15+
# subprocess.check_output(["./a.out", "input.c"])
1516

1617
def optimizeCodeFromFile(self, fileName):
1718
with open(fileName, 'r') as readFile:

0 commit comments

Comments
 (0)