tomchristie, but if I'm importing my models in my views and use a view name in absolute path that seems conflicting.
tomchristie
view names in `reverse` are as strings, so there isn't any issue with circular imports
If that's what you meant?
elit3x joined the channel
chocoelho joined the channel
jrial joined the channel
cubillosxy_py joined the channel
elit3x has quit
Staunch joined the channel
sec^nd joined the channel
empedokles78
tomchristie, I see, by the django example code I receive "Reverse for 'atlas.views.company' not found. 'atlas.views.company' is not a valid view function or pattern name." The view does exist.
fleetfox, but the named version remains? Working now, thanks.
fleetfox
yes, it's the only version
jrist joined the channel
danner joined the channel
felixx has quit
kuter has quit
Diemuzi has quit
empedokles78
perfect, do you know why args are coerced into a string?: args=[str(self.id)]
rpkilby joined the channel
chocoelho has quit
wreed joined the channel
vimes has quit
jadajada joined the channel
rpkilby has quit
Creatornator has quit
wolakkk has quit
kanja joined the channel
felixx joined the channel
FACILITY_GUY has quit
xliiv joined the channel
giarc joined the channel
edigiacomo joined the channel
edigiacomo has quit
Argylelabcoat joined the channel
edigiacomo joined the channel
wolakkk joined the channel
fikka has quit
fikka joined the channel
chasonchaffin joined the channel
bullicon joined the channel
redir joined the channel
edigiacomo has quit
edigiacomo joined the channel
chasonchaffin has quit
edigiacomo has quit
edigiacomo joined the channel
wolakkk has quit
wolakkk joined the channel
zopsi joined the channel
rodolfojcj joined the channel
sasheto has quit
lvh joined the channel
linurandy has quit
fikka has quit
redir joined the channel
w0rp
I kind of wish migrations could be non-linear without creating the extra migrations for merging them.
My team ends up having to re-order files quite a lot.
wreed has quit
I suppose reversing a tree would be a pain.
As opposed to reversing a straight list of migrations.
fikka joined the channel
greg_f has quit
chocoelho joined the channel
linurandy joined the channel
sasheto joined the channel
elit3x
I am trying to use a variable assigneed in a middleware during my login view. The issue is the middleware gets hit after so the variable is not available during login. How can i re-arrange to access the request.company var during login-get_success_url? --- https://dpaste.de/i0VO
BigJono joined the channel
kezabelle has quit
chocoelho has quit
stevanr has quit
greg_f joined the channel
vnbang2003 has quit
polaris joined the channel
bullicon joined the channel
drake01 joined the channel
drake01
Attributes for a particular object is not saving in django 1.8 is there a way to debug?
bakirelived joined the channel
BigJono has quit
Leeds has quit
sasheto has quit
Kangermu joined the channel
__marco has quit
crowbar
drake01: django-debug-toolbar is nice. you can also try manually setting the attributes and saving in the shell, and then check connections.queries (from django.db import connections first) are you seeing direct attributes on a model not saving, or related objects not saving?
Haudegen joined the channel
hop
elit3x: middleware can execute code before the view as well as after
elit3x
hop: Would i used a function other than process_request to achieve that?
drake01
crowbar: for a particular object the direct attribute seems like not saving. thanks for connections suggestions. trying it
vnbang2003 joined the channel
theology joined the channel
morenoh149 has quit
hop
elit3x: don't think so. are you sure your middleware gets called at all?