Permalink
Browse files

Imported Django from private SVN repository (created from r. 8825)

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 07ffc7d commit ed114e15106192b22ebb78ef5bf5bce72b419d13 @adrianholovaty adrianholovaty committed Jul 13, 2005
Showing with 13,851 additions and 0 deletions.
  1. 0 django/__init__.py
  2. 0 django/bin/__init__.py
  3. +15 −0 django/bin/daily_cleanup.py
  4. +412 −0 django/bin/django-admin.py
  5. 0 django/bin/profiling/__init__.py
  6. +34 −0 django/bin/profiling/gather_profile_stats.py
  7. +22 −0 django/bin/profiling/handler.py
  8. +45 −0 django/bin/setup.py
  9. +36 −0 django/bin/validate.py
  10. 0 django/conf/__init__.py
  11. 0 django/conf/app_template/__init__.py
  12. +1 −0 django/conf/app_template/models/__init__.py
  13. +3 −0 django/conf/app_template/models/app_name.py
  14. 0 django/conf/app_template/urls/__init__.py
  15. +5 −0 django/conf/app_template/urls/app_name.py
  16. 0 django/conf/app_template/views/__init__.py
  17. +199 −0 django/conf/global_settings.py
  18. 0 django/conf/project_template/__init__.py
  19. 0 django/conf/project_template/apps/__init__.py
  20. 0 django/conf/project_template/settings/__init__.py
  21. +31 −0 django/conf/project_template/settings/main.py
  22. +42 −0 django/conf/settings.py
  23. 0 django/conf/urls/__init__.py
  24. +56 −0 django/conf/urls/admin.py
  25. +6 −0 django/conf/urls/admin_password_reset.py
  26. +12 −0 django/conf/urls/comments.py
  27. +17 −0 django/conf/urls/defaults.py
  28. +5 −0 django/conf/urls/flatfiles.py
  29. +19 −0 django/conf/urls/registration.py
  30. +6 −0 django/conf/urls/rss.py
  31. +5 −0 django/conf/urls/shortcut.py
  32. 0 django/core/__init__.py
  33. +255 −0 django/core/cache.py
  34. +28 −0 django/core/db/__init__.py
  35. 0 django/core/db/backends/__init__.py
  36. +107 −0 django/core/db/backends/mysql.py
  37. +109 −0 django/core/db/backends/postgresql.py
  38. +32 −0 django/core/db/base.py
  39. +42 −0 django/core/db/typecasts.py
  40. +466 −0 django/core/defaultfilters.py
  41. +743 −0 django/core/defaulttags.py
  42. +26 −0 django/core/exceptions.py
  43. +79 −0 django/core/extensions.py
  44. +759 −0 django/core/formfields.py
  45. +157 −0 django/core/handler.py
  46. +51 −0 django/core/mail.py
  47. +2,142 −0 django/core/meta.py
  48. +76 −0 django/core/paginator.py
  49. +136 −0 django/core/rss.py
  50. +488 −0 django/core/template.py
  51. +18 −0 django/core/template_file.py
  52. +142 −0 django/core/template_loader.py
  53. +96 −0 django/core/urlresolvers.py
  54. +420 −0 django/core/validators.py
  55. +22 −0 django/core/xheaders.py
  56. 0 django/middleware/__init__.py
  57. +120 −0 django/middleware/admin.py
  58. +104 −0 django/middleware/common.py
  59. +18 −0 django/middleware/doc.py
  60. +91 −0 django/models/__init__.py
  61. +290 −0 django/models/auth.py
  62. +281 −0 django/models/comments.py
  63. +107 −0 django/models/core.py
  64. 0 django/parts/__init__.py
  65. 0 django/parts/admin/__init__.py
  66. +93 −0 django/parts/admin/doc.py
  67. 0 django/parts/auth/__init__.py
  68. +48 −0 django/parts/auth/anonymoususers.py
  69. +46 −0 django/parts/auth/formfields.py
  70. 0 django/parts/media/__init__.py
  71. +6 −0 django/parts/media/photos.py
  72. +7 −0 django/templatetags/__init__.py
  73. +331 −0 django/templatetags/comments.py
  74. +45 −0 django/templatetags/log.py
  75. 0 django/tests/__init__.py
  76. +119 −0 django/tests/cache_tests.py
  77. +102 −0 django/tests/template_inheritance.py
  78. +707 −0 django/tests/template_tests.py
  79. 0 django/utils/__init__.py
  80. +171 −0 django/utils/datastructures.py
  81. +317 −0 django/utils/dateformat.py
  82. +27 −0 django/utils/dates.py
  83. +152 −0 django/utils/feedgenerator.py
  84. +110 −0 django/utils/html.py
  85. +319 −0 django/utils/httpwrappers.py
  86. +22 −0 django/utils/images.py
  87. +42 −0 django/utils/stopwords.py
  88. +108 −0 django/utils/text.py
  89. +46 −0 django/utils/timesince.py
  90. +13 −0 django/utils/xmlutils.py
  91. 0 django/views/__init__.py
  92. 0 django/views/admin/__init__.py
  93. +328 −0 django/views/admin/doc.py
  94. +1,089 −0 django/views/admin/main.py
  95. +70 −0 django/views/admin/template.py
  96. 0 django/views/auth/__init__.py
  97. +62 −0 django/views/auth/login.py
  98. 0 django/views/comments/__init__.py
  99. +347 −0 django/views/comments/comments.py
  100. +34 −0 django/views/comments/karma.py
  101. +82 −0 django/views/comments/userflags.py
  102. 0 django/views/core/__init__.py
  103. +34 −0 django/views/core/flatfiles.py
  104. 0 django/views/decorators/__init__.py
  105. +12 −0 django/views/decorators/auth.py
  106. +64 −0 django/views/decorators/cache.py
  107. +72 −0 django/views/defaults.py
  108. 0 django/views/generic/__init__.py
  109. +223 −0 django/views/generic/date_based.py
  110. +106 −0 django/views/generic/list_detail.py
  111. 0 django/views/registration/__init__.py
  112. +109 −0 django/views/registration/passwords.py
  113. 0 django/views/rss/__init__.py
  114. +12 −0 django/views/rss/rss.py
View
No changes.
No changes.
@@ -0,0 +1,15 @@
+"Daily cleanup file"
+
+from django.core.db import db
+
+DOCUMENTATION_DIRECTORY = '/home/html/documentation/'
+
+def clean_up():
+ # Clean up old database records
+ cursor = db.cursor()
+ cursor.execute("DELETE FROM auth_sessions WHERE start_time < NOW() - INTERVAL '2 weeks'")
+ cursor.execute("DELETE FROM registration_challenges WHERE request_date < NOW() - INTERVAL '1 week'")
+ db.commit()
+
+if __name__ == "__main__":
+ clean_up()
Oops, something went wrong. Retry.

0 comments on commit ed114e1

Please sign in to comment.