~widelands-dev/widelands-website/update_beautifulsoup4

404.2.2 by franku
test install
1
from django.conf.urls import *
50 by Holger Rapp
First (working) commit of wlimages app, the app that will handle image uploading and managing. Uploading works now; images can only be uploaded once (with the same filename). Much stil missing.
2
from views import *
3
404.2.29 by franku
urlpatterns are lists; patterns are deprecated
4
urlpatterns = [
438.1.6 by franku
run the script
5
    url(r'^upload/(?P<content_type>\d+)/(?P<object_id>\d+)/(?P<next>.*)$',
6
        upload, name='wlimages_upload'),
7
    url(r'^(?P<image>.+)/(?P<revision>\d+)/$', display, name='images_display'),
8
    url(r'^(?P<image>.+)/$', display,
9
        {'revision': 1, }, name='images_display'),
10
]