~widelands-dev/widelands-website/sphinx_fixes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
##################
   Modules/apps
##################

# South:
    South is now integrated into django, see
    http://south.readthedocs.org/en/latest/releasenotes/1.0.html#library-migration-path

    An upgrading from old south migrations to django is decribed here:
    https://docs.djangoproject.com/en/1.9/topics/migrations/#upgrading-from-south

    Should be easy. I tested this with mysql and a copy from wl_alpha ... it works
    
    Original migration: 
    http://bazaar.launchpad.net/~widelands-dev/widelands-website/trunk/revision/323#pybb/migrations/0001_initial.py
    http://bazaar.launchpad.net/~widelands-dev/widelands-website/trunk/revision/323#pybb/migrations/0002_auto__del_field_topic_post_count.py

# Django-ratings
   django-ratings is no longer maintained; see
   https://github.com/dcramer/django-ratings
  
   django-ratings is currently used only in wlmaps.
   
   Old app included as widelands app (including adjustments to django 1.8)

# Django-notifications
   Old app included as widelands app (including adjustments to django 1.8)

# threadedcomments
   Old app included as widelands app  (including adjustments to django 1.8)

# Django-tracking
   The original django-tracking is disowned, see http://www.codekoala.com/posts/django-projects/
   User bashu has adopt it, see: https://github.com/bashu/django-tracking
   But it looks not really maintained.
  
   Old app included as widelands app (including adjustments to django 1.8)
   
# django-sphinx (sphinxdoc)
   Not longer maintained, see: https://github.com/dcramer/django-sphinx
   
   This is used for the search. An alternative is maybe django-sphinxdoc in combination with
   haystack (dependencie of django-sphinxdoc).
   
   Old app included as widelands app (including adjustments to django 1.8)
   
########################
Settings and other stuff
########################

# User model
   The current setting in settings.py:
  
   AUTH_PROFILE_MODULE = 'wlprofile.Profile'
  
   Has been removed in Django 1.7. I am not sure how to handle this change at the moment.
   See also Database_affected_changes.txt

   Found a solution for get_profile() but i am unsure with the AUTH_PROFILE_SETTING.

# Sorting of fields in Forms
   The old 'keyOrder = ["fields"]' isn't available in Django 1.8
   In Django 1.9 a new function 'order_keys' get's implemented.
   Until then it is possible to order the fields in class Meta:
   f.e.: fields = ['name','body', 'markup', 'attachment',]

##########################
 Warnings for Django 1.9
##########################

/wl_django1_8/lib/python2.7/site-packages/django/core/handlers/wsgi.py:126: RemovedInDjango19Warning: `MergeDict` is deprecated, use `dict.update()` instead.
  self._request = datastructures.MergeDict(self.POST, self.GET)
  
/wl_django1_8/lib/python2.7/site-packages/django_messages/urls.py:7: RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning.
  url(r'^$', RedirectView.as_view(url='inbox/'), name='messages_redirect'),