Skip to content

Instantly share code, notes, and snippets.

View KayoticSully's full-sized avatar

Ryan Sullivan KayoticSully

View GitHub Profile
@KayoticSully
KayoticSully / hooks.ts
Created December 7, 2021 16:03
SvelteKit svelte-kit-cookie-session problem example code
import { handleSession } from "svelte-kit-cookie-session";
import { auth0Domain } from '$lib/env';
/** @type {import('@sveltejs/kit').GetSession} */
export async function getSession({ locals }) {
return locals.session.data;
}
export const handle = handleSession({ secret: "SOME_COMPLEX_SECRET_AT_LEAST_32_CHARS" });
<link href="../core-animated-pages/core-animated-pages.html" rel="import">
<link href="../core-animated-pages/transitions/hero-transition.html" rel="import">
<link href="../core-animated-pages/transitions/cross-fade.html" rel="import">
<link href="../core-animated-pages/transitions/slide-down.html" rel="import">
<link href="../core-animated-pages/transitions/slide-up.html" rel="import">
<link href="../core-animated-pages/transitions/tile-cascade.html" rel="import">
<polymer-element name="music-demo">
<template>
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@KayoticSully
KayoticSully / Error.txt
Last active December 26, 2015 22:39
Basic urls.py from the Django tutorial
Page not found (404)
Request Method: GET
Request URL: http://10.0.0.133/admin/
Using the URLconf defined in kdownloader.urls, Django tried these URL patterns, in this order:
^admin/
The current URL, , didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.