Re: [Django] #17656: collectstatic should not require a database

2014-09-18 Thread Django
#17656: collectstatic should not require a database
-+-
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  contrib.staticfiles  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   |  worksforme
Has patch:  0| Triage Stage:  Accepted
  Needs tests:  0|  Needs documentation:  0
Easy pickings:  0|  Patch needs improvement:  0
 |UI/UX:  0
-+-
Changes (by claudep):

 * status:  new => closed
 * resolution:   => worksforme


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.5e3c6bc0e1a1ad36dac8b25438aa7237%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #17656: collectstatic should not require a database

2014-09-18 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.staticfiles  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by MattBlack85):

 claudep, you're right, if I switch to postgres I can't reproduce this
 behaviour. This can be then closed, I'm going to add the traceback to the
 new ticket.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.39c6e5bbbc08e87d4a2c9b846094a57b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #17656: collectstatic should not require a database

2014-09-18 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.staticfiles  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by claudep):

 MattBlack85, the traceback shows that this is a PostGIS specific issue.
 I've created a new ticket to track that issue: #23514.
 Now it is possible that this happens with a plain PostgreSQL connection,
 too, but it would be worth a try.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.efa987f4dc8bb3d16fdd1e2c5cd4e02b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #17656: collectstatic should not require a database

2014-09-17 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.staticfiles  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by carljm):

 I think ideally "fully initialize Django" should not be equivalent to
 "require database connection." But you may be right that this will be
 difficult in practice.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.822dfb1b4dd25363dcced1dd3f535cbc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #17656: collectstatic should not require a database

2014-09-17 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.staticfiles  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by timgraham):

 I'd guess this is probably impossible (or at least quite difficult) to
 make possible after the app loading refactor since all management commands
 now fully initialize Django.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.0ed88699eb8dc44780b7cab62f3133c2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #17656: collectstatic should not require a database

2014-09-17 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.staticfiles  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by MattBlack85):

 * status:  closed => new
 * resolution:  worksforme =>


Comment:

 reopening, it seems like it still checks the database. In this case I just
 changed name and password.


 {{{
 Traceback (most recent call last):
   File "manage.py", line 12, in 
 execute_from_command_line(sys.argv)
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/core/management/__init__.py", line 385, in
 execute_from_command_line
 utility.execute()
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/core/management/__init__.py", line 354, in execute
 django.setup()
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/__init__.py", line 21, in setup
 apps.populate(settings.INSTALLED_APPS)
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/apps/registry.py", line 108, in populate
 app_config.import_models(all_models)
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/apps/config.py", line 197, in import_models
 self.models_module = import_module(models_module_name)
   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in
 import_module
 __import__(name)
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/contrib/auth/models.py", line 40, in 
 class Permission(models.Model):
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/db/models/base.py", line 125, in __new__
 new_class.add_to_class('_meta', Options(meta, **kwargs))
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/db/models/base.py", line 300, in add_to_class
 value.contribute_to_class(cls, name)
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/db/models/options.py", line 166, in contribute_to_class
 self.db_table = truncate_name(self.db_table,
 connection.ops.max_name_length())
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/db/__init__.py", line 40, in __getattr__
 return getattr(connections[DEFAULT_DB_ALIAS], item)
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/db/utils.py", line 243, in __getitem__
 conn = backend.DatabaseWrapper(db, alias)
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/contrib/gis/db/backends/postgis/base.py", line 14, in
 __init__
 self.ops = PostGISOperations(self)
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/contrib/gis/db/backends/postgis/operations.py", line 166,
 in __init__
 if self.spatial_version < (1, 3, 4):
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/utils/functional.py", line 55, in __get__
 res = instance.__dict__[self.func.__name__] = self.func(instance)
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/contrib/gis/db/backends/postgis/operations.py", line 260,
 in spatial_version
 vtup = self.postgis_version_tuple()
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/contrib/gis/db/backends/postgis/operations.py", line 434,
 in postgis_version_tuple
 version = self.postgis_lib_version()
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/contrib/gis/db/backends/postgis/operations.py", line 414,
 in postgis_lib_version
 return self._get_postgis_func('postgis_lib_version')
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/contrib/gis/db/backends/postgis/operations.py", line 404,
 in _get_postgis_func
 with self.connection.temporary_connection() as cursor:
   File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
 return self.gen.next()
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/db/backends/__init__.py", line 543, in
 temporary_connection
 cursor = self.cursor()
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/db/backends/__init__.py", line 165, in cursor
 cursor = self.make_debug_cursor(self._cursor())
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/db/backends/__init__.py", line 138, in _cursor
 self.ensure_connection()
   File "/home/matt/repos/uwncom/lib/python2.7/site-
 packages/django/db/backends/__init__.py", line 133, in 

Re: [Django] #17656: collectstatic should not require a database

2014-03-11 Thread Django
#17656: collectstatic should not require a database
-+-
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  contrib.staticfiles  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   |  worksforme
Has patch:  0| Triage Stage:  Accepted
  Needs tests:  0|  Needs documentation:  0
Easy pickings:  0|  Patch needs improvement:  0
 |UI/UX:  0
-+-
Changes (by claudep):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 This should not happen any more on a recent version of Django. Please
 provide a traceback if you can reproduce.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.9c7dae56ee89705746e94cc656a2e51f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #17656: collectstatic should not require a database

2014-03-11 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.staticfiles  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by anonymous):

 I meet this bug on django version 1.4.10. when trying to write a multiple
 machine deployment script. I've stoped the database connection to avoid
 extra database hiting during the deployment. but collectstatic command
 still waiting for database connection until it is timed out.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.3e7320d81f2c278f20d5fa5a72bcda95%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #17656: collectstatic should not require a database

2013-09-26 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.staticfiles  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by anonymous):

 This is broken again it loads translations here:

 
https://github.com/django/django/blob/master/django/core/management/base.py#L284

 Which loads everything, any requires a database

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.6fe1dee3046f82b3c388f6baf1d9ac9c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #17656: collectstatic should not require a database

2013-09-26 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.staticfiles  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by anonymous):

 * status:  closed => new
 * resolution:  fixed =>


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.e4705a3d259c36aae9d29522bb53e779%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #17656: collectstatic should not require a database

2012-02-12 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  contrib.staticfiles  |  Version:  SVN
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by jezdez):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [17514]:
 {{{
 #!CommitTicketReference repository="" revision="17514"
 Fixed #17656 -- Stopped the collectstatic management command from running
 the database validation. Thanks, jcspray.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #17656: collectstatic should not require a database

2012-02-07 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.staticfiles  |  Version:  SVN
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by claudep):

 * needs_docs:   => 0
 * needs_better_patch:   => 0
 * version:  1.3 => SVN
 * needs_tests:   => 0
 * stage:  Unreviewed => Accepted


Comment:

 There is a flag called 'requires_model_validation' that commands can unset
 to not require validation.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #17656: collectstatic should not require a database

2012-02-07 Thread Django
#17656: collectstatic should not require a database
-+
 Reporter:  jcspray@…|  Owner:  nobody
 Type:  Bug  | Status:  new
Component:  contrib.staticfiles  |Version:  1.3
 Severity:  Normal   |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0|  UI/UX:  0
-+
 The collectstatic command, like all management commands, gets a call to
 self.validate() which requires a database to be up and running.  This is
 annoying, because this command has no need for the database at all, and
 may well be run during packaging/deployment where a database may not be
 present.

 Although hypothetically the STATICFILES_STORAGE setting could refer to
 something that stores static files in a database, the behaviour should be
 made more convenient for the default.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.