MVPEEEE #7

Merged
andrewlalis merged 36 commits from develop into master 2018-10-01 14:53:24 +00:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit fbacc83527 - Show all commits

View File

@ -15,8 +15,19 @@ Including another URLconf
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import re_path,path,include from django.urls import re_path,path,include
from django.conf.urls import url
from django.contrib.staticfiles.views import serve
from django.views.generic import RedirectView
urlpatterns = [ urlpatterns = [
# / routes to index2.html
url(r'^$', serve, kwargs={'path': 'index2.html'}),
# static files (*.css, *.js, *.jpg etc.) served on /
# (assuming Django uses /static/ and /media/ for static/media urls)
url(r'^(?!/?static/)(?!/?media/)(?P<path>.*\..*)$',
RedirectView.as_view(url='/static/%(path)s', permanent=False)),
# /universities/1/ Shows the page for a university. # /universities/1/ Shows the page for a university.
# TODO: add pages for each rateable entity. # TODO: add pages for each rateable entity.
path('admin/', admin.site.urls), path('admin/', admin.site.urls),