Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

__init__.py 911B

1234567891011121314151617181920212223242526272829
  1. import os
  2. # Use 'final' as the 4th element to indicate
  3. # a full release
  4. VERSION = (0, 2, 0, 'alpha', 0)
  5. def get_short_version():
  6. return '%s.%s' % (VERSION[0], VERSION[1])
  7. def get_version():
  8. version = '%s.%s' % (VERSION[0], VERSION[1])
  9. if VERSION[2]:
  10. # Append 3rd digit if > 0
  11. version = '%s.%s' % (version, VERSION[2])
  12. if VERSION[3:] == ('alpha', 0):
  13. version = '%s pre-alpha' % version
  14. elif VERSION[3] != 'final':
  15. version = '%s %s %s' % (version, VERSION[3], VERSION[4])
  16. return version
  17. # Cheeky setting that can be used to override templates and give them
  18. # the same name. You can use:
  19. #
  20. # {% includes 'templates/basket/basket.html' %}
  21. #
  22. # when you want to create a new template with path 'basket/basket.html'
  23. # Just add this setting to the end of your TEMPLATE_DIRS setting.
  24. OSCAR_PARENT_TEMPLATE_DIR = os.path.dirname(os.path.abspath(__file__))