Skip to content

Commit 7165496

Browse files
committed
Merge pull request #1 from tomchristie/master
Merge upstream
2 parents 5cad60d + ecc26f6 commit 7165496

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

docs/tutorial/4-authentication-and-permissions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ When that's all done we'll need to update our database tables.
4444
Normally we'd create a database migration in order to do that, but for the purposes of this tutorial, let's just delete the database and start again.
4545

4646
rm tmp.db
47-
python manage.py syncdb
47+
rm -r snippets/migrations
48+
python manage.py makemigrations snippets
49+
python manage.py migrate
4850

4951
You might also want to create a few different users, to use for testing the API. The quickest way to do this will be with the `createsuperuser` command.
5052

docs/tutorial/6-viewsets-and-routers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ To see what's going on under the hood let's first explicitly create a set of vie
6060

6161
In the `urls.py` file we bind our `ViewSet` classes into a set of concrete views.
6262

63-
from snippets.views import SnippetViewSet, UserViewSet
63+
from snippets.views import SnippetViewSet, UserViewSet, api_root
6464
from rest_framework import renderers
6565

6666
snippet_list = SnippetViewSet.as_view({

rest_framework/templates/rest_framework/login_base.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<div id="div_id_username"
2323
class="clearfix control-group {% if form.username.errors %}error{% endif %}">
2424
<div class="controls">
25-
<Label class="span4">Username:</label>
25+
<label class="span4">Username:</label>
2626
<input style="height: 25px" type="text" name="username" maxlength="100"
2727
autocapitalize="off"
2828
autocorrect="off" class="span12 textinput textInput"
@@ -36,9 +36,10 @@
3636
</div>
3737
</div>
3838
<div id="div_id_password"
39-
class="clearfix control-group {% if form.password.errors %}error{% endif %}">
39+
class="clearfix control-group {% if form.password.errors %}error{% endif %}"
40+
style="margin-top: 10px">
4041
<div class="controls">
41-
<Label class="span4">Password:</label>
42+
<label class="span4">Password:</label>
4243
<input style="height: 25px" type="password" name="password" maxlength="100"
4344
autocapitalize="off" autocorrect="off" class="span12 textinput textInput"
4445
id="id_password" required>
@@ -55,7 +56,7 @@
5556
<div class="well well-small text-error" style="border: none">{{ error }}</div>
5657
{% endfor %}
5758
{% endif %}
58-
<div class="form-actions-no-box">
59+
<div class="form-actions-no-box" style="margin-top: 20px">
5960
<input type="submit" name="submit" value="Log in" class="btn btn-primary" id="submit-id-submit">
6061
</div>
6162
</form>

0 commit comments

Comments
 (0)