python - Django inlines working on Dev server, yet not on Apache Test server? -


i'm having issue inline admin functionality behaving differently in different environments.

in dev, when editing technology link @ bottom add more roll modifiers needed works flawlessly.

in test, single roll modifier no link add more , silently fails save changes make roll modifier.

the same code deployed both environments. ideas might going on here?

dev server configuration (actually desktop)

  • gentoo linux
  • django 1.3
  • sqllite3 database (locally stored)
  • django built-in development server
  • python 2.6.6

test server configuration

  • suse linux 11.4
  • django 1.3 (also tried django 1.2.5)
  • postgresql 9.0.3
  • apache2 2.2.17
  • python 2.7

appendix - model code

class technology(models.model):   categories = (      ('weap' , 'weaponry'),      ('equip', 'equipment'),      ('cons' , 'construction'),      ('ammo' , 'ammunition'),    )    name = models.charfield(max_length=40)   category = models.charfield(max_length=8, choices=categories)   urlname = models.charfield(max_length=20)   description = models.textfield()   base_difficulty = models.integerfield()   tier = models.integerfield()   show = models.booleanfield()    def __unicode__(self):     return self.name  class technologyrollmodifier(models.model):   technology = models.foreignkey(technology)   modifier   = models.integerfield(default=2)   condition  = models.charfield(max_length=120) 

appendix b - admin code

from django.contrib import admin solaris.warbook import models  class technologyrollmodifierinline(admin.stackedinline):   model = models.technologyrollmodifier   = 0  class technologyadmin(admin.modeladmin):   fields = ['name', 'urlname', 'description', 'tier', 'category', 'base_difficulty', 'show']   inlines = [technologyrollmodifierinline,]  admin.site.register(models.technology, technologyadmin) 

figured out. time ago i'd copied django admin files /var/www/media/admin , aliases /media/ /var/www/media/

which means serving old media files - giving me working css / images silently failing find javascript - stackedinline admin interface relies upon work.

the single technologyrollmodifier saw meant hidden template , did not record data meant entered it.

another mystery solved....


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -