Commits

Łukasz Langa committed c19c124

`langapl` console shortcut

  • Participants
  • Parent commits a7e083a

Comments (0)

Files changed (2)

     zip_safe = False, # if only because of the readme file
     install_requires = [
         'gunicorn',
-        'Django==1.4.2',
+        'Django==1.4.3',
         'django-crystal-small',
         'django-crystal-big',
-        'lck.django==0.8.0',
+        'lck.django==0.8.4',
         'pytz',
         'psycopg2',
         'South',
     ],
+    entry_points={
+        'console_scripts': [
+            'langapl = langapl.manage:main',
+        ],
+    },
     classifiers = [
         'Development Status :: 4 - Beta',
         'Framework :: Django',

File src/langapl/manage.py

 import os
 import sys
 
-if __name__ == "__main__":
-    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "langapl.settings")
 
+def main():
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "langapl.settings")
     from django.core.management import execute_from_command_line
-
     execute_from_command_line(sys.argv)
+
+
+if __name__ == "__main__":
+    main()