|
|
|
|
@ -5,17 +5,11 @@ from django.views.static import serve |
|
|
|
|
from lms import views |
|
|
|
|
from lms import settings |
|
|
|
|
from access.views import profile_view |
|
|
|
|
from django.http import HttpResponse |
|
|
|
|
|
|
|
|
|
def show_oferta(request): |
|
|
|
|
with open('oferta.pdf', 'rb') as pdf: |
|
|
|
|
response = HttpResponse(pdf.read(), content_type='application/pdf') |
|
|
|
|
response['Content-Disposition'] = 'filename=oferta.pdf' |
|
|
|
|
return response |
|
|
|
|
|
|
|
|
|
urlpatterns = [ |
|
|
|
|
url(r'^$', views.index), |
|
|
|
|
url(r'^oferta/', show_oferta), |
|
|
|
|
url(r'^oferta/', views.show_oferta), |
|
|
|
|
url(r'^test/$', views.test), |
|
|
|
|
url(r'^all_comments/$', views.all_comments), |
|
|
|
|
url(r'^reports/$', views.new_reports), |
|
|
|
|
|