Never import signals in init. Use Django applications framework. correct setup.py 00.00.02
authorymh <ymh.work@gmail.com>
Fri, 11 Mar 2016 00:02:57 +0100
changeset 19 dc3f8366729d
parent 18 ff1b9f2e6272
child 20 af79d3dd81f7
Never import signals in init. Use Django applications framework. correct setup.py
server/src/metaeducation/__init__.py
server/src/metaeducation/apps.py
server/src/requirement.txt
server/src/setup.py
--- a/server/src/metaeducation/__init__.py	Thu Mar 10 21:38:36 2016 +0100
+++ b/server/src/metaeducation/__init__.py	Fri Mar 11 00:02:57 2016 +0100
@@ -1,5 +1,3 @@
-import signals
-
 VERSION = (0, 0, 1, "final", 0)
 
 VERSION_STR = ".".join(map(lambda i:"%02d" % (i,), VERSION[:2]))
@@ -43,8 +41,6 @@
     parts = 2 if version[2] == 0 else 3
     return '.'.join(str(x) for x in version[:parts])
 
-
-
-
 __version__ = get_version(VERSION)
 
+default_app_config = 'metaeducation.apps.MetaeducationConfig'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/src/metaeducation/apps.py	Fri Mar 11 00:02:57 2016 +0100
@@ -0,0 +1,8 @@
+from django.apps import AppConfig
+
+class MetaeducationConfig(AppConfig):
+    name = 'metaeducation'
+    verbose_name = "Metaeducation"
+
+    def ready(self):
+        import metaeducation.signals
--- a/server/src/requirement.txt	Thu Mar 10 21:38:36 2016 +0100
+++ b/server/src/requirement.txt	Fri Mar 11 00:02:57 2016 +0100
@@ -1,5 +1,5 @@
 defusedxml==0.4.1
-Django==1.9.1
+Django==1.9.4
 django-allauth==0.24.1
 django-guardian==1.4.1
 djangorestframework==3.3.2
--- a/server/src/setup.py	Thu Mar 10 21:38:36 2016 +0100
+++ b/server/src/setup.py	Fri Mar 11 00:02:57 2016 +0100
@@ -85,7 +85,7 @@
     with open("MANIFEST.in", "w") as m:
         m.write("include CHANGES\n")
         m.write("include LICENSE\n")
-        m.write("include README\n")
+        m.write("include README.md\n")
         m.write("include MANIFEST.in\n")
         for entry in data_files:
             file_list = entry[1]
@@ -106,7 +106,7 @@
         url='http://www.iri.centrepompidou.fr/dev/hg/metaeducation',
         license='LICENSE',
         description='Metaeducation platform',
-        long_description=open('README').read(),
+        long_description=open('README.md').read(),
         classifiers=['Development Status :: 4 - Beta',
                        'Environment :: Web Environment',
                        'Framework :: Django',