core.files.storage.FileSystemStorage.base_url

base_url URL that serves the files stored at this location. Defaults to the value of your MEDIA_URL setting.

views.decorators.csrf.csrf_exempt()

csrf_exempt(view) [source] This decorator marks a view as being exempt from the protection ensured by the middleware. Example: from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse @csrf_exempt def my_view(request): return HttpResponse('Hello world')

core.files.uploadedfile.UploadedFile.chunks()

UploadedFile.chunks(chunk_size=None) A generator returning chunks of the file. If multiple_chunks() is True, you should use this method in a loop instead of read(). In practice, it’s often easiest simply to use chunks() all the time. Looping over chunks() instead of using read() ensures that large files don’t overwhelm your system’s memory. Here are some useful attributes of UploadedFile:

core.files.uploadhandler.FileUploadHandler.upload_complete()

FileUploadHandler.upload_complete() [source] Callback signaling that the entire upload (all files) has completed.

dispatch.Signal.send_robust()

Signal.send_robust(sender, **kwargs) [source] To send a signal, call either Signal.send() (all built-in signals use this) or Signal.send_robust(). You must provide the sender argument (which is a class most of the time) and may provide as many other keyword arguments as you like. For example, here’s how sending our pizza_done signal might look: class PizzaStore(object): ... def send_pizza(self, toppings, size): pizza_done.send(sender=self.__class__, toppings=toppings, size=s

core.files.uploadhandler.MemoryFileUploadHandler

class MemoryFileUploadHandler [source] File upload handler to stream uploads into memory (used for small files).

gis.geos.PreparedGeometry.contains()

contains(other)

utils.timezone.get_current_timezone_name()

get_current_timezone_name() [source] Returns the name of the current time zone.

http.HttpResponse.closed

HttpResponse.closed True if the response has been closed.

db.models.query.QuerySet.first()

first() Returns the first object matched by the queryset, or None if there is no matching object. If the QuerySet has no ordering defined, then the queryset is automatically ordered by the primary key. Example: p = Article.objects.order_by('title', 'pub_date').first() Note that first() is a convenience method, the following code sample is equivalent to the above example: try: p = Article.objects.order_by('title', 'pub_date')[0] except IndexError: p = None