Does anyone know how to visit my localhost website through my phone? I did ifconfig and got inet 192.168.1.102. I ran python manage.py 0.0.0.0:8000. I visited 192.168.1.102:8000 on my phone and all I see is a blank screen. However I got 200s on the django backend
basix has quit
jessamynsmith has quit
pembo13 joined the channel
oaulakh has quit
FunkyBob
bradfordli123: so, it's clear the requeset is reaching your server... but the response isn't going anywhere?
WeiJunLi has quit
bradfordli123
FunkyBob: I am running a decoupled frontend and backend. That might be causing problems. However, it runs fine on my desktop
choki joined the channel
thafreak_ has quit
karanlyons has quit
robattila256 has quit
thafreak joined the channel
ubuntu_aze has quit
thafreak has quit
saurabhjha has quit
thafreak joined the channel
saurabhjha joined the channel
saurabhjha has quit
NomadJim joined the channel
overyander has quit
thafreak has quit
thafreak joined the channel
rpkilby has quit
shangxiao joined the channel
NomadJim
bradfordli123: no 2nd computer?
jaddison joined the channel
bradfordli123
NomadJim: 2nd computer?
NomadJim: it's connected to my router
jaddison has quit
robattila256 joined the channel
pembo13
bradfordli123: when you say decoupled, what do you mean exactly?
thafreak has quit
Efrin has quit
bradfordli123
pembo13: this means the front end is displayed and makes requests to the django backend
thafreak joined the channel
thafreak has quit
Efrin joined the channel
pembo13
bradfordli123: so a single page type app, via a client side framework.. cool
bradfordli123: what's the problem you're having, i missed that
FunkyBob
that nothing displays :)
bradfordli123
FunkyBob: you think im just requesting the backend? lol
thafreak joined the channel
pembo13
oh at all... ?
bradfordli123
pembo13: yea
pembo13
bradfordli123: still in dev setup? or more in a staging/prod setup?
bradfordli123
pembo13: it's in a dev setup
pembo13: It works fine on my desktop
pembo13: but phone i dont see anything =/
pembo13
how do you get from desktop to dev (be techncial)
technical*
mattmcc
bradfordli123: Possibly useful, you can remotely access Chrome/Android developer tools from your desktop.
In case something like a JS error is preventing your client app from displaying.
FunkyBob
bradfordli123: all I know is what you told me
mattmcc: yeah, js error occurred to me... or xplat issues
bradfordli123
mattmcc: it might be a JS issue. I'm pretty new to JS but I think everything is converted to ES5
djapo joined the channel
choki has quit
choki joined the channel
thafreak has quit
roflmyeggo has quit
mattmcc: not sure if mobile chrome uses that
mattmcc: how can i access chrome dev tool from my desktop remotely
pembo13
bradfordli123: well, you could go simpler, and try to serve a simple static html file
and see if that shows up
then at least you'll know it's not a networking issue
bradfordli123
pembo13: yea i can try that
pembo13: actaully im getting 200s so i dont think it is?
erve joined the channel
pembo13
what are you using on the frontend that it's completely blank, even without JS it should show something
fission6 has quit
thafreak joined the channel
dcrouch joined the channel
happyCatt joined the channel
saurabhjha joined the channel
HappyKatt has quit
nimomo joined the channel
shpladaow has quit
nimomo has quit
grumpi joined the channel
grumpi has quit
leon_mu joined the channel
ycon_ joined the channel
bradfordli123
pembo13: I have my JS mostly in ecmascript 6 and it is tranpiled to es6 with webpack. I then use djangos webpack_loader to put the bundle onto one template
djapo has quit
SteenJobs joined the channel
kalail has quit
thafreak has quit
pembo13
bradfordli123: i see.. can't say i'm familiar with that stack... do you have any HTML on the page that should show up without Javascript?
thafreak joined the channel
kingplusplus joined the channel
bradfordli123
pembo13: ill give it a shot and debug some more thanks for the helpful questions
AntiSpamMeta has quit
AntiSpamMeta joined the channel
kingplusplus
please guys looking at the snippet below https://dpaste.de/sV6t I am trying to find out why am getting more queryset than what is available in the database. Despite specifying a limit but though am using random “?”
pembo13
kingplusplus: one of your cross model references is probably causing multple rows to be returned instead of the expected one
shashank_ joined the channel
kingplusplus
pembo13: i don’t think i have cross model references from the sql query which seems most things comes from b2b
Morroque joined the channel
kushal joined the channel
pembo13
yes you do, that's what __ is in field references
and you can see the resulting JOINs in the SQL
saurabhjha has quit
kingplusplus
pembo13: how might i solve this?
rpkilby joined the channel
dodobrain has quit
nownot has quit
ycon_ has quit
rpkilby has quit
HappyKatt joined the channel
happyCatt has quit
happyCatt joined the channel
HappyKatt has quit
leon_mu has quit
pembo13
the less sophisticated approach, which i've taken before, is to remove fields till you find the offending fields, then try to determine how best to handle those fields