Skip to content

Commit 05b8db1

Browse files
committed
Merge pull request #4 from burhan/master
Fixes issue #3
2 parents 6975408 + ab8b39d commit 05b8db1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ and a list of valid mime types that will be allowed. The list of all mime types
3232
here: http://www.iana.org/assignments/media-types/index.html::
3333

3434
from django.db import models
35-
from validatedfile import ValidatedFileField
35+
from validatedfile.fields import ValidatedFileField
3636

3737
class TestModel(models.Model):
3838
the_file = ValidatedFileField(
@@ -55,7 +55,7 @@ This example also checks the total size of all files uploaded by one user::
5555

5656
from django.contrib.auth.models import User
5757
from django.db import models
58-
from validatedfile import ValidatedFileField
58+
from validatedfile.fields import ValidatedFileField
5959

6060
class TestModel(models.Model):
6161
user = models.ForeignKey(
@@ -73,7 +73,7 @@ This example also checks the total size of all files uploaded by one user::
7373
(in forms.py)
7474

7575
from django import forms
76-
from validatedfile import QuotaValidator
76+
from validatedfile.fields import QuotaValidator
7777
from models.py import TestModel
7878

7979
class TestModelForm(models.ModelForm):
@@ -117,5 +117,5 @@ it depends on the software you are using. For example, if you use apache, you sh
117117
This is a complementary measure, because you'll usually want normal users that exceed the size by a
118118
reasonable amount to get a friendly form validation message, while attacking users will see how their
119119
connection is abruptly cut before the file finishes uploading. So the recommended setting is to give
120-
max_upload_size a small value (e.g. 5Mb) and LimitRequestBody a higher one (e.g. 100Mb).
120+
`max_upload_size` a small value (e.g. 5Mb) and `LimitRequestBody` a higher one (e.g. 100Mb).
121121

0 commit comments

Comments
 (0)