Open yeruizhi opened 11 years ago
I try to delete the import Bag from express/models.py, then collectstatic successed.
Structure of my apps:
emini
express
models.py
repairment
models.py
in emini.express.models:
from emini.repairment.models import Bag
class Package(models.Model):
foo = models.CharField(max_length=20)
class BagPackageLink(models.Model):
bag = models.ForeignKey(Bag)
package = models.ForeignKey(Package)
class Meta:
unique_together = (("bag", "package"),)
in emini.repairment.models
class Bag(models.Model):
foo = models.CharField(max_length=20)
Am i messing up with 'overlap import'? But why the runserver and shell can import Bag model?
I installed dajaxice into django project. When i run the web using manage.py runserver, all goes well. Now I try to deploy it with apache/wsgi. When I run manage.py collectstatic, error occur:
where Bag is one model within my app.
I tried manage.py shell then import Bag, i works well.
And I tried comment out 'DajaxiceFinder ' from settings.py, collectstatic finished normally.
Could any one help me out?
The full stack of ImportError:
Enviroment: