Skip to content

Commit

Permalink
init django api server
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-ivanov committed Aug 30, 2018
1 parent 5e57edf commit f5ed58b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion rocket_league_ai_backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
.idea
restapi/rocketleague.cfg
5 changes: 2 additions & 3 deletions rocket_league_ai_backend/backendsite/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from django.conf.urls import url, include
from django.conf.urls.static import static
from django.conf import settings
from django.conf.urls.defaults import *


# Wire up our API using automatic URL routing.
Expand All @@ -29,5 +28,5 @@
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

urlpatterns += url(r'^$', 'django.contrib.staticfiles.views.serve', kwargs={
'path': 'index.html', 'document_root': settings.STATIC_ROOT})
# urlpatterns += url(r'^$', 'django.contrib.staticfiles.views.serve', kwargs={
# 'path': 'index.html', 'document_root': settings.STATIC_ROOT})
Binary file modified rocket_league_ai_backend/db.sqlite3
Binary file not shown.

0 comments on commit f5ed58b

Please sign in to comment.