I'm thinking it's a SESSION_COOKIE_DOMAIN & CSRF_COOKIE_DOMAIN issue
SmileyChris
what's SESSION_COOKIE_DOMAIN set to?
eean has quit
Cyph0n_ has quit
ThomasC joined the channel
trick2g joined the channel
Transit
jamarad-p_wlb4WG
eean joined the channel
trick2g
im a newfag to django how come when i add a model to model.py and syncdb no sql is generated?
joespeakeasy
Since everything works in Chrome I took a look at the cookies and this is what I see. There is one cookie for the parent domain. And that works for all of my subdomains. But in Firefox and Safari, The first subdomain I visit get's a cookie (that is somehow valid accross all of my subdomains), and the parent domain gets it's own seperate cookie.
.this.that
which is in my /etc/hosts
SmileyChris
trick2g: Django 1.7?
gthank joined the channel
trick2g: the module's normally called models.py btw
trick2g
1.6.5
ya models.py
SmileyChris
trick2g: can you share it?
joespeakeasy
In Safari & Firefox, the subdomains are fine. But the parent domain produces CSRF errors. Which are no good.
trick2g
smiley: what else do i need to do to generate a new table
badams
any idea how im setting the django module incorrectly SmileyChris
SmileyChris
trick2g: if it's a totally new model, syncdb *should* be fine
sligodave has quit
badams: you haven't told us how you've set it, so it's difficult to guess
badams
well, i just tried to manually set it
SmileyChris
how?
badams
export $DJANGO_SETTINGS_MODULE=...
SmileyChris
no $
Shariq has quit
badams
oh duh. i always forget that!
damn. good catch SmileyChris
trick2g
smiley: do i have to add it to INSTALLED_APPS
gumble
if a field is already set on my modelform, how do I modify which widget it is using?
elyezer_ joined the channel
SmileyChris
trick2g: is it a new app?
trick2g
idk it's a new model
SmileyChris
trick2g: the package containing the models.py shoudl be in installed_apps though, yes
dustinfa_ has quit
bdmc
sorry, all. got distracted by someone coming in here. I'll get back to this later.
badams
ok SmileyChris: OSError: [Errno 2] No such file or directory: '/opt/lrms/envs/agency_reports/lib/python2.6/site-packages/agency_reports/assets/js'
SmileyChris
trick2g: if it's a new model in an existing app's models.py, then syncdb should catch it