mstrcnvs: this isn't about a specific settings file, I was wondering about the note in the docs.
acmehandle has quit
ghostmoth
it’s saying “don’t do cd:\hey\man
"
mstrcnvs
basically
to windows users not to hardcode paths
nedbat
ghostmoth: yes, but why?
ghostmoth
because it needs to be architechture independent
mstrcnvs
thats a really good question, since os.path is x-platform
os.path already is
faldridge has quit
nedbat
ghostmoth: why does it need to be? If i only deploy on windows, can I use a windows path?
tyfighter joined the channel
ghostmoth
i’m not sure, it probably doesn’t matter since it uses os
it might just be reinforcing convention, but i don’t know
bkuberek_ joined the channel
jargon joined the channel
ramsub07 joined the channel
gthank has quit
rixi60 has quit
bkuberek has quit
faldridge joined the channel
bkuberek_ has quit
aribao joined the channel
ArcTanSusan joined the channel
nathanhi has quit
Ose joined the channel
ryanneufeld is now known as zz_ryanneufeld
kerridge0 has left the channel
naro has quit
victorhos joined the channel
sligodave has quit
Ose
when you create a new row of a model that has a ManyToManyRelation with one or more existing rows, is it not supposed to "just work" when you save (with commit=True)? it seems to me that the relations are not created at all
iqualfragile_ joined the channel
zoraj joined the channel
iqualfragile has quit
to be specific, I have a Language table, and on user creation one or more language must be selected for the new user
zz_ryanneufeld is now known as ryanneufeld
Transit joined the channel
mstrcnvs
Ose: you need to save the user first, then to assign relations to it, is that is your problem?
trick2g joined the channel
Ose
mstrcnvs: is there no automation of that at all?
trick2g
yo how do i use a second db using filter
mstrcnvs
Ose: which type of automation?
trick2g
like Ban.objects.filter(ipaddr=ipaddr, time__gte=datetime.date.today() with another database selected that i have synced
django.db.utils.OperationalError: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5342?
LucSaffre has quit
devlaps has quit
mstrcnvs
gaganjyot: your port is 5432, you need to specify that on your connection settings
django is trying to connect on port 5342
gaganjyot
thats so silly of me :P
mstrcnvs, thankyou very much :)
Ose
mstrcnvs: the ModelForm that is submitted has all the information needed to, in one transaction, first create the User row, then create the relations between the new User and the Language rows. But it does not do that, if I understand correctly?
mstrcnvs
Ose: can you paste your code please, and if present, a traceback
Bryson joined the channel
EstebanV_ has quit
crazydiamond joined the channel
moonkid has quit
rthat has quit
Transit has quit
Guest14319 joined the channel
Guest14319
k nathanhi
Guest14319 is now known as nathanhi
jivan joined the channel
moonkid joined the channel
trick2g
how the hell do i run a query on my second database
trick2g: how are you so sure the query is running on the default database?
sayan has quit
lduros joined the channel
trick2g
because it returns the field names of the ..ban object..wait a minute
the ban object is a model which is my original database..
so how the HELL do i run a query then
sayan joined the channel
jivan has quit
jivan joined the channel
faldridge has quit
faldridge joined the channel
Guest74650 joined the channel
Frosh has quit
jeffheard has quit
aribao has quit
Guest74650 is now known as Nemus
jeffheard joined the channel
faldridge has quit
Laybunz has quit
ccmonster joined the channel
crazydiamond has quit
ccmonster
anyone use pycharm?
gaganjyot
sometimes ^^
ccmonster
you happen to use Jira?
faldridge joined the channel
kenbolton joined the channel
rthat joined the channel
aribao joined the channel
victorhos has quit
jivan
Is anyone here using fixtures heavily in their testing?
tac_ has quit
natea joined the channel
stickperson joined the channel
moonkid has quit
absai_sud joined the channel
absai_sud
can anybody tell me how login through facebook or linked in would be implemented in python django ?
rthat has quit
sligodave joined the channel
fission6 has quit
mstrcnvs
absaid_sud: take a look at python-social-auth
tbaxter
or allauth
sayan has quit
siqi_ joined the channel
NoNMaDDeN has quit
Nizumzen has quit
absai_sud
I am trying to implement a method through which i can track redirections from other domains so that i can give them discounts. Is there any package in django for that or is it done by some manual coding?
trick2g has quit
kenbolton has quit
jivan
absai_sud: a google search for 'django track referrers' brings up four relevant links at the top of the list.
greg_f has quit
apollo13
absai_sud: just be aware that any user can fake those referers and do as if he was coming from a domain you want to give discounts for
jivan
absai_sud: It's also easy to implement a simple method if you can give different URLs (or URLs with different GET params) for each discount.
totte has quit
apollo13
absai_sud: please keep it in here so others can answer too
absai_sud
any clue to circumvent such case? I think i should first get a minimal method working before asking further question still some suggestion will helpful
hvyk joined the channel
husker joined the channel
apollo13
na, the user can always fake that header
gaganjyot
hello there,
I was using the django auth system for registeration and login purposes