Giter Site home page Giter Site logo

orangethirty / minimal-django-file-upload-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from axelpale/minimal-django-file-upload-example

0.0 2.0 0.0 122 KB

Source code for example at http://stackoverflow.com/questions/5871730/need-a-minimal-django-file-upload-example

minimal-django-file-upload-example's Introduction

minimal-django-file-upload-example

Project contains source code that was made originally for the Django file upload example at http://stackoverflow.com/questions/5871730/need-a-minimal-django-file-upload-example

The goal with minimal-django-file-upload-example is to demonstrate and teach how the file uploading is done with Django. Because of the academic nature of the project all the extra functionality is left out. Otherwise you would have hard time to quess what is important and what is not.

Currently Django 1.3, Django 1.4 and Django 1.5 are supported. See src/for_django_1-x/ for the corresponding code.

Differences between code for Django 1.3 and 1.4

  • Directory hierachy follows Django's defaults. For example manage.py has risen one level up.
  • Due to hierarchy change absolute package paths are now more recommended and therefore used. Look INSTALLED_APPS in settings.py for example.
  • Little more comments
  • More encoding definitions # -- coding: utf-8 --
  • Database renamed to database.sqlite3

Differences between code for Django 1.4 and 1.5

  • urls.py: Django 1.5 recommends RedirectView to be used instead of django.views.generic.simple.redirect_to. See RedirectView for details.
  • list.html: url template tag requires view names to be double quoted. See Django 1.5 release note overview for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.