@app.route("/")
def index():
return "Index page!"
@app.route("/other/page")
def other_page():
return "Other page!"
@app.route("/yet/another/page")
def another_page():
return "yet another page!"
if not request.user.pk == user_pk:
raise PermissionDenied
I'm having trouble serving static files. My index.html
page loads fine, albeit without style.
{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
<title>vivi</title>
<link rel="stylesheet" type="text/css" href="{% static "/vivi/bower_components/bootstrap/dist/css/bootstrap.min.css" %}">
and my files are in vivi/static/vivi/
but it says "404" when i load the page
/
after static "