Re: [Django] #11308: Django ignores an application if it's trying to import a module that doesn't exist

2009-07-10 Thread Django
#11308: Django ignores an application if it's trying to import a module that
doesn't exist
---+
  Reporter:  rynoinstereo  | Owner:  nobody
Status:  closed| Milestone:
 Component:  Database layer (models, ORM)  |   Version:  1.0   
Resolution:  duplicate |  Keywords:
 Stage:  Accepted  | Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by seveas):

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

Comment:

 Duplicate of #10706

-- 
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] #11308: Django ignores an application if it's trying to import a module that doesn't exist

2009-06-13 Thread Django
#11308: Django ignores an application if it's trying to import a module that
doesn't exist
---+
  Reporter:  rynoinstereo  | Owner:  nobody
Status:  new   | Milestone:
 Component:  Database layer (models, ORM)  |   Version:  1.0   
Resolution:|  Keywords:
 Stage:  Accepted  | Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by russellm):

  * needs_better_patch:  => 0
  * component:  Testing framework => Database layer (models, ORM)
  * needs_tests:  => 0
  * milestone:  1.1 =>
  * needs_docs:  => 0
  * stage:  Unreviewed => Accepted

Comment:

 This is certainly annoying, but it isn't critical for v1.1 as it doesn't
 cause data loss.

 The problem is that we are a bit enthusiastic eating ImportErrors during
 the loading process. There is a legitimate reason for catching
 ImportErrors; they are a byproduct of the the app loading process.
 However, errors such as this one should be raised to the user, rather than
 being eaten entirely.

 Explicit reproduction instructions: Create a new application called
 'testapp', and add it to settings.py. Put the following in
 testapp/models.py:
 {{{
 from django.db import models

 from django.contrib.auth.models import NotAModel

 class NewModel(models.Model):
 name = models.CharField(max_length=200)
 }}}

 manage.py validate doesn't report errors; manage.py syncdb doesn't report
 any problems, but doesn't create the testapp_newmodel table, either.

-- 
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] #11308: Django ignores an application if it's trying to import a module that doesn't exist

2009-06-11 Thread Django
#11308: Django ignores an application if it's trying to import a module that
doesn't exist
---+
 Reporter:  rynoinstereo   |   Owner:  nobody
   Status:  new|   Milestone:  1.1   
Component:  Testing framework  | Version:  1.0   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 Hello,

 First off, I'm a brand new Django user so apologies if I don't make myself
 clear.

 Just had a weird thing happen where I could not for the life of me, figure
 out why Django was saying all my Models were valid, yet when running
 manage.py validate and then syncdb, it would not create the tables for my
 newly created application.

 The problem turned out to be that I was trying to include a model from one
 of my other applications ina the project but I had the name of the model
 wrong.

 For some reason, this caused Django to completely ignore the model file
 for my newly created application, instead of reporting this as an error?

-- 
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
-~--~~~~--~~--~--~---