Permalink
Browse files

Changed project layout to default Django 1.4 project layout.

  • Loading branch information...
1 parent 259f3da commit 6620f9a2667d9e7cf659f88a796b23baac295340 @mihanovak mihanovak committed Apr 13, 2012
Showing with 8 additions and 13 deletions.
  1. +6 −11 piplmesh/manage.py
  2. 0 piplmesh/{ → piplmesh}/__init__.py
  3. 0 piplmesh/{ → piplmesh}/account/__init__.py
  4. 0 piplmesh/{ → piplmesh}/account/backends.py
  5. 0 piplmesh/{ → piplmesh}/account/decorators.py
  6. 0 piplmesh/{ → piplmesh}/account/fields.py
  7. 0 piplmesh/{ → piplmesh}/account/form_fields.py
  8. 0 piplmesh/{ → piplmesh}/account/forms.py
  9. 0 piplmesh/{ → piplmesh}/account/middleware.py
  10. 0 piplmesh/{ → piplmesh}/account/models.py
  11. 0 piplmesh/{ → piplmesh}/account/signals.py
  12. 0 piplmesh/{ → piplmesh}/account/templates/registration/login.html
  13. 0 piplmesh/{ → piplmesh}/account/templates/registration/registration.html
  14. 0 piplmesh/{ → piplmesh}/account/templatetags/__init__.py
  15. 0 piplmesh/{ → piplmesh}/account/templatetags/facebook.py
  16. 0 piplmesh/{ → piplmesh}/account/utils.py
  17. 0 piplmesh/{ → piplmesh}/account/views.py
  18. 0 piplmesh/{ → piplmesh}/api/__init__.py
  19. 0 piplmesh/{ → piplmesh}/api/models.py
  20. 0 piplmesh/{ → piplmesh}/formats/__init__.py
  21. 0 piplmesh/{ → piplmesh}/frontend/__init__.py
  22. 0 piplmesh/{ → piplmesh}/frontend/context_processors.py
  23. 0 piplmesh/{ → piplmesh}/frontend/models.py
  24. 0 piplmesh/{ → piplmesh}/frontend/static/piplmesh/css/style.css
  25. BIN piplmesh/{ → piplmesh}/frontend/static/piplmesh/images/background.png
  26. BIN piplmesh/{ → piplmesh}/frontend/static/piplmesh/images/favicon.ico
  27. BIN piplmesh/{ → piplmesh}/frontend/static/piplmesh/images/fb_sprite.png
  28. BIN piplmesh/{ → piplmesh}/frontend/static/piplmesh/images/google_logo.png
  29. BIN piplmesh/{ → piplmesh}/frontend/static/piplmesh/images/logo-sl.png
  30. BIN piplmesh/{ → piplmesh}/frontend/static/piplmesh/images/logo.png
  31. BIN piplmesh/{ → piplmesh}/frontend/static/piplmesh/images/unknown.png
  32. 0 piplmesh/{ → piplmesh}/frontend/static/piplmesh/jquery/jquery.js
  33. 0 piplmesh/{ → piplmesh}/frontend/static/piplmesh/js/search_bar.js
  34. 0 piplmesh/{ → piplmesh}/frontend/static/piplmesh/js/search_page.js
  35. 0 piplmesh/{ → piplmesh}/frontend/templates/base.html
  36. 0 piplmesh/{ → piplmesh}/frontend/templates/footer.html
  37. 0 piplmesh/{ → piplmesh}/frontend/templates/gravatar.html
  38. 0 piplmesh/{ → piplmesh}/frontend/templates/header.html
  39. 0 piplmesh/{ → piplmesh}/frontend/templates/home.html
  40. 0 piplmesh/{ → piplmesh}/frontend/templates/messages.html
  41. 0 piplmesh/{ → piplmesh}/frontend/templates/plain.html
  42. 0 piplmesh/{ → piplmesh}/frontend/templates/search.html
  43. 0 piplmesh/{ → piplmesh}/frontend/templatetags/__init__.py
  44. 0 piplmesh/{ → piplmesh}/frontend/templatetags/gravatar.py
  45. 0 piplmesh/{ → piplmesh}/frontend/tests/__init__.py
  46. 0 piplmesh/{ → piplmesh}/frontend/views.py
  47. BIN piplmesh/{ → piplmesh}/locale/sl/LC_MESSAGES/django.mo
  48. 0 piplmesh/{ → piplmesh}/locale/sl/LC_MESSAGES/django.po
  49. +2 −2 piplmesh/{ → piplmesh}/settings.py
  50. 0 piplmesh/{ → piplmesh}/urls.py
View
@@ -1,14 +1,9 @@
#!/usr/bin/env python
-from django.core.management import execute_manager
-import imp
-try:
- imp.find_module('settings') # Assumed to be in the same directory.
-except ImportError:
- import sys
- sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__)
- sys.exit(1)
-
-import settings
+import os, sys
if __name__ == "__main__":
- execute_manager(settings)
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "piplmesh.settings")
+
+ from django.core.management import execute_from_command_line
+
+ execute_from_command_line(sys.argv)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -182,8 +182,8 @@
SESSION_ENGINE = 'mongoengine.django.sessions'
AUTHENTICATION_BACKENDS = (
- 'account.backends.MongoEngineBackend',
- 'account.backends.FacebookBackend',
+ 'piplmesh.account.backends.MongoEngineBackend',
+ 'piplmesh.account.backends.FacebookBackend',
)
# Facebook settings:
File renamed without changes.

0 comments on commit 6620f9a

Please sign in to comment.