ページの作成

ページの作成

親となるページを選択してください。

ページは必ず何かしらの親ページに紐づきます。
親ページに紐づくページを子ページといいます。
例: 親=スポーツ, 子1=サッカー, 子2=野球

子ページを親ページとして更に子ページを作成することも可能です。
例: 親=サッカー, 子=サッカーのルール

親ページはいつでも変更することが可能なのでとりあえず作ってみましょう!
テンプレートを更新

15. djangoにおける静的(static)ファイルの置き場所と読み込み(画像、css、js )

静的ファイル(画像、css、js )を格納するディレクトリ作成

アプリケーションフォルダ直下に static フォルダを作成し、さらに static フォルダ 直下に アプリケーション名フォルダを作成する。(staticファイルへアクセスする際のURLを一意にするためのお作法)

以下、アプリケーション名がapp1の場合の例

app1

    -- static

        -- app1

            -- css

            -- js

            -- img

css, js, imgフォルダを作成してその配下にそれぞれのファイルを格納する。

以下のURLで静的ファイルにアクセスすることができる。

「localhost/static/app1/css/sample.css

 

テンプレートからの読み込み

テンプレート(htmlファイル)から静的ファイルを読み込む場合は以下のように指定する。

{% load static %}

<link rel="stylesheet" href="{% static 'app1/css/sample.css' %}" />

 

子ページ
子ページはありません
同階層のページ
  1. 環境構築とプロジェクト/アプリの作成
  2. MVC(MVT)のそれぞれの使い方と説明
  3. データベースへの接続と操作
  4. Django Administration
  5. git管理
  6. エラー一覧
  7. バージョンの確認方法
  8. ログ出力方法
  9. SQLのログ出力方法
  10. ログのローテート設定
  11. settings.pyの定数にアクセスする方法
  12. 本番環境へのインストールとアプリのデプロイ(apache編)
  13. 本番環境へのインストールとアプリのデプロイ(nginx編)
  14. djangoアプリの本番の開始URLを変更する
  15. 静的(static)ファイルの置き場所と読み込み(画像、css、js )
  16. CSRFトークンをAjaxで使用する方法
  17. ajaxの使用例(POST編)
  18. ファイルのアップロードとファイルの名前
  19. クイックスタート/チュートリアル
  20. ログイン機能
  21. テンプレート側のログイン判定
  22. ビュー側のログイン判定
  23. 管理者ユーザーの作成/判定と管理画面
  24. モデルのjson化とレスポンス
  25. runserverでポートを指定する方法
  26. cronによるバッチ実行
  27. テンプレートで利用する共通のcontextを定義する方法
  28. プログラムが本番サーバーで反映されない場合の対処法
  29. APIの作成

最近の質問

