~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlmaps/views.py

  • Committer: kaputtnik
  • Date: 2019-06-14 18:40:56 UTC
  • mfrom: (532.1.31 widelands)
  • Revision ID: kaputtnik-20190614184056-l0ha8pm5zais9mxk
Adapted code for use with python 3.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# encoding: utf-8
3
3
#
4
4
 
5
 
from forms import UploadMapForm, EditCommentForm
 
5
from .forms import UploadMapForm, EditCommentForm
6
6
from django.shortcuts import render, get_object_or_404
7
7
from django.contrib.auth.decorators import login_required
8
8
from django.http import HttpResponseRedirect, HttpResponseNotAllowed, HttpResponse, HttpResponseBadRequest
9
9
from django.urls import reverse
10
10
from django.conf import settings
11
 
import models
 
11
from . import models
12
12
 
13
13
from mainpage.wl_utils import get_real_ip
14
14
import os