renommage des SDK pour plus de précision
[auf-django-sdk.git] / docs / _build / html / index.html
1
2
3 <!DOCTYPE html>
4 <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
5 <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
6 <head>
7 <meta charset="utf-8">
8 <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
10 <title>auf-django-sdk &mdash; documentation auf-django-sdk 0.1</title>
11
12
13
14
15
16
17 <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
18
19
20
21
22
23
24
25
26
27 <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
28
29
30
31 <link rel="top" title="documentation auf-django-sdk 0.1" href="#"/>
32
33
34 <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
35
36 </head>
37
38 <body class="wy-body-for-nav" role="document">
39
40 <div class="wy-grid-for-nav">
41
42
43 <nav data-toggle="wy-nav-shift" class="wy-nav-side">
44 <div class="wy-side-nav-search">
45 <a href="#" class="fa fa-home"> auf-django-sdk</a>
46 <div role="search">
47 <form id ="rtd-search-form" class="wy-form" action="search.html" method="get">
48 <input type="text" name="q" placeholder="Search docs" />
49 <input type="hidden" name="check_keywords" value="yes" />
50 <input type="hidden" name="area" value="default" />
51 </form>
52 </div>
53 </div>
54
55 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
56
57
58 <!-- Local TOC -->
59 <div class="local-toc"><ul>
60 <li><a class="reference internal" href="#">auf-django-sdk</a><ul>
61 <li><a class="reference internal" href="#installation">Installation</a></li>
62 <li><a class="reference internal" href="#paquets-debian">Paquets Debian</a></li>
63 <li><a class="reference internal" href="#configuration">Configuration</a></li>
64 <li><a class="reference internal" href="#utilisation">Utilisation</a></li>
65 </ul>
66 </li>
67 </ul>
68 </div>
69
70 </div>
71 &nbsp;
72 </nav>
73
74 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
75
76
77 <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
78 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
79 <a href="#">auf-django-sdk</a>
80 </nav>
81
82
83
84 <div class="wy-nav-content">
85 <div class="rst-content">
86 <div role="navigation" aria-label="breadcrumbs navigation">
87 <ul class="wy-breadcrumbs">
88 <li><a href="#">Docs</a> &raquo;</li>
89
90 <li>auf-django-sdk</li>
91 <li class="wy-breadcrumbs-aside">
92
93 <a href="_sources/index.txt" rel="nofollow"> View page source</a>
94
95 </li>
96 </ul>
97 <hr/>
98 </div>
99 <div role="main">
100
101 <div class="section" id="auf-django-sdk">
102 <h1>auf-django-sdk<a class="headerlink" href="#auf-django-sdk" title="Lien permanent vers ce titre"></a></h1>
103 <p>Kit de développement Django ou désignés par le sigle anglais SDK (Software Development Kit)
104 est un ensemble d&#8217;outils permettant aux développeurs de créer des applications de type défini
105 dans notre cas Django.</p>
106 <div class="section" id="installation">
107 <h2>Installation<a class="headerlink" href="#installation" title="Lien permanent vers ce titre"></a></h2>
108 <p>Debian:</p>
109 <div class="highlight-python"><div class="highlight"><pre>sudo apt-get install auf-django-sdk
110 </pre></div>
111 </div>
112 </div>
113 <div class="section" id="paquets-debian">
114 <h2>Paquets Debian<a class="headerlink" href="#paquets-debian" title="Lien permanent vers ce titre"></a></h2>
115 <p>auf-django-auf-sdk</p>
116 <blockquote>
117 <div>Contient les modules Python et Django développé par l&#8217;AUF.</div></blockquote>
118 <p>auf-django14-base-sdk</p>
119 <blockquote>
120 <div>Contient les modules de base pour les sites Django de l&#8217;AUF</div></blockquote>
121 <p>auf-django14-extra-sdk</p>
122 <blockquote>
123 <div>Contient les modules d&#8217;extra pour les sites Django de l&#8217;AUF</div></blockquote>
124 <p>auf-django14-dev-sdk</p>
125 <blockquote>
126 <div>Contient les modules d&#8217;aide au développement des sites Django de l&#8217;AUF</div></blockquote>
127 </div>
128 <div class="section" id="configuration">
129 <h2>Configuration<a class="headerlink" href="#configuration" title="Lien permanent vers ce titre"></a></h2>
130 <p>django14_auf</p>
131 <p>django14_base</p>
132 <p>django14_extra</p>
133 <p>django14_auf_admin</p>
134 <p>django14_auf_dev</p>
135 </div>
136 <div class="section" id="utilisation">
137 <h2>Utilisation<a class="headerlink" href="#utilisation" title="Lien permanent vers ce titre"></a></h2>
138 <p>Exemple d&#8217;arboressance:</p>
139 <div class="highlight-python"><div class="highlight"><pre>/srv/
140 auf-django-sdk/
141 sdk/
142 django14_auf/
143 django14_base/
144 django14_dev/_
145 mywebs_site/
146 mywebs/
147 externals_apps/
148 </pre></div>
149 </div>
150 <p>Exemple de fichier <cite>manage.py</cite></p>
151 <div class="highlight-python"><div class="highlight"><pre><span class="c">#!/usr/bin/env python</span>
152 <span class="kn">import</span> <span class="nn">os</span>
153 <span class="kn">import</span> <span class="nn">sys</span>
154
155 <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s">&#39;./mywebs/&#39;</span><span class="p">)</span>
156 <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s">&#39;./external_apps/&#39;</span><span class="p">)</span>
157
158 <span class="c"># Pour le dev localement</span>
159 <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s">&#39;../auf-django-sdk/sdk/django14_auf/&#39;</span><span class="p">)</span>
160 <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s">&#39;../auf-django-sdk/sdk/django14_base/&#39;</span><span class="p">)</span>
161 <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s">&#39;../auf-django-sdk/sdk/django14_dev/&#39;</span><span class="p">)</span>
162
163 <span class="c"># Pour la production</span>
164 <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s">&#39;/var/lib/auf-django-sdk/django14_auf/&#39;</span><span class="p">)</span>
165 <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s">&#39;/var/lib/auf-django-sdk/django14_base/&#39;</span><span class="p">)</span>
166
167 <span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">&quot;__main__&quot;</span><span class="p">:</span>
168 <span class="n">settings_module</span> <span class="o">=</span> <span class="s">&quot;mywebs.settings&quot;</span>
169
170 <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="o">.</span><span class="n">setdefault</span><span class="p">(</span><span class="s">&quot;DJANGO_SETTINGS_MODULE&quot;</span><span class="p">,</span> <span class="n">settings_module</span><span class="p">)</span>
171 <span class="kn">from</span> <span class="nn">django.core.management</span> <span class="kn">import</span> <span class="n">execute_from_command_line</span>
172 <span class="n">execute_from_command_line</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">)</span>
173 </pre></div>
174 </div>
175 </div>
176 </div>
177
178
179 </div>
180 <footer>
181
182
183 <hr/>
184
185 <div role="contentinfo">
186 <p>
187 &copy; Copyright 2015, © Agence universitaire de la Francophonie.
188 </p>
189 </div>
190
191 <a href="https://github.com/snide/sphinx_rtd_theme">Sphinx theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>
192 </footer>
193 </div>
194 </div>
195
196 </section>
197
198 </div>
199
200
201
202
203
204 <script type="text/javascript">
205 var DOCUMENTATION_OPTIONS = {
206 URL_ROOT:'./',
207 VERSION:'0.1',
208 COLLAPSE_INDEX:false,
209 FILE_SUFFIX:'.html',
210 HAS_SOURCE: true
211 };
212 </script>
213 <script type="text/javascript" src="_static/jquery.js"></script>
214 <script type="text/javascript" src="_static/underscore.js"></script>
215 <script type="text/javascript" src="_static/doctools.js"></script>
216
217
218
219
220
221 <script type="text/javascript" src="_static/js/theme.js"></script>
222
223
224
225
226 <script type="text/javascript">
227 jQuery(function () {
228 SphinxRtdTheme.StickyNav.enable();
229 });
230 </script>
231
232
233 </body>
234 </html>