コメント一覧

    No.103 | guest | 2022-06-25 08:32:23

    free video poker slots <a href=https://www-slotmachines.com>my konami slots</a> slot machine games

    No.102 | guest | 2022-06-24 12:38:10

    free vegas slots <a href=https://slotmachinesworld.com>slot machine email</a> slots

    No.101 | guest | 2022-06-23 16:27:51

    free slots win real money <a href=https://slotmachinesforum.net>slotss</a> free unique casino

    No.100 | guest | 2022-06-22 20:29:36

    casino slots <a href=https://slotmachinescasinos.com>omg fortune free slots</a> play pop slots

    No.99 | guest | 2022-06-22 02:57:47

    quick hit slots free <a href=https://slotmachinescafe.com>caesart slots</a> wms slots

    No.98 | guest | 2022-06-21 04:32:36

    casino slots real money <a href=https://slotmachineonlinegratis.org>slot machine games</a> casino jackpots

    No.97 | guest | 2022-06-20 07:57:49

    old vegas slots games <a href=https://slotmachinegameinfo.com>free slots real cash</a> hawk play casino

    No.96 | guest | 2022-06-19 10:36:45

    scatter slots girls <a href=https://slotmachinegambler.com>penny slots 4u</a> vegas 7 online casino

    No.95 | guest | 2022-06-18 13:12:59

    slot onlen <a href=https://pennyslotmachines.org>williams interactive slots</a> free jackpot party slots downloads

    No.94 | guest | 2022-06-17 15:46:06

    operation slots <a href=https://giocoslotmachinegratis.com>vegas world slots online</a> scatter slots characters

    No.93 | guest | 2022-06-16 19:55:29

    free vegas world slots <a href=https://freeonlneslotmachine.com>casino jackpot</a> wind creek casino free play online

    No.92 | guest | 2022-06-16 00:55:01

    poker slots free <a href=https://download-slot-machines.com>slots era cheats</a> free slots just for fun

    No.91 | guest | 2022-06-14 19:32:13

    djangoにおける静的(static)ファイルの置き場所と読み込み(画像、css、js ) - IT技術総合Wiki | CWiki omirhqnl http://www.g8yd29ohj52za18y947d05t85yt8s0lms.org/ [url=http://www.g8yd29ohj52za18y947d05t85yt8s0lms.org/]uomirhqnl[/url] <a href="http://www.g8yd29ohj52za18y947d05t85yt8s0lms.org/">aomirhqnl</a>

    No.90 | guest | 2022-06-14 17:04:54

    gsn casino slots <a href=https://candylandslotmachine.com>play caesars free slots online</a> pop slots

    No.89 | guest | 2022-06-13 20:58:37

    las vegas casino slots <a href=https://beat-slot-machines.com>100 most popular free slots</a> slot onlen

    No.88 | guest | 2022-06-13 00:44:55

    freevegaspennyslots <a href=https://411slotmachine.com>777lukislot</a> free slots 12x12

    No.87 | guest | 2022-06-12 04:28:35

    play slots free wolf moon <a href=https://2-free-slots.com>add slots game girls</a> casino slots

    No.86 | guest | 2022-06-09 00:26:23

    quick hit slots free coins <a href=https://411slotmachine.com>best slots near me</a> free vegas penny slots

    No.85 | guest | 2022-06-07 03:43:29

    best free slots with bonus <a href=https://2-free-slots.com>double down free slots</a> free slots on facebook

    No.84 | guest | 2022-05-20 09:21:52

    dissertation writing services mumbai <a href=https://mydissertationwritinghelp.com>dissertation assistance</a> apa 7th edition dissertation example

    No.83 | guest | 2022-05-18 06:17:57

    online dissertation help in malaysia <a href=https://help-with-dissertations.com>help with dissertation research</a> doctoral dissertation help qualitative

    No.82 | guest | 2022-05-16 21:03:06

    how to write a draft dissertation help <a href=https://help-with-dissertations.com>affordable dissertation help</a> dissertation-help writers

    No.81 | guest | 2022-05-15 21:48:14

    dissertation case study <a href=https://helpon-doctoral-dissertations.net>dissertation writing reviews</a> dissertation writing services usa

    No.80 | guest | 2022-05-15 03:56:00

    dissertation acknowlegements <a href=https://dissertationwriting-service.com>best dissertation help</a> dissertation essay help

    No.79 | guest | 2022-05-14 04:35:20

    how many pages is a dissertation <a href=https://dissertations-writing.org>writing a master's dissertation</a> uf thesis and dissertation format

    No.78 | guest | 2022-03-19 10:56:13

    djangoにおける静的(static)ファイルの置き場所と読み込み(画像、css、js ) - IT技術総合Wiki | CWiki [url=http://www.g5h48lj0m2b5t22789nm8t8igni880nws.org/]udsdemolwxn[/url] dsdemolwxn http://www.g5h48lj0m2b5t22789nm8t8igni880nws.org/ <a href="http://www.g5h48lj0m2b5t22789nm8t8igni880nws.org/">adsdemolwxn</a>

    No.77 | guest | 2022-03-16 18:32:23

    djangoにおける静的(static)ファイルの置き場所と読み込み(画像、css、js ) - IT技術総合Wiki | CWiki [url=http://www.gh01g4uvjhx32i66wbp4j77x7662d52ls.org/]urcgmlcrdnx[/url] <a href="http://www.gh01g4uvjhx32i66wbp4j77x7662d52ls.org/">arcgmlcrdnx</a> rcgmlcrdnx http://www.gh01g4uvjhx32i66wbp4j77x7662d52ls.org/

    No.76 | guest | 2022-02-18 17:35:13

    essay outline template <a href=https://yoursuperessay.com/>synthesis essay</a> identity essay

    No.75 | guest | 2022-02-17 15:55:05

    business class vpn <a href=https://windowsvpns.com/>vpn unlimited</a> vpn mac free

    No.74 | guest | 2022-02-16 15:18:35

    free online vpn <a href=https://vpnsrank.com/>vpn ip address free</a> vpn for pc

    No.73 | guest | 2022-02-15 17:46:23

    best vpn for apple tv <a href=https://vpnshroud.com/>whats the best vpn</a> totally free vpn

    No.72 | guest | 2022-02-14 20:00:33

    buy private vpn <a href=https://vpn4torrents.com/>what is avast secure line vpn</a> download free vpn

    No.71 | guest | 2022-02-13 21:22:40

    practice critical thinking test <a href=https://uncriticalthinking.com/>bloom's taxonomy critical thinking</a> critical thinking activities pdf

    No.70 | guest | 2022-02-12 21:42:27

    vpn windows free <a href=https://topvpndeals.net/>best vpn reddit 2019</a> gaming vpn free

    No.69 | guest | 2022-02-11 22:54:56

    thesis examples for essay <a href=https://topessayswriter.com/>college essay helper</a> covid 19 essay

    No.68 | guest | 2022-02-11 00:10:42

    best vpn 2018 reddit <a href=https://tjvpn.net/>best vpn for pubg</a> free vpn firefox

    No.67 | guest | 2022-02-10 01:33:30

    free russian vpn <a href=https://thebestvpnpro.com/>free internet vpn</a> free vpn google chrome

    No.66 | guest | 2022-02-09 03:57:22

    gay men dating sites missouri <a href=https://speedgaydate.com/>gay senior dating san antonio</a> dating advice for gay men

    No.65 | guest | 2022-02-04 15:32:49

    best casino bonuses <a href=https://onlinecasinohero.com/>bonus casino no deposit</a> online casino games real money

    No.64 | guest | 2022-02-03 18:12:35

    vegan keto diet plan <a href=https://ketogenicdiets.net/>getting off keto diet</a> keto diet mayo clinic

    No.63 | guest | 2022-02-02 21:03:25

    atkins diet vs keto <a href=https://ketogenicdietinfo.com/>keto diet for pcos</a> dr josh axe keto diet

    No.62 | guest | 2022-02-01 23:18:11

    keto diet benefits <a href=https://ketogendiets.com/>dirty lazy keto diet</a> keto diet plateau

    No.61 | guest | 2022-02-01 01:49:40

    keto diet carb intake <a href=https://ketogendiet.net/>keto diet program</a> keto diet week 1

    No.60 | guest | 2022-01-31 04:49:24

    spongebob essay <a href=https://howtowriteessaytips.com/>compare contrast essay</a> how to start college essay

    No.59 | guest | 2022-01-30 07:21:52

    reddit gay chat room <a href=https://gaytgpost.com/>gay chat roullete</a> whosaguy gay chat room

    No.58 | guest | 2022-01-29 12:31:17

    gay dating controlling macho <a href=https://gaysugardaddydatingsites.com/>gay hook up dating site</a> gay dating professional bodybuilders

    No.57 | guest | 2022-01-28 20:22:55

    free dating gay black men <a href=https://gayprideusa.com/>gay dating game fuck</a> gay free dating site

    No.56 | guest | 2022-01-28 03:56:01

    gay bdsm dating <a href=https://gaypridee.com/>gay dating simulator tumblr</a> gay mature men dating site

    No.55 | guest | 2022-01-27 11:14:31

    gay dating site s bareback <a href=https://gayfade.com/>gay dating apps described</a> gay on line dating

    No.54 | guest | 2022-01-26 14:12:51

    gay phone chat lines with free trials <a href=https://gay-buddies.com>gay chat rooms</a> gay mature chat

    No.53 | guest | 2022-01-25 15:53:03

    autobiography essay <a href=https://essaysitesreviews.com>argument essay examples</a> how to make essay longer

    No.52 | guest | 2022-01-24 17:18:25

    slavery essay <a href=https://essayscratch.com>essay meaning in spanish</a> mexican essay

    No.51 | guest | 2022-01-23 19:22:51

    critical thinking word puzzles <a href=https://criticalthinkinginstitute.com>critical thinking in social work</a> watson glazer critical thinking test

    No.50 | guest | 2022-01-22 21:07:45

    critical thinking games for kids <a href=https://criticalthinkingbasics.com>critical thinking activities pdf</a> what defines critical thinking skills

    No.49 | guest | 2022-01-21 23:15:16

    an example of critical thinking <a href=https://criticalthinking2020.net>critical thinking and analytical skills</a> what are the 5 critical thinking skills?

    No.48 | guest | 2022-01-21 01:51:44

    best free vpn for windows 2022 <a href=https://choosevpn.net>what does vpn mean</a> mexico vpn free

    No.47 | guest | 2022-01-20 01:32:05

    bbrt gay chat site <a href=https://bjsgaychatroom.info>free gay chat room</a> gay bdsm chat

    No.46 | guest | 2022-01-19 04:56:40

    how to start off an argumentative essay <a href=https://anenglishessay.com>outline for expository essay</a> essay outline

    No.45 | guest | 2022-01-18 05:00:38

    vpn download free <a href=https://addonsvpn.com>free vpn for pc</a> best free vpn mac

    No.44 | guest | 2022-01-01 07:25:17

    career goals essay <a href=https://essaytodo.com/?>exemplification essay</a> essay writing samples

    No.43 | guest | 2021-12-30 05:45:23

    help write essay <a href=https://dollaressays.com/?>causal argument essay</a> descriptive essay examples

    No.42 | guest | 2021-12-28 07:09:28

    narrative essay topics <a href=https://essayprepworkshop.com/?>nazarene college essay</a> writing experience essay

    No.41 | guest | 2021-12-26 23:58:34

    argumentative essay outline <a href=https://checkyouressay.com/?>essay with dialogue example</a> creative writing essay

    No.40 | guest | 2021-12-23 02:10:56

    write a persuasive essay <a href=https://casinogamesmachines.com/?>writing expository essays</a> help writing essay

    No.39 | guest | 2021-12-22 02:42:15

    what to write in a college essay <a href=https://casinoonlinek.com/?>essay writing companies</a> writing an autobiography essay

    No.38 | guest | 2021-12-20 04:38:29

    writing analytical essays <a href=https://casinoonlinet.com/?>help writing college essay</a> writing essay help

    No.37 | guest | 2021-12-17 09:18:21

    writing an expository essay <a href=https://student-essay.com/?>writing the college essay</a> essay on writing

    No.36 | guest | 2021-12-16 02:37:27

    analysis essay writing <a href=https://buy1essay.com/?>write an opinion essay</a> write a essay about yourself

    No.35 | guest | 2021-12-15 01:18:22

    sex games adult <a href=https://sexygamess.com/?>top ten sex games</a> sex games play

    No.34 | guest | 2021-12-14 04:47:16

    are there any good sex games for mobile <a href=https://sexgameszone.com/?>computer sex games</a> steam for sex games

    No.33 | guest | 2021-12-13 07:11:55

    alien sex games <a href=https://sex4games.com/?>tentacle sex games</a> sex elas games for kids

    No.32 | guest | 2021-12-11 20:39:06

    sex games full version <a href=https://winsexgames.com/?>anime sex games</a> sacred games sex scene

    No.31 | guest | 2021-12-11 01:03:52

    feree sex games sex therapist <a href=https://sexygamess.com/?>tv sex show games</a> customizable sex games

    No.30 | guest | 2021-12-06 04:58:14

    healthy keto snacks <a href=https://ketogendiet.net/?>keto stew</a> keto carb limit

    No.29 | guest | 2021-12-05 07:21:17

    keto diet free <a href=https://ketogenicdietinfo.com/?>blaze pizza keto</a> keto alfredo sauce

    No.28 | guest | 2021-12-04 05:57:53

    women naked sex games <a href=https://sexgamesx.net/?>shower sex games</a> interactive pre teen tease sex games

    No.27 | guest | 2021-11-28 23:03:16

    nurse hentai sex games <a href=https://sex4games.com/?>sex games app that talks</a> sex board games

    No.26 | guest | 2021-11-28 09:29:02

    steam games with sex <a href=https://sex4games.com/?>pokemon may sex games</a> groom shower sex games

    No.25 | guest | 2021-11-25 21:47:13

    action games sex <a href=https://cybersexgames.net/?>social sex games</a> sex games bestality

    No.24 | guest | 2021-11-10 06:55:26

    focus on writing paragraphs and essays <a href=https://student-essay.com/?>double spaced essay example</a> 1000 word essay pages

    No.23 | guest | 2021-11-04 07:49:52

    paid essay writing <a href=https://student-essay.com/?>topwritemyessay.com</a> writing essay services

    No.22 | guest | 2021-11-02 13:59:51

    Некероване кохання 14 серія <a href="https://bit.ly/2ZNemN0">Некероване кохання 14 серія</a> yunb ddnznz Смотреть онлайн сериал Некероване кохання / Любовь без тормозов 14 серия Некероване кохання / Любовь без тормозов: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 СЕРИЯ (украина)

    No.21 | guest | 2021-10-14 05:06:47

    websites that write essays for you <a href=https://essaytag.com/?>book editing service</a>

    No.20 | guest | 2021-10-10 03:26:47

    help paper <a href=https://essaywritercentral.com/?>buy research papers online</a>

    No.19 | guest | 2021-10-03 14:03:25

    djangoにおける静的(static)ファイルの置き場所と読み込み(画像、css、js ) - IT技術総合Wiki | CWiki <a href="http://www.g9y4xn1q018834yufy0h8q84juwmc756s.org/">aqkkqtjjfxn</a> qkkqtjjfxn http://www.g9y4xn1q018834yufy0h8q84juwmc756s.org/ [url=http://www.g9y4xn1q018834yufy0h8q84juwmc756s.org/]uqkkqtjjfxn[/url]

    No.18 | guest | 2021-09-25 02:33:36

    djangoにおける静的(static)ファイルの置き場所と読み込み(画像、css、js ) - IT技術総合Wiki | CWiki <a href="http://www.g07932m5wus16wfc8qr74jab371a7g6hs.org/">awjephldb</a> wjephldb http://www.g07932m5wus16wfc8qr74jab371a7g6hs.org/ [url=http://www.g07932m5wus16wfc8qr74jab371a7g6hs.org/]uwjephldb[/url]

    No.17 | guest | 2021-09-14 22:31:48

    gay black online dating site gay executive dating <a href=http://dating-gaym.com/?>"gay dating sites"</a>

    No.16 | guest | 2021-09-10 07:26:39

    gay dating service chicago gay men and dating <a href=http://gayedating.com?>gay dating at the gym</a>

    No.15 | guest | 2021-09-07 01:37:59

    ezra felton gay dating gay speed dating boston ma <a href=gay-singles-dating.com?>best 100% free gay dating sites</a>

    No.14 | guest | 2021-09-05 04:31:56

    gay dating 85615 gay dating dentures <a href=http://freegaychatnew.com?>brrt gay dating site</a>

    No.13 | guest | 2021-09-01 22:33:06

    gay daddy dating site surge gay dating site nj <a href=http://gaychatgay.com?>black gay dating websites</a>

    No.12 | guest | 2021-08-16 23:16:31

    gay furry rhino dating gay dating sim text adventure <a href=http://gaychatus.com?>gay dating site troll arrested</a>

    No.11 | guest | 2021-08-14 01:34:03

    good gay dating websites gay dating honesdale <a href=http://gaychatrooms.org?>gay asian men dating black men</a>

    No.10 | guest | 2021-08-11 00:16:20

    kenya gay dating site short gay guys dating <a href=http://gaychatrooms.org?>gay asian dating sites</a>

    No.9 | guest | 2021-08-10 00:30:23

    best dating sites for gay guys 4chan gay dating <a href=http://gaychatus.com?>do gay guys dating transmen</a>

    No.8 | guest | 2021-08-06 23:08:40

    gay speed dating long beach free to jping gay senior dating <a href=http://freegaychatnew.com?>dc gay speed dating</a>

    No.7 | guest | 2021-07-30 05:54:12

    single chat sites <a href=http://onlinedatinglook.com/?>casual dating</a>

    No.6 | guest | 2021-07-29 03:22:25

    good free dating sites <a href=http://datingsitesfirst.com/?>adult sex dating sites</a>

    No.5 | guest | 2021-06-18 14:41:58

    <a href=http://fcialisj.com>discreet cialis meds

    No.4 | guest | 2021-06-12 07:08:15

    <a href=https://ponlinecialisk.com>online generic cialis

    No.3 | guest | 2021-06-08 23:03:37

    <a href=http://gcialisk.com/>cialis generic name

    No.2 | guest | 2021-05-13 04:29:11

    <a href=http://fcialisj.com/>buy cialis 5mg

    No.1 | guest | 2021-01-05 17:09:22

    djangoにおける静的(static)ファイルの置き場所と読み込み(画像、css、js ) - IT技術総合Wiki | CWiki [url=http://www.gc5l76lp9ts7phc06r57q8146ib5r2h9s.org/]ufxbjqzhrns[/url] fxbjqzhrns http://www.gc5l76lp9ts7phc06r57q8146ib5r2h9s.org/ <a href="http://www.gc5l76lp9ts7phc06r57q8146ib5r2h9s.org/">afxbjqzhrns</a>