but "import sqlite3" from the python shell produces the same error message
apollo13
kezabelle: lol no
dddh
Wolfram74: emerge python now
queso
kezabelle: Thank you.
rafales
apollo13: you forgot about commit=False
kenny
rafales: right, I was looking for an option that said 'all of them' without adding them all to the list. Especially as I have to list the fields from multiple base classes
danols_work: the super call needs a commit=False to make no double saves
kezabelle
queso: that assumes you're using the default admin, with the default namespace, fwiw
randomdrake joined the channel
ObseLeTe joined the channel
ssbr_ has quit
dddh
Wolfram74: do you see "sqlite*" highlited?
benoitbb has quit
m0rpho joined the channel
Wolfram74
yeah, in green
dddh
Wolfram74: ok, now "emerge python --verbose"
danols_work
apollo13 so it is a side effect
queso
kezabelle: Right, I am, it works. :) Thanks!
danols_work
ok thank you
Wolfram74
i'm worried that this only taking effect on python 3.2, since that's what cropping up
kezabelle
hmmm, anyone know a way to get `setup.py develop` to require additional dependencies? :\
dddh
Wolfram74: you can "emerge python:2.7 --verbose"
danimal4 joined the channel
Wolfram74
if it doen't work, i'll do that next
apollo13
danols_work: side effect of broken code probably (if it works now that is)
Wolfram74
currently it's checking a lot of things
thanks for the help so far, dddh, apollo13, rafales
jxs has quit
zeograd joined the channel
atula joined the channel
edgabaldi has quit
void has quit
RedXIII
In the django tutorial, how would I go about adding help text to a fieldset from UserAdmin? http://dpaste.org/R1ete/
adamsilver joined the channel
I want "is_admin" field to have more helpful text than that.
adamsilver
why this is not working in my urls.py: (r'^tech/$', redirect('/phones/')), .. msg: ImproperlyConfigured at /tech/
naquad
in django how do i say that model has many other models (that have ForeignKey to first model)?
which type should i use?
jjmalina has quit
jSanp joined the channel
jSanp has quit
cewing has quit
apollo13
adamsilver: please see the topic, but you'll most likely need a lambda
jSanp joined the channel
tdy_ joined the channel
Wolfram74
oh god, the tribulations are finally over
manage.py runserver finally runs
cewing joined the channel
adamsilver
apollo13: lambda worked thanks, what's wrong with the question?
apollo13
adamsilver: that you should provide the traceback
otherwise it's just guess work for us and more work
adamsilver
apollo13: ok
mattmakai_ joined the channel
craigkerstiens joined the channel
m0rpho has quit
shylent joined the channel
mattmakai has quit
mattmakai_ is now known as mattmakai
xsamurai joined the channel
anth0ny has left the channel
jpadilla
in a modelform's save method how can I know if im updating or creating?
shylent
whats the easiest way to json-serialize a structure of the form {'foo': queryset} ?
aberrant has quit
apollo13
jpadilla: check if self.instance has a pk
shylent
jpadilla, if you are updating, there will be pk
apollo13
if it's none you are creating
zoumpis joined the channel
xsamurai
Alright i've been trying to figure out why my post data is saved in request even after a redirect from a successful form submission, this is causing form data to be entered twice if the view is revisted
jpadilla
apollo13: damn I was close, I was noticing self.instance always had something
thanks
adamsilver has left the channel
Wolfram74
ok, question
if i do
python manage.py runserver 0.0.0.0:8000
icebound joined the channel
caleb_ has quit
I should be able to point a browser to IP:8000 and see the pages so far?
kezabelle
yes
jeasoft has quit
in that instance, any interface IP, I think?
ovnicraft joined the channel
Wolfram74
the development server is a box i'm ssh'd in to
and the browser would be on my home machine
i'm getting a connection time out
apollo13
you'll need to adjust your firewall or ssh forward
mihasya joined the channel
Wolfram74
ah, which end's firewall?
the ssh'd box?
apollo13
server
Wolfram74
ok
then i've gotten as far as i'm willing to go without the other guys logged in
I'm not comfortable editing security settings
apollo13
then do an ssh forward
void joined the channel
Wolfram74
would i need to know my local IP address as well for that?
apollo13
no
craigkerstiens has quit
RustyShackleford joined the channel
RustyShackleford
I'm having trouble creating a django project
Wolfram74
You're probably tired of answering my questions, and I'm actually a half hour late for something, and I've been at this for 4 and a half hours
RustyShackleford
I installed django via pip
Wolfram74
I'll see you later
RustyShackleford
django-admin isn't on my path
refu has quit
rafales
RustyShackleford: try django-admin.py
RustyShackleford
rafales, nope
rafales
RustyShackleford: did you use --user flag?
RustyShackleford
i did not. Should I?
if it matters, I am on Windows
TerraAdoudel joined the channel
apollo13
ha
rafales
RustyShackleford: yeah, it does
apollo13
nothing matters there
rafales
RustyShackleford: because I don't know much about windows
apollo13
RustyShackleford: in that case you most likely have to manually navigate to the installation directory and call it there or add this folder to %PATH%
ssbr joined the channel
RustyShackleford
apollo13, so django-admin.py exists in two different folders in my Python installation
I did change to the directory and run it from there. Still no luck
apollo13
lol windows :รพ
Extreme has left the channel
RustyShackleford
I thought if I used pip to install everything would work smoothly
apollo13
on a decent system yes
you have to add it to the path yourself or use the full path to call it
chatterbox has quit
rastem
I'm getting an error in development from django_cas middleware: "cannot import name get_host", common symptoms for this?