In the django docs how do I know what options I can provide certain classes? For example in the model field reference guide what can I pass to instantiate PositiveSmallIntegerField()
?
class PositiveSmallIntegerField([**options])
This seems more explicit but it still has that strange **options
class ImageField(upload_to=None[, height_field=None, width_field=None, max_length=100, **options])
Is there somewhere I can find a reference on what these values are for? For example with the ImageField
I did not know how it used upload_to
until after I tried it. Apparently it creates the directory if it does not exist yet. What about a discussion on MEDIA_URL
in relation to this? Where can I find that in the docs?
EDIT: Here is the page I am referring to